/* ============================================================
   MPW — Homepage Showpiece (dark luxury minimal)
   ============================================================
   Loaded by index.html only, after style.css. Restyles the hero
   into the "scroll-through gate" scene and applies the editorial
   luxury treatment (oversized type, hairlines, restrained gold).

   Progressive enhancement contract:
     - This file alone produces a complete, static, readable page
       (gate ajar, all content visible).
     - js/motion.js (GSAP + Lenis) adds the draw-on, the scroll
       pass-through, the cursor and the micro-interactions.
     - prefers-reduced-motion: all motion in here is disabled and
       motion.js bails out entirely.
   ============================================================ */

/* ── Hero: centered editorial composition ─────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#hero .hero-content {
  flex: none;
  width: 100%;
  z-index: 1;            /* Beneath the gate line-work (z:2) — you read through the gate */
  padding: 2rem 0 4.5rem;
}

#hero .hero-text-col {
  max-width: 880px;
  margin: 0 auto;
}

/* Micro-kicker replaces the pill badge: quieter, more editorial */
.hero-kicker {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.hero-kicker::before,
.hero-kicker::after {
  content: '';
  display: inline-block;
  width: 34px; height: 1px;
  background: rgba(200,144,31,.5);
  vertical-align: middle;
  margin: 0 .9rem;
}

#hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
#hero h1 .text-accent { color: var(--gold); }

/* Word-mask spans injected by motion.js for the staggered rise.
   Without JS these spans never exist — text renders normally. */
#hero h1 .w-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
#hero h1 .w      { display: inline-block; }

#hero .hero-desc {
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,.62);
  max-width: 560px;
  margin: 0 auto 2.2rem;
}

#hero .hero-buttons {
  justify-content: center;
  margin-bottom: 1.6rem;
}

#hero .hero-phone { justify-content: center; }

/* ── The gate: gold line-work, slightly ajar ──────────────────
   Two mirrored SVG leaves over the full hero. Thin strokes only,
   so the headline reads through the bars. pointer-events: none —
   purely scenographic. motion.js swings them open on scroll. */
.gate-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  perspective: 1300px;
  perspective-origin: 50% 42%;
}

.gate-leaf {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;          /* Slight overlap at centre so the stiles meet */
  color: var(--gold);
  opacity: .5;
  will-change: transform;
}
.gate-leaf svg { width: 100%; height: 100%; display: block; }
.gate-leaf svg * { vector-effect: non-scaling-stroke; }

.gate-leaf-left {
  left: 0;
  transform-origin: left center;
  transform: rotateY(-9deg);   /* Ajar — inviting, mid-swing */
}
.gate-leaf-right {
  right: 0;
  transform-origin: right center;
  transform: rotateY(9deg);
}
/* Right leaf reuses the left leaf's geometry, mirrored */
.gate-leaf-right svg { transform: scaleX(-1); }

/* Light seam leaking through the gap between the leaves */
.gate-seam {
  position: absolute;
  top: 6%; bottom: 6%;
  left: 50%;
  width: 110px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    transparent,
    rgba(228,170,40,.13) 25%,
    rgba(228,170,40,.20) 50%,
    rgba(228,170,40,.13) 75%,
    transparent);
  filter: blur(18px);
  opacity: .8;
}

/* ── Scroll hint: "scroll to enter" ───────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-head);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  pointer-events: none;
}
.hero-scroll-hint .hint-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(200,144,31,.7), transparent);
  overflow: hidden;
  position: relative;
}
.hero-scroll-hint .hint-line::after {
  content: '';
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold-light));
  animation: hintDrop 2.2s ease-in-out infinite;
}
@keyframes hintDrop { to { top: 100%; } }

/* ── Stats: gold block → black band, oversized numerals ───── */
#stats {
  background: var(--dark);
  border-top: 1px solid rgba(200,144,31,.16);
  border-bottom: 1px solid rgba(200,144,31,.16);
  padding: 4rem 0;
}
#stats .stat-item {
  background: transparent;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .2rem;
  padding: .5rem 1rem;
  position: relative;
}
/* Hairline separators between the four figures */
#stats .stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: -0.5rem; top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(200,144,31,.14);
}
#stats .stat-icon { display: none; }
#stats .stat-number,
#stats .stat-plus {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
#stats .stat-label {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: .55rem;
}

/* ── Editorial scale-up for homepage section headers ──────── */
.section-header h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -.015em; }
.section-tag       { letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; }

/* ── Custom cursor (motion.js appends the nodes) ──────────── */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 100002;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold-light);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(200,144,31,.55);
  transition: width .25s ease, height .25s ease, border-color .25s ease;
}
.cursor-ring.is-active {
  width: 56px; height: 56px;
  border-color: rgba(220,166,63,.9);
}

/* ── Mobile: lighter scene, same language ─────────────────── */
@media (max-width: 767px) {
  #hero { min-height: 92vh; }
  #hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .gate-leaf { opacity: .3; }
  .hero-kicker::before, .hero-kicker::after { width: 18px; margin: 0 .5rem; }
  #stats .stat-item + .stat-item::before { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── Reduced motion: everything static and visible ────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint .hint-line::after { animation: none; }
  .gate-leaf-left, .gate-leaf-right { transform: none; }
}
