/* =========================================================
   HOME — CINEMATIC SHOWCASE
   public_html/wildverse/personas/css/home.css
========================================================= */

/* -----------------------------------------
   Welcome Block
----------------------------------------- */

.scene-home .home-intro {
  text-align: center;
}
.hero-title {
  font-size: 3rem;
  letter-spacing: -0.04em;
}

.scene-home .hero-title {
  letter-spacing: -0.03em;
}

.scene-home .hero-subtitle {
  margin-top: 24px;
  max-width: 620px;
  margin-inline: auto;
  opacity: 0.9;
}
.hero-subtitle {
  font-size: 1.1rem;
  margin-top: 22px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}
/* -----------------------------------------
   Persona Showcase Grid
----------------------------------------- */

.persona-list-showcase {
  display: grid;
  /*the grid-template-columns property defines the number and size of the columns in the grid*/
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /*for smaller cards do repeat(auto-fit, minmax(200px, 1fr)) */
  gap: 32px;
}

/* -----------------------------------------
   Persona Card
----------------------------------------- */

.persona-card {
  position: relative;
  height: 320px; /*this determines the card height*/
  /*To change the card width, adjust the minmax value in the grid-template-columns property of .persona-list-showcase*/
  border-radius: 22px;
  overflow: hidden;

  background:
    linear-gradient(
      160deg,
      rgba(0,0,0,0.85),
      rgba(0,0,0,0.55)
    );

  box-shadow:
    0 30px 80px rgba(0,0,0,0.65),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease;
}
/*To change the size of the font inside the persona card, adjust the font-size property in the .persona-card-body .persona-name selector*/
/* Hover lift */
.persona-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 50px 120px rgba(0,0,0,0.85),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

/* -----------------------------------------
   Image Area
----------------------------------------- */

.persona-card-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.15),
      rgba(0,0,0,0.75)
    );
}

.persona-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(110%) contrast(105%);
}

/* -----------------------------------------
   Content Overlay
----------------------------------------- */

.persona-card-body {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 26px;
  /*to add a nice dark but transparent value to the persona name do this: background-color: rgba(0, 0, 0, 0.5); */
}

/* Persona name */
.persona-card-body .persona-name {
  font-size: 1.2rem; /*for smaller font size, adjust this value for example 1.2rem*/
  letter-spacing: 0.08em;
  margin: 0;
}

/* CTA */
.persona-card-body .persona-cta {
  margin-top: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.75;
}
.persona-name .persona-cta {
  background-color: rgba(0, 0, 0, 0.5);
}
/* -----------------------------------------
   Mobile
----------------------------------------- */

@media (max-width: 768px) {
  .persona-card {
    height: 300px;
  }

  .persona-card-body {
    padding: 22px;
  }
}
/* -----------------------------------------
   Scene foundation (HOME ONLY)
----------------------------------------- */

.scene-home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.scene-home .scene-bg {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  z-index: 0;
}

.scene-home .scene-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 1;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.7)
  );
}

.scene-home .scene-content {
  position: relative;
  z-index: 2;

  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
}
/* -----------------------------------------
   Home layout flow
----------------------------------------- */

.scene-home .home-layout {
  width: 100%;
  max-width: 1200px;
  padding: 4rem 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 4rem;
}
/* -----------------------------------------
   Card separation polish
----------------------------------------- */

.persona-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  border-radius: inherit;

  background: radial-gradient(
    circle at 50% 80%,
    rgba(255,255,255,0.15),
    transparent 60%
  );

  opacity: 0.35;
  pointer-events: none;
}
.persona-card-body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: -1;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.55) 35%,
    rgba(0,0,0,0.15) 65%,
    rgba(0,0,0,0.0) 100%
  );
}

.persona-card-body {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.0)
  );
}
/* Responsive tweaks */
@media (max-width: 1024px) {
  .scene-home .home-layout {
    padding: 3rem 1.25rem;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .scene-home .home-layout {
    padding: 2.5rem 1rem;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}
/* FORCE VIDEO OUT OF LAYOUT FLOW */
.scene-home video.scene-bg {
  position: fixed;          /* <-- THIS IS THE KEY */
  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  object-fit: cover;

  z-index: -1;              /* behind everything */
  pointer-events: none;

  background: black;
}
