/* graveflex-hero
   Homepage-only first screen. Linked from index.html only.
   Other pages keep the live original via css/style.css. */

html {
  scroll-behavior: auto;
}

/* Header overlays the sticky pin. */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.hero.gf-hero {
  position: relative;
  height: 200vh;
  min-height: 0;
  display: block;
  align-items: stretch;
  justify-content: stretch;
  text-align: center;
  overflow: visible; /* sticky pin needs this; style.css sets overflow:hidden on .hero */
  padding: 0;
  background: #181818;
}

.gf-hero__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #181818;
  z-index: 1;
}


.gf-hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.gf-hero__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  background: #050505;
}
.gf-hero__film-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.35) 40%, rgba(5,5,5,0.72) 100%),
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(5,5,5,0.15), rgba(5,5,5,0.55));
}
.gf-hero__pin.has-film {
  background: #050505;
}
.gf-hero__pin.has-film .gf-hero__glow {
  opacity: 0.35;
}
.gf-hero__pin.has-film .gf-hero__scene {
  display: none !important;
}

.gf-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 52% 38% at 50% 48%, rgba(243, 216, 139, 0.055), transparent 68%);
}

.gf-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 88px 4.5vw 72px;
}

.gf-hero .hero-eyebrow {
  margin-bottom: 1.25em;
}

.hero.gf-hero h1.gf-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 6.8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #F0F0F0;
  margin: 0 0 0.45em;
}

.gf-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.14em;
  width: 100%;
}

.gf-hero__line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0.2em;
}

.gf-hero__line--gold {
  font-style: italic;
}

.gf-hero__word {
  display: inline-flex;
  white-space: pre;
}

.gf-hero__char {
  display: inline-block;
  color: #6b6257;
  opacity: 0.2;
  filter: grayscale(1);
  transition: opacity 0.2s linear, filter 1.6s ease, color 1.5s ease;
}

.gf-hero__char.on {
  opacity: 1;
  filter: grayscale(0);
  color: #F0F0F0;
}

.gf-hero__line--gold .gf-hero__char.on {
  color: #C8A060;
}

.gf-hero__space {
  width: 0.28em;
}

.gf-hero__blob {
  display: inline-block;
  width: clamp(64px, 1.36em, 152px);
  height: clamp(38px, 0.8em, 90px);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
  transform: translateZ(0);
  background: #111111;
  opacity: 0.2;
  filter: grayscale(1);
  transition: opacity 0.2s linear, filter 1.6s ease;
}

.gf-hero__blob.on {
  opacity: 1;
  filter: grayscale(0);
}

.gf-hero__blob video,
.gf-hero__blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
}

.hero.gf-hero p.gf-hero__lede {
  max-width: 34rem;
  margin: 0 auto 28px;
  color: #C8C8C8;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.7;
}

.gf-hero .hero-buttons {
  justify-content: center;
}

.hero.gf-hero p.gf-hero__cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #847055;
}

@media (max-width: 900px) {
  .hero.gf-hero {
    min-height: 0;
    height: 200vh;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .gf-hero__content {
    padding: 80px 3.2vw 64px;
  }

  .gf-hero__line {
    gap: 0.14em;
  }

  .gf-hero .hero-buttons {
    flex-direction: column;
  }

  .gf-hero .hero-buttons .btn {
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.gf-hero {
    height: 100vh;
    min-height: 100vh;
  }

  .gf-hero__pin {
    position: relative;
    height: 100vh;
  }

  .gf-hero__char,
  .gf-hero__blob {
    opacity: 1 !important;
    filter: none !important;
  }

  .gf-hero__line--gold .gf-hero__char {
    color: #C8A060;
  }

  .hero.gf-hero p.gf-hero__cue {
    display: none;
  }
}

.gf-hero__rest {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.gf-hero.is-revealing .gf-hero__rest {
  opacity: 1;
  pointer-events: auto;
}
.hero-eyebrow {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.gf-hero.is-revealing .hero-eyebrow {
  opacity: 1;
}
