/* =========================================================
   MOVEMENT — Hero v15 (Lens Sweep Straight / One-scroll)
   - Based on v11 visual tone
   - Straight (non-wavy) lens path
   - Lens shrinks & disappears around the text CTAs
   - Scroll-linked, light JS (no always-on rAF)
   ========================================================= */

.mv-lensdrift-hero{
  /* palette */
  --mv-bg: #ffffff;
  --mv-ink: #0b0b0c;
  --mv-muted: rgba(11,11,12,.48);
  --mv-muted2: rgba(11,11,12,.30);

  /* champagne "presence" only (very subtle) */
  --mv-champagne-rgb: 204 186 145;

  /* animation vars (JS sets these) */
  --lx: 50;     /* % */
  --ly: 50;     /* % */
  --lr: 150;    /* px radius (slightly smaller = lighter) */
  --lensO: 0;   /* 0..1 */

  --track: .020em;
  --titleY: 0px;
  --titleS: 1;

  --texO: 0;      /* 0..1 */
  --outlineO: 0;  /* 0..1 */

  --ctaO: 0;      /* 0..1 */
  --hintO: 1;     /* 0..1 */
  --prog: 0;      /* 0..1 */

  --tx: 50%;
  --ty: 50%;

  /* pointer spotlight (desktop only) */
  --px: 50;
  --py: 50;
  --spotO: 0;

  position: relative;
  min-height: 200svh; /* ~ one viewport of scroll */
  background: var(--mv-bg);
  color: var(--mv-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
               Helvetica, Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.mv-lensdrift-hero *{ box-sizing: border-box; }

.mv-lensdrift-hero__stage{
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
}

/* ambient paper / light */
.mv-lensdrift-hero__stage::before{
  content:"";
  position:absolute; inset:-20%;
  background:
    radial-gradient(1200px 700px at 50% 35%, rgba(0,0,0,.035), transparent 60%),
    radial-gradient(900px 500px at 65% 60%, rgba(255,255,255,.8), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.02), transparent 24%, transparent 70%, rgba(0,0,0,.02));
  pointer-events:none;
  transform: translateZ(0);
}

/* pointer spotlight */
.mv-lensdrift-hero__stage::after{
  content:"";
  position:absolute; inset:-20%;
  background:
    radial-gradient(380px 280px at calc(var(--px)*1%) calc(var(--py)*1%),
      rgba(255,255,255,.85), rgba(255,255,255,.35) 35%, transparent 70%);
  opacity: calc(var(--spotO) * .55);
  pointer-events:none;
  transition: opacity .35s ease;
}

.mv-lensdrift-hero__content{
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  text-align: center;
}

.mv-lensdrift-hero__eyebrow{
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(11,11,12,.42);
  margin-bottom: 18px;
}

.mv-lensdrift-hero__headline{
  position: relative;
  display: inline-grid;
  place-items: center;
  margin: 0;
  line-height: .95;
  letter-spacing: var(--track);
  transform: translateY(var(--titleY)) scale(var(--titleS));
  transform-origin: 50% 60%;
  will-change: transform;
  font-weight: 700;
  font-size: clamp(56px, 7.2vw, 112px);
}

.mv-lensdrift-hero__word{
  grid-area: 1/1;
  white-space: nowrap;
}

/* base ink */
.mv-lensdrift-hero__word--base{
  color: rgba(11,11,12,.96);
}

/* texture layer (revealed only inside lens) */
.mv-lensdrift-hero__word--tex{
  color: transparent;
  background-image: url("./assets/wall-texture.webp");
  background-size: cover;
  background-position: var(--tx) var(--ty);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: var(--texO);
  filter: contrast(1.08) saturate(1.02);
  clip-path: circle(calc(var(--lr) * 1px) at calc(var(--lx) * 1%) calc(var(--ly) * 1%));
  will-change: clip-path, opacity, background-position;
}

/* outline finish */
.mv-lensdrift-hero__word--outline{
  color: transparent;
  -webkit-text-stroke: 1px rgba(11,11,12,.22);
  text-stroke: 1px rgba(11,11,12,.22);
  opacity: calc(var(--outlineO) * .75);
  filter: blur(.1px);
}

@media (max-width: 520px){
  .mv-lensdrift-hero__headline{
    font-size: clamp(44px, 11vw, 72px);
    letter-spacing: .015em;
  }
}

.mv-lensdrift-hero__actions{
  /* NOTE: inline-flex so it can sit to the right of the headline on wide screens */
  margin-left: clamp(18px, 2.4vw, 46px);
  display: inline-flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  opacity: var(--ctaO);
  transform: translateY(calc((1 - var(--ctaO)) * 10px));
  transition: opacity .18s linear, transform .18s linear;
}

/* On smaller screens, keep actions centered on their own line */
@media (max-width: 760px){
  .mv-lensdrift-hero__actions{
    display: flex;
    margin: 18px auto 0;
    width: fit-content;
    transform: translateY(calc((1 - var(--ctaO)) * 10px));
  }
}

.mv-lensdrift-hero__cta{
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(11,11,12,.70);
  text-decoration: none;
  padding: 4px 2px;
}

.mv-lensdrift-hero__cta::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:2px;
  height:1px;
  background: linear-gradient(90deg,
    rgba(var(--mv-champagne-rgb), .0),
    rgba(var(--mv-champagne-rgb), .45),
    rgba(var(--mv-champagne-rgb), .0));
  transform: scaleX(.32);
  transform-origin: 50% 50%;
  opacity: .85;
  transition: transform .35s ease;
}

.mv-lensdrift-hero__cta:hover::after{
  transform: scaleX(.78);
}

.mv-lensdrift-hero__progress{
  margin: 22px auto 0;
  width: min(260px, 56vw);
  height: 1px;
  background: rgba(11,11,12,.10);
  position: relative;
}

.mv-lensdrift-hero__progress > span{
  position:absolute; inset:0;
  background: rgba(11,11,12,.26);
  transform: scaleX(var(--prog));
  transform-origin: 0 50%;
  will-change: transform;
}

.mv-lensdrift-hero__hint{
  margin-top: 24px;
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(11,11,12,.30);
  opacity: var(--hintO);
  transition: opacity .2s linear;
}

/* lens ring */
.mv-lensdrift-hero__lens{
  position:absolute;
  left: calc(var(--lx) * 1%);
  top:  calc(var(--ly) * 1%);
  width: calc(var(--lr) * 2px);
  height: calc(var(--lr) * 2px);
  transform: translate(-50%, -50%);
  opacity: var(--lensO);
  pointer-events:none;
  will-change: transform, opacity, left, top, width, height;
}

.mv-lensdrift-hero__lens::before{
  content:"";
  position:absolute; inset:0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%,
      rgba(255,255,255,.85), rgba(255,255,255,.08) 45%, rgba(255,255,255,.0) 70%),
    radial-gradient(circle at 50% 50%,
      rgba(255,255,255,.0) 62%, rgba(11,11,12,.10) 70%, rgba(11,11,12,.04) 100%);
  box-shadow:
    0 14px 60px rgba(0,0,0,.06),
    0 0 0 1px rgba(11,11,12,.07) inset;
}

.mv-lensdrift-hero__lens::after{
  content:"";
  position:absolute; inset:-10%;
  border-radius: 999px;
  background:
    conic-gradient(from 120deg,
      rgba(255,255,255,.0),
      rgba(255,255,255,.35),
      rgba(var(--mv-champagne-rgb), .20),
      rgba(255,255,255,.0));
  opacity: .50;
  filter: blur(12px);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .mv-lensdrift-hero{
    min-height: 100svh;
  }
  .mv-lensdrift-hero__lens,
  .mv-lensdrift-hero__word--tex,
  .mv-lensdrift-hero__word--outline{
    display: none !important;
  }
  .mv-lensdrift-hero__actions{ opacity: 1 !important; transform: none !important; }
  .mv-lensdrift-hero__hint{ display:none; }
  .mv-lensdrift-hero__progress{ display:none; }
}
