/* ============================================
   Phase 2 — Hero (luxury mobile-first)
   ============================================ */

.hero {
  --hero-coal: #0e0b09;
  --hero-ember: #c45c1a;
  --hero-gold: #d4a84b;
  --hero-smoke: #8a7f74;

  position: relative;
  min-height: 100svh;
  padding-top: var(--top-nav-height);
  display: flex;
  flex-direction: column;
  background: var(--hero-coal);
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Hero background (glow + lines + smoke) ---------- */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
  pointer-events: none;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 50%, rgba(196, 92, 26, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(212, 168, 75, 0.06) 0%, transparent 60%);
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 120px
  );
}

.smoke-wrap {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translate3d(0, -50%, 0);
  width: min(420px, 55vw);
  height: min(600px, 75vh);
  opacity: 0.85;
  will-change: transform;
}

.smoke-ring {
  fill: none;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
}

.smoke-ring.r1 {
  stroke: rgba(196, 92, 26, 0.7);
  animation: heroSmokeDrift1 8s ease-in-out infinite;
}

.smoke-ring.r2 {
  stroke: rgba(212, 168, 75, 0.5);
  animation: heroSmokeDrift2 10s ease-in-out infinite 1s;
}

.smoke-ring.r3 {
  stroke: rgba(240, 232, 220, 0.25);
  animation: heroSmokeDrift1 12s ease-in-out infinite 2s;
}

.smoke-ring.r4 {
  stroke: rgba(196, 92, 26, 0.4);
  animation: heroSmokeDrift2 9s ease-in-out infinite 0.5s;
}

.smoke-ring.r5 {
  stroke: rgba(138, 127, 116, 0.35);
  animation: heroSmokeDrift1 11s ease-in-out infinite 3s;
}

@keyframes heroSmokeDrift1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translate3d(30px, -180px, 0) scale(1.4);
    opacity: 0;
  }
}

@keyframes heroSmokeDrift2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    transform: translate3d(-40px, -200px, 0) scale(1.5);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .smoke-wrap {
    right: -12%;
    width: min(320px, 78vw);
    height: min(460px, 62vh);
    opacity: 0.55;
  }
}

/* ---------- Hero body ---------- */
.hero__body {
  position: relative;
  z-index: var(--z-hero-content);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--space-4) var(--space-12);
  min-height: 0;
}

.hero__stack {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.hero-content {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
  transform: translate3d(0, -3vh, 0);
  transition:
    opacity var(--dur-slow) var(--ease-master),
    transform var(--dur-slow) var(--ease-master);
  will-change: transform, opacity;
}

.hero--scrolled-partial .hero-content {
  opacity: 0.9;
  transform: translate3d(0, calc(-3vh - 10px), 0);
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(44px, 12vw, 52px);
  font-weight: var(--weight-bold);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4);
}

.hero__headline-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.28em;
  row-gap: 0.06em;
}

.hero__headline-line {
  background: linear-gradient(
    165deg,
    #ffffff 12%,
    #e8e8e8 38%,
    #c6a972 52%,
    #ffffff 78%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__headline-rotator {
  display: inline-block;
  min-width: min(9ch, 100%);
  text-align: center;
  position: relative;
}

.hero__headline-rotator__text {
  display: inline-block;
  background: linear-gradient(
    165deg,
    #ffffff 0%,
    #f5d38a 42%,
    #d4af37 55%,
    #ffffff 92%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition:
    opacity var(--dur-base) var(--ease-master),
    transform var(--dur-base) var(--ease-master);
  will-change: opacity, transform;
}

.hero__headline-rotator__text.is-rotator-out {
  opacity: 0;
  transform: translate3d(0, 0.35em, 0);
}

.hero__headline-rotator__text.is-rotator-in {
  animation: heroRotatorIn var(--dur-base) var(--ease-master) forwards;
}

@keyframes heroRotatorIn {
  from {
    opacity: 0;
    transform: translate3d(0, -0.35em, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero__sub {
  margin: 0;
  font-size: clamp(15px, 3.8vw, 16px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  font-weight: var(--weight-medium);
}

/* ---------- Hero CTAs ---------- */
.hero .cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: var(--space-6);
  width: 100%;
}

.hero .btn-primary {
  display: inline-block;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--hero-coal, #0e0b09);
  background: linear-gradient(145deg, #f2e4c4 0%, #e6cf8a 48%, #d4a84b 100%);
  box-shadow: 0 4px 20px rgba(212, 168, 75, 0.22);
  padding: 1rem 2.5rem;
  text-decoration: none;
  position: relative;
  transition: all 0.3s var(--ease-master);
  font-weight: 400;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  transform: translateZ(0);
}

.hero .btn-primary::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 75, 0.45);
  transition: all 0.3s var(--ease-master);
  pointer-events: none;
}

@media (hover: hover) {
  .hero .btn-primary:hover {
    background: rgba(212, 168, 75, 0.14);
    color: #f5e6c8;
    box-shadow: 0 6px 24px rgba(212, 168, 75, 0.28);
  }

  .hero .btn-primary:hover::after {
    bottom: -6px;
    right: -6px;
    border-color: rgba(232, 200, 130, 0.85);
  }
}

.hero .btn-primary:active {
  transform: scale(0.98) translateZ(0);
}

.hero .btn-primary:focus-visible {
  outline: 2px solid var(--hero-gold, #d4a84b);
  outline-offset: 4px;
}

.hero .btn-ghost {
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hero-smoke, #8a7f74);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s var(--ease-master);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
}

.hero .btn-ghost::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--hero-smoke, #8a7f74);
  transition: all 0.3s var(--ease-master);
  flex-shrink: 0;
}

@media (hover: hover) {
  .hero .btn-ghost:hover {
    color: #f0e8dc;
  }

  .hero .btn-ghost:hover::before {
    width: 45px;
    background: rgba(240, 232, 220, 0.6);
  }
}

.hero .btn-ghost:focus-visible {
  outline: 2px solid #f0e8dc;
  outline-offset: 4px;
}

@media (max-width: 479px) {
  .hero .cta-group {
    flex-direction: column;
    gap: var(--space-5);
  }
}

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: calc(var(--toast-stack-bottom) + var(--safe-bottom) + var(--space-2));
  z-index: var(--z-scroll-hint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, 0, 0);
  will-change: opacity, transform;
}

.hero.hero--ready .scroll-indicator {
  animation: heroScrollHint 280ms 720ms var(--ease-master) forwards;
}

@keyframes heroScrollHint {
  from {
    opacity: 0;
    transform: translate3d(-50%, 6px, 0);
  }
  to {
    opacity: 0.85;
    transform: translate3d(-50%, 0, 0);
  }
}

.scroll-indicator__line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--accent-soft-gold), transparent);
  border-radius: 1px;
  animation: scroll-indicator-line var(--dur-slow) var(--ease-master) infinite alternate;
  transform: translateZ(0);
}

.scroll-indicator__chev {
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  animation: scroll-indicator-chev 2.2s var(--ease-master) infinite;
}

.hero--scrolled-partial .scroll-indicator {
  opacity: 0.35;
}

/* ---------- Load sequence (opacity + transform only) ---------- */
.hero .hero__headline,
.hero .hero__sub,
.hero .hero__ctas {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}

.hero.hero--ready .hero__headline {
  animation: heroReveal var(--dur-base) 220ms var(--ease-master) forwards;
}

.hero.hero--ready .hero__sub {
  animation: heroReveal var(--dur-base) 360ms var(--ease-master) forwards;
}

.hero.hero--ready .hero__ctas {
  animation: heroReveal var(--dur-base) 480ms var(--ease-master) forwards;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero__headline,
  .hero .hero__sub,
  .hero .hero__ctas {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .hero__headline-rotator__text.is-rotator-in {
    animation: none !important;
  }

  .smoke-ring {
    animation: none !important;
    opacity: 0.35;
  }

  .scroll-indicator__line,
  .scroll-indicator__chev {
    animation: none !important;
  }

  .hero .scroll-indicator,
  .hero.hero--ready .scroll-indicator {
    opacity: 0.85;
    transform: translate3d(-50%, 0, 0);
    animation: none !important;
  }
}
