/* ==========================================================================
   Hero, option 2 (index-option2.php only): full-screen background video,
   gradient veil, giant serif title, description + badge pills. With JS the
   hero opens as a text-mask reveal (see the end of this file).
   Behaviour: assets/js/hero-video.js.
   ========================================================================== */

.jh-hv {
  --hv-forest: #0d1f0e;
  --hv-accent: #7dc47f;
  --hv-gold: #c9a84c;
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 560px;
  background: var(--hv-forest);
  color: #fff;
}
.jh-hv__pin { position: relative; height: 100%; overflow: hidden; }
.jh-hv__mediawrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.jh-hv__mask, .jh-hv__intro { display: none; }
.jh-hv__media {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* the photo stand-in drifts slowly, like a camera on a slider */
.jh-hv__media--still { transform-origin: 60% 55%; }
.jh-motion .jh-hv__media--still { animation: jh-hv-drift 22s ease-in-out infinite alternate; }
@keyframes jh-hv-drift {
  from { transform: scale(1.14) translate3d(-1.5%, 1%, 0); }
  to   { transform: scale(1.02) translate3d(1.5%, -1%, 0); }
}

.jh-hv__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(13, 31, 14, .95) 0%, rgba(13, 31, 14, .35) 60%, transparent 100%),
    linear-gradient(to bottom, rgba(13, 31, 14, .35) 0%, transparent 28%);
}

.jh-hv__content {
  position: relative; z-index: 2;
  height: 100%;
  width: min(1280px, 100% - 2 * var(--jh-gutter, 48px)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  align-items: end; gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(72px, 13vh, 128px);
}
.jh-hv__eyebrow {
  margin: 0 0 14px !important;
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--hv-accent);
}
.jh-hv .jh-hv__title {
  margin: 0;
  font-family: var(--jh-serif, "Cormorant Garamond"), Georgia, serif; font-weight: 700;
  font-size: clamp(4.2rem, 10vw, 9rem); line-height: .86; letter-spacing: -0.035em;
  color: #fff;
}
.jh-hv__title em { font-style: italic; font-weight: 500; color: var(--hv-accent); }
.jh-hv .jh-hv__title, .jh-hv__eyebrow { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }

.jh-hv__right { padding-bottom: .6em; }
.jh-hv .jh-hv__desc {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7;
  color: rgba(255, 255, 255, .75);
}
.jh-hv__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.jh-hv__pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .01em;
  animation: jh-hv-float 5s ease-in-out infinite;
}
.jh-hv__pill--gold { background: var(--hv-gold); color: var(--hv-forest); }
.jh-hv__pill--glass {
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation-delay: -2.5s;
}
@keyframes jh-hv-float { 50% { transform: translateY(-5px); } }

/* scroll indicator */
.jh-hv__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 28px;
  width: 1px; height: 40px; translate: -50% 0;
  background: linear-gradient(to bottom, var(--hv-accent), transparent);
  animation: jh-hv-pulse 2.4s ease-in-out infinite;
}
@keyframes jh-hv-pulse { 0%, 100% { opacity: .35; transform: scaleY(.7); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* staggered fade-up on load (only when motion is allowed) */
@keyframes jh-hv-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.jh-motion .jh-hv__eyebrow,
.jh-motion .jh-hv__title,
.jh-motion .jh-hv__desc,
.jh-motion .jh-hv__pills { opacity: 0; animation: jh-hv-up .8s ease forwards; }
.jh-motion .jh-hv__eyebrow { animation-delay: .2s; }
.jh-motion .jh-hv__title   { animation-delay: .4s; }
.jh-motion .jh-hv__desc    { animation-delay: .6s; }
.jh-motion .jh-hv__pills   { animation-delay: .8s; }

@media (max-width: 860px) {
  /* the text sits higher on phones, so the veil reaches further up */
  .jh-hv__veil { background: linear-gradient(to top, rgba(13, 31, 14, .96) 0%, rgba(13, 31, 14, .7) 55%, rgba(13, 31, 14, .25) 85%, rgba(13, 31, 14, .35) 100%); }
  .jh-hv__content { grid-template-columns: 1fr; align-content: end; gap: 22px; padding-bottom: 96px; }
  .jh-hv .jh-hv__title { font-size: clamp(3.4rem, 17vw, 5.5rem); }
  .jh-hv__right { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .jh-hv__pill, .jh-hv__scroll { animation: none; }
}

/* ==========================================================================
   Text-mask reveal (hero-video.js adds .is-live). The section becomes 320vh
   tall with a pinned screen. A cream canvas with "Jacqueline House" erased
   out of it covers the house; hero-video.js zooms the words from a point
   inside the "l" until the house fills the screen, fades the cream away,
   settles the photo and brings in the content (--hv-c: 0 → 1).
   ========================================================================== */
.jh-hv.is-live { height: 320vh; min-height: 0; overflow: visible; background: #f7f3ec; }
.jh-hv.is-live .jh-hv__pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.jh-hv.is-live .jh-hv__mediawrap { transform: scale(calc(1.18 - .18 * var(--hv-z, 0))); transform-origin: 50% 55%; }
.jh-hv.is-live .jh-hv__veil { opacity: var(--hv-c, 0); }

.jh-hv.is-live .jh-hv__mask { display: block; position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: calc(1 - var(--hv-f, 0)); pointer-events: none; }
/* the photo is a little deeper while it is seen through the letters, so bright
   patches (the driveway) do not wash the words out */
.jh-hv.is-live .jh-hv__media { filter: brightness(calc(.8 + .2 * var(--hv-f, 0))) saturate(calc(1.15 - .15 * var(--hv-f, 0))); }

/* kicker above the words, scroll hint below; both leave as the zoom starts */
.jh-hv.is-live .jh-hv__intro {
  display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: calc(1 - var(--hv-z, 0) * 6);
}
.jh-hv__intro-k {
  position: absolute; left: 0; right: 0; top: calc(var(--jh-nav-space, 96px) + 2vh); margin: 0 !important; text-align: center;
  font-size: 13px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: hsl(109, 37%, 36%);
  animation: jh-hv-up .9s ease .6s both;
}
.jh-hv__intro-hint {
  position: absolute; left: 0; right: 0; bottom: 30px; margin: 0 !important;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #5c6658;
  animation: jh-hv-up .9s ease 1s both;
}
.jh-hv__intro-hint span { width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 14px; position: relative; opacity: .7; }
.jh-hv__intro-hint span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: jh-hv-wheel 1.8s ease-in-out infinite; }
@keyframes jh-hv-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* the hero content arrives with the reveal instead of on load */
.jh-hv.is-live .jh-hv__content { opacity: var(--hv-c, 0); transform: translateY(calc((1 - var(--hv-c, 0)) * 50px)); }
.jh-hv.is-live :is(.jh-hv__eyebrow, .jh-hv__title, .jh-hv__desc, .jh-hv__pills) { opacity: 1; animation: none; }
.jh-hv.is-live .jh-hv__scroll { opacity: var(--hv-c, 0); }
.jh-hv.is-live:not(.is-shown) .jh-hv__content { pointer-events: none; }