/* JH Tattoos — cinematic scroll-story hero (homepage only) */

.jh-scroll-story {
  position: relative;
  background: #0e0d0c;
}

/* ---------- Pinned cinematic stage (JS-enhanced experience) ---------- */
.jh-ss-pin {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #0e0d0c;
  display: none; /* shown only once JS confirms motion is allowed + GSAP is ready */
}
.jh-scroll-story.js-active .jh-ss-pin {
  display: block;
}
.jh-scroll-story.js-active .jh-ss-fallback {
  display: none;
}

.jh-ss-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%; /* default center — retune once IMG_5231's framing is checked live */
  opacity: 0;
  transition: opacity .6s ease;
}

.jh-ss-pin.is-ready .jh-ss-image {
  opacity: 1;
}

.jh-ss-scrim {
  position: absolute;
  inset: 0;
  /* dark-glass readability wash — softened; the video itself already fills the
     frame edge to edge, so this should support centered-text legibility
     without adding extra darkness on top of the source footage */
  background:
    linear-gradient(90deg, rgba(14,13,12,.5) 0%, rgba(14,13,12,.38) 50%, rgba(14,13,12,.5) 100%),
    linear-gradient(0deg, rgba(9,8,8,.55) 0%, rgba(9,8,8,0) 22%);
  pointer-events: none;
}

/* Loading state: solid brand-dark scrim until the video reports readiness */
.jh-ss-loading {
  position: absolute;
  inset: 0;
  background: #0e0d0c;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: opacity .5s ease;
}
.jh-ss-loading::after {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(239,236,230,.25);
  border-top-color: rgba(239,236,230,.75);
  animation: jh-ss-spin 1s linear infinite;
}
.jh-ss-pin.is-ready .jh-ss-loading {
  opacity: 0;
  pointer-events: none;
}
@keyframes jh-ss-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Copy panels: centered in the safe area ---------- */
.jh-ss-copy-zone {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(24px, 5vw, 64px);
  pointer-events: none;
}

.jh-ss-panel {
  position: absolute;
  max-width: 480px;
  color: #efece6;
  font-family: Archivo, sans-serif;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

/* The Mark: logo settles dead-center — an explicit `top` (rather than
   margin, which only half-offsets a flex-centered static position) moves
   the headline/CTA clear of it. Horizontal centering still comes from
   .jh-ss-copy-zone's justify-content, since left/right stay auto here. */
.jh-ss-panel--mark {
  top: 60%;
}

.jh-ss-eyebrow {
  font-size: 12px;
  letter-spacing: .34em;
  color: #9b9488;
  margin: 0 0 22px 0;
}

.jh-ss-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.08;
  margin: 0 0 20px 0;
  text-wrap: balance;
}

.jh-ss-desc {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  color: #b5afa4;
  margin: 0 auto;
  max-width: 420px;
  text-wrap: pretty;
}

/* ---------- The Mark: logo settles over the pool, copy stays in the safe area ---------- */
.jh-ss-mark-logo-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.jh-ss-mark-logo {
  width: clamp(96px, 12vw, 160px);
  height: clamp(96px, 12vw, 160px);
  object-fit: contain;
  opacity: 0;
  transform: scale(.92);
  filter: drop-shadow(0 0 40px rgba(0,0,0,.55));
}

.jh-ss-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 30px;
  pointer-events: none; /* JS enables this once the CTAs are actually visible (~94% progress) */
}
.jh-ss-cta-primary {
  display: inline-block;
  background: #efece6;
  color: #0e0d0c;
  padding: 16px 38px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
}
.jh-ss-cta-secondary {
  font-size: 13px;
  letter-spacing: .18em;
  color: #efece6;
  border-bottom: 1px solid rgba(239,236,230,.4);
  padding-bottom: 5px;
}

/* ---------- Skip intro: subtle, text-only ---------- */
.jh-ss-skip {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 0;
  color: #efece6;
  font-family: Archivo, sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  padding: 8px 10px;
  cursor: pointer;
  opacity: .45;
}
.jh-ss-skip:hover {
  opacity: .8;
}
.jh-ss-skip:focus-visible,
.jh-ss-cta-primary:focus-visible,
.jh-ss-cta-secondary:focus-visible {
  outline: 2px solid #efece6;
  outline-offset: 3px;
}

/* ---------- Static fallback: no-JS default AND prefers-reduced-motion ---------- */
.jh-ss-fallback {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.jh-ss-fallback-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.jh-ss-fallback-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,13,12,.88) 0%, rgba(14,13,12,.55) 40%, rgba(14,13,12,.25) 100%);
}
.jh-ss-fallback-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 0 clamp(24px, 5vw, 64px);
  color: #efece6;
}
.jh-ss-fallback-logo {
  height: 72px;
  width: 72px;
  object-fit: contain;
  margin-bottom: 28px;
}

/* ---------- Mobile ---------- */
@media (max-width: 899px) {
  .jh-ss-image,
  .jh-ss-fallback-bg {
    object-position: 50% 50%; /* default center — retune once IMG_5231's framing is checked live */
  }
  .jh-ss-panel {
    max-width: 86vw;
  }
  .jh-ss-mark-logo {
    width: 84px;
    height: 84px;
  }
  .jh-ss-panel--mark {
    top: 57%;
  }
}

/* ---------- Reduced motion: force the static fallback even if JS loads ---------- */
@media (prefers-reduced-motion: reduce) {
  .jh-scroll-story.js-active .jh-ss-pin {
    display: none;
  }
  .jh-scroll-story.js-active .jh-ss-fallback {
    display: flex;
  }
}
