/* ============================================================
   WASMIA — cinematic hero (isolated: every rule scoped to .vh)
   Palette: #160739 #28135A #3E217C #532F9A #0C0028
            #D8B382 #F2D7AD #AE9072 #FDFDFD #BFB4D4
   ============================================================ */

.vh {
  position: relative;
  background: #FDFDFD;
}

.vh__stage {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

/* ---------- Visual world ---------- */
/* --vh-drop shifts the scene down so the subject's head always clears the
   fixed header. Top offset pushes the image down; the negative bottom keeps
   the frame fully covered (any thin strip above sits behind the nav). */
.vh__world {
  --vh-drop: 5%;
  position: absolute;
  inset: var(--vh-drop) -3% -6% -3%;
  will-change: transform;
}
.vh__scene {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 30%;
}
.vh__gl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.vh__gl.is-live { opacity: 1; }

/* Cinematic grade: keeps the copy side calm and readable */
.vh__grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(253, 253, 253, 0.82) 0%, rgba(253, 253, 253, 0.42) 30%, transparent 55%),
    linear-gradient(180deg, rgba(253, 253, 253, 0.36) 0%, transparent 24%, transparent 78%, rgba(22, 7, 57, 0.10) 100%);
  pointer-events: none;
}

/* ---------- Copy ---------- */
.vh__copy {
  position: absolute;
  left: max(5.5vw, env(safe-area-inset-left, 0px) + 20px);
  top: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: center;
  max-width: min(560px, 44vw);
  z-index: 3;
  will-change: transform;
  pointer-events: none;
}
.vh__copy a { pointer-events: auto; }

.vh__mask { display: block; overflow: hidden; }
.vh__reveal { display: inline-block; will-change: transform; }

.vh__eyebrow {
  font-family: var(--font-display, 'Sora', sans-serif);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: #532F9A;
  margin-bottom: 26px;
}
.vh__tick {
  display: inline-block;
  width: 26px; height: 2px;
  background: linear-gradient(90deg, #D8B382, #F2D7AD);
  vertical-align: middle;
  margin-right: 12px;
  border-radius: 2px;
}

.vh__title {
  font-family: var(--font-display, 'Sora', sans-serif);
  font-size: clamp(2.6rem, 4.6vw, 4.9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #160739;
  margin-bottom: 26px;
}
.vh__accent {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, #532F9A, #3E217C);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.06em; /* room for the italic overhang inside the mask */
}

.vh__sub {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.55;
  color: rgba(40, 19, 90, 0.78);
  max-width: 400px;
  margin-bottom: 38px;
}

/* ---------- CTA — magnetic, premium ---------- */
.vh__cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display, 'Sora', sans-serif);
  font-size: 15.5px; font-weight: 600;
  color: #FDFDFD;
  background: #28135A;
  padding: 18px 34px;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 18px 40px -14px rgba(12, 0, 40, 0.5);
  transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.vh__cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(242, 215, 173, 0.28) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.vh__cta:hover { box-shadow: 0 24px 54px -16px rgba(12, 0, 40, 0.62); }
.vh__cta:hover::before { transform: translateX(120%); }
.vh__cta:active { transform: scale(0.975); }
.vh__cta:focus-visible { outline: 2.5px solid #532F9A; outline-offset: 4px; }
.vh__cta-label { position: relative; }
.vh__cta-arrow {
  position: relative;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  margin-right: -10px;
  border-radius: 50%;
  background: rgba(216, 179, 130, 0.18);
  color: #F2D7AD;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s;
}
.vh__cta:hover .vh__cta-arrow { transform: translateX(3px); background: rgba(216, 179, 130, 0.32); }

/* ---------- Scroll cue ---------- */
.vh__cue {
  position: absolute;
  left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-display, 'Sora', sans-serif);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(40, 19, 90, 0.55);
  z-index: 3;
}
.vh__cue span {
  display: block;
  width: 1.5px; height: 44px;
  background: linear-gradient(180deg, rgba(83, 47, 154, 0.55), rgba(83, 47, 154, 0.06));
  overflow: hidden;
  position: relative;
}
.vh__cue span::after {
  content: "";
  position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: #D8B382;
  animation: vh-cue-drop 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes vh-cue-drop {
  0% { top: -50%; }
  60%, 100% { top: 110%; }
}

/* ---------- Resolution sweep ---------- */
.vh__sweep {
  position: absolute;
  left: 50%; bottom: 0;
  width: 260vmax; height: 260vmax;
  border-radius: 50%;
  background: #FDFDFD;
  box-shadow: 0 -24px 90px -30px rgba(22, 7, 57, 0.18);
  transform: translate(-50%, 100%) scale(0.05);
  transform-origin: center top;
  z-index: 4;
  pointer-events: none;
  will-change: transform;
}

/* ============================================================
   RESPONSIVE ART DIRECTION
   ============================================================ */

/* Mid-size desktops: keep the headline clear of the profile */
@media (min-width: 1025px) and (max-width: 1366px) {
  .vh__title { font-size: clamp(2.4rem, 3.95vw, 3.5rem); }
  .vh__copy { max-width: 470px; }
  .vh__sub { max-width: 360px; }
}

/* Tablet: rebalanced copy block, wider presence */
@media (max-width: 1024px) {
  .vh__copy { max-width: min(520px, 52vw); }
}

/* Landscape tablets only (iPad 1024×768, Air 1180×820, Pro 11 1194×834):
   the side-by-side layout was cramped, so the headline touched the visor.
   Narrow the copy column and trim the headline so the text stays clearly
   separated from the character. Guards: landscape + min-height 640px keep
   phones (incl. landscape phones) and portrait tablets on their own layouts;
   max-width 1200px keeps 1280px+ desktops/laptops untouched. */
@media (min-width: 761px) and (max-width: 1200px) and (orientation: landscape) and (min-height: 640px) {
  .vh__copy { max-width: min(44vw, 420px); }
  .vh__title { font-size: clamp(2rem, 3.35vw, 2.6rem); }
  .vh__sub { max-width: 320px; }
}

/* Mobile / portrait tablets: vertical composition — subject top, copy below */
@media (max-width: 760px), (max-width: 1024px) and (orientation: portrait) {
  .vh__stage { min-height: 640px; }
  /* Same downward shift so the subject's head clears the fixed header;
     the deeper negative bottom keeps the lower architecture fully covered. */
  .vh__world { inset: max(3.5%, 30px) -4% -9% -4%; }
  .vh__scene { object-position: 50% 0%; }

  /* On the 9:16 art the lower half is clean white architecture */
  .vh__grade {
    background:
      linear-gradient(180deg, transparent 34%, rgba(253, 253, 253, 0.55) 52%, rgba(253, 253, 253, 0.88) 68%, rgba(253, 253, 253, 0.94) 100%);
  }


  .vh__copy {
    left: max(24px, env(safe-area-inset-left, 0px) + 16px);
    right: max(24px, env(safe-area-inset-right, 0px) + 16px);
    max-width: none;
    top: auto;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    display: block;
  }
  .vh__eyebrow { font-size: 10.5px; letter-spacing: 0.2em; margin-bottom: 18px; }
  .vh__title { font-size: clamp(2.15rem, 9.6vw, 2.9rem); margin-bottom: 18px; }
  .vh__sub { font-size: 1.02rem; margin-bottom: 28px; max-width: 330px; }
  .vh__cta { padding: 17px 30px; font-size: 15px; }

  .vh__cue { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .vh__cue span { height: 32px; }
}

/* Very small phones */
@media (max-width: 370px) {
  .vh__title { font-size: 2rem; }
  .vh__copy { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* Ultrawide: keep the copy anchored to the content zone */
@media (min-width: 1729px) {
  .vh__copy { left: max(9vw, calc((100vw - 1600px) / 2)); }
}

/* ============================================================
   REDUCED MOTION — polished static frame
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .vh__cue span::after { animation: none; top: 20%; }
  .vh__gl { display: none; }
  .vh__sweep { display: none; }
  .vh__world, .vh__copy, .vh__reveal { will-change: auto; }
}
