/* MAGMA · Video Home Prototype (direct background video, natural scroll, zero scrollytelling) */
body.magma-video-home {
  overflow-y: auto;
  overflow-x: clip;
  background: #050505;
  color: var(--color-text, #e8e4dc);
  font-family: var(--font-body, "MAGMA Montserrat", Arial, sans-serif);
}

body.magma-video-home.age-gate-open {
  overflow: hidden;
}

body.magma-video-home main {
  height: auto !important;
  min-height: 100svh;
}

.magma-video-home .site-footer {
  visibility: visible !important;
}

/* ---------- Hero 100svh with looping background video ---------- */
body.magma-immersive-home.magma-video-home .stage.video-hero {
  position: relative;
  top: auto;
  height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #050505;
}

.video-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050505;
  pointer-events: none;
}

.video-hero__poster-picture {
  display: contents;
}

.video-hero__poster,
body.magma-immersive-home.magma-video-home .stage.video-hero video.video-hero__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-hero__poster {
  z-index: 1;
  opacity: 1;
  transition: opacity 550ms ease-out;
}

.video-hero.is-playing .video-hero__poster {
  opacity: 0;
}

body.magma-immersive-home.magma-video-home .stage.video-hero video.video-hero__video {
  z-index: 2;
  opacity: 0;
  transition: opacity 650ms ease-out;
}

body.magma-immersive-home.magma-video-home .stage.video-hero.is-playing video.video-hero__video {
  opacity: 1;
}

body.magma-immersive-home.magma-video-home[data-film-format="mobile"] .video-hero__poster,
body.magma-immersive-home.magma-video-home[data-film-format="mobile"] .stage.video-hero video.video-hero__video,
body.magma-immersive-home.magma-video-home[data-film-format="tablet"] .video-hero__poster,
body.magma-immersive-home.magma-video-home[data-film-format="tablet"] .stage.video-hero video.video-hero__video {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  top: clamp(48px, 6.5svh, 74px);
  bottom: auto;
  left: 0;
  transform: none;
}

.video-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0) 18%),
    linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.92) 16%, rgba(5, 5, 5, 0.52) 30%, rgba(5, 5, 5, 0) 46%);
}

@media (max-width: 700px) {
  .video-hero__scrim {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0) 16%),
      linear-gradient(0deg, #050505 0%, #050505 29%, rgba(5, 5, 5, 0.85) 37%, rgba(5, 5, 5, 0.28) 48%, rgba(5, 5, 5, 0) 58%);
  }
}

.video-hero__content {
  position: relative;
  z-index: 4;
  width: min(100%, 74rem);
  margin: 0 auto;
  padding: 0 var(--gutter, clamp(1.25rem, 3.2vw, 3.5rem)) clamp(1.75rem, 4.5vh, 3.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-hero__content * {
  box-sizing: border-box;
}

.video-hero__eyebrow {
  margin: 0 0 0.65rem;
  max-width: none;
  color: var(--color-gold, #e5c96c);
  font-family: var(--font-body, Arial, sans-serif);
  font-size: clamp(0.66rem, 0.6rem + 0.25vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

.video-hero__title {
  margin: 0;
  max-width: 24ch;
  color: #f9efe0;
  font-family: var(--font-heading, "MAGMA Scaver Custom", Georgia, serif);
  font-size: clamp(1.85rem, 3.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85);
}

.video-hero__lead {
  margin: 0.75rem auto 0;
  max-width: 48ch;
  color: #e4d9c8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.22rem);
  font-weight: 400;
  line-height: 1.48;
  text-wrap: pretty;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.88);
}

.video-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.video-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.8rem;
  border-radius: 999px;
  border: 1px solid #d7b778;
  font-family: var(--font-heading, "MAGMA Scaver Custom", Georgia, serif);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.11em;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 200ms var(--ease-out, ease-out), background-color 200ms, color 200ms, border-color 200ms, box-shadow 200ms;
}

.video-hero__btn--primary {
  background: #d7b778;
  color: #161009;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.video-hero__btn--primary:hover,
.video-hero__btn--primary:focus-visible {
  background: #f0d399;
  border-color: #f0d399;
  color: #161009;
  transform: translateY(-2px);
}

.video-hero__btn--ghost {
  background: rgba(10, 9, 8, 0.68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f7ead2;
  border-color: rgba(215, 183, 120, 0.78);
}

.video-hero__btn--ghost:hover,
.video-hero__btn--ghost:focus-visible {
  background: rgba(215, 183, 120, 0.18);
  border-color: #f0d399;
  color: #fff;
  transform: translateY(-2px);
}

.video-hero__btn:focus-visible,
.video-hero__scroll:focus-visible,
.video-hero__ctrl:focus-visible {
  outline: 2px solid #f9d77a;
  outline-offset: 3px;
}

.video-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0.35rem 0.6rem;
  color: rgba(233, 210, 164, 0.85);
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 200ms, transform 200ms;
}

.video-hero__scroll:hover {
  color: #fff0c8;
  transform: translateY(2px);
}

.video-hero__scroll-arrow {
  display: inline-block;
  animation: magmaHeroBounce 2.6s ease-in-out infinite;
}

@keyframes magmaHeroBounce {
  0%, 70%, 100% { transform: translateY(0); }
  85% { transform: translateY(4px); }
}

/* ---------- Subtle ambient sound + video pause controls ---------- */
.video-hero__controls {
  position: absolute;
  left: max(20px, env(safe-area-inset-left) + 12px);
  bottom: max(22px, env(safe-area-inset-bottom) + 14px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-hero__ctrl {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(233, 210, 164, 0.38);
  background: rgba(8, 7, 6, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #e9d2a4;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 200ms, border-color 200ms, background-color 200ms;
}

.video-hero__ctrl:hover,
.video-hero__ctrl:focus-visible {
  opacity: 1;
  border-color: rgba(240, 211, 153, 0.9);
  background: rgba(18, 14, 10, 0.88);
}

.video-hero__ctrl svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-hero__sound .video-hero__sound-wave,
.video-hero__sound.is-on .video-hero__sound-off {
  display: none;
}

.video-hero__sound.is-on .video-hero__sound-wave {
  display: block;
}

.video-hero__sound.is-on {
  opacity: 1;
  border-color: rgba(215, 183, 120, 0.82);
}

.video-hero__pause .video-hero__icon-play,
.video-hero__pause.is-paused .video-hero__icon-pause {
  display: none;
}

.video-hero__pause.is-paused .video-hero__icon-play {
  display: block;
}

@media (max-width: 640px) {
  .video-hero__content {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .video-hero__title {
    font-size: clamp(1.55rem, 6.2vw, 2.05rem);
  }

  .video-hero__lead {
    font-size: 0.92rem;
    line-height: 1.4;
    margin-top: 0.5rem;
  }

  .video-hero__actions {
    width: min(100%, 300px);
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .video-hero__btn {
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 1.2rem;
  }

  .video-hero__scroll {
    margin-top: 0.85rem;
  }

  .video-hero__controls {
    top: calc(var(--home-header-height, 74px) + 8px);
    right: max(12px, env(safe-area-inset-right));
    bottom: auto;
    left: auto;
  }
}

/* ---------- Editorial sections below hero (Complete view) ---------- */
.home-experiences,
.home-sanctuary {
  position: relative;
  z-index: 2;
  background: #050505;
  padding: clamp(4rem, 7vw, 6.5rem) var(--gutter, clamp(1.25rem, 3.2vw, 3.5rem));
  border-top: 1px solid rgba(155, 128, 46, 0.24);
}

.home-experiences__inner,
.home-sanctuary__inner {
  width: min(100%, 74rem);
  margin: 0 auto;
}

.home-section-head {
  text-align: center;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.home-section-head__eyebrow {
  margin: 0 0 0.6rem;
  max-width: none;
  color: var(--color-gold, #e5c96c);
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-section-head__title {
  margin: 0 auto;
  max-width: 24ch;
  color: #f5ead6;
  font-family: var(--font-heading, "MAGMA Scaver Custom", Georgia, serif);
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}

.home-section-head__lead {
  margin: 0.85rem auto 0;
  max-width: 56ch;
  color: var(--color-text-muted, #b8b3aa);
  font-family: var(--font-body, Arial, sans-serif);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.65;
}

.home-experiences__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.exp-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #0d0c0b;
  border: 1px solid rgba(155, 128, 46, 0.34);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 240ms var(--ease-out, ease-out), border-color 240ms, box-shadow 240ms;
}

.exp-card:hover,
.exp-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(229, 201, 108, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.exp-card:focus-visible {
  outline: 2px solid #f9d77a;
  outline-offset: 3px;
}

.exp-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #141210;
}

.exp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out, ease-out);
}

.exp-card:hover .exp-card__media img {
  transform: scale(1.04);
}

.exp-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 12, 11, 0.92));
  pointer-events: none;
}

.exp-card__body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.6vw, 2rem);
}

.exp-card__title {
  margin: 0;
  max-width: none;
  color: var(--color-gold, #e5c96c);
  font-family: var(--font-heading, "MAGMA Scaver Custom", Georgia, serif);
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  font-weight: 400;
  line-height: 1.2;
}

.exp-card__text {
  margin: 0.65rem 0 1.25rem;
  max-width: none;
  color: var(--color-text-muted, #b8b3aa);
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 0.94rem;
  line-height: 1.6;
}

.exp-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f6e7cb;
  font-family: var(--font-heading, "MAGMA Scaver Custom", Georgia, serif);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.exp-card:hover .exp-card__link span {
  transform: translateX(4px);
}

.exp-card__link span {
  transition: transform 200ms;
}

/* ---------- Sanctuary / Private space section ---------- */
.home-sanctuary {
  background: linear-gradient(180deg, #050505 0%, #100e0b 100%);
}

.home-sanctuary__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.home-sanctuary__media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(155, 128, 46, 0.36);
  aspect-ratio: 4 / 3;
  background: #141210;
}

.home-sanctuary__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-sanctuary__eyebrow {
  margin: 0 0 0.6rem;
  max-width: none;
  color: var(--color-gold, #e5c96c);
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-sanctuary__title {
  margin: 0;
  max-width: 18ch;
  color: #f7ecda;
  font-family: var(--font-heading, "MAGMA Scaver Custom", Georgia, serif);
  font-size: clamp(1.65rem, 2.7vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.home-sanctuary__text {
  margin: 1rem 0 0;
  max-width: 52ch;
  color: var(--color-text-muted, #b8b3aa);
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 0.96rem;
  line-height: 1.7;
}

.home-sanctuary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

@media (max-width: 820px) {
  .home-experiences__grid,
  .home-sanctuary__grid {
    grid-template-columns: 1fr;
  }
}

.js .magma-video-home .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 550ms var(--ease-out, ease-out), transform 600ms var(--ease-out, ease-out);
}

.js .magma-video-home .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .video-hero__scroll-arrow,
  .js .magma-video-home .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

