﻿/* PresentTool™ Storytelling — section: hero (production, v3.7.0)
   ──────────────────────────────────────────────────────────────── */

.story-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #14120E;
}

/* ─── Background variants ─────────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* default cover variant — Ken-Burns */
.hero-bg--cover {
  transform: scale(1.0);
  transform-origin: 32% 32%;
  animation: hero-ken-burns 22s ease-in-out infinite alternate;
}
.hero-bg-preload {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* video variant */
.hero-bg--video {
  background-position: center;
  background-size: cover;
}
.hero-bg--video .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* no-cover variant — pure warm gradient */
.hero-bg--no-cover {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(200, 149, 108, 0.45), transparent 62%),
    radial-gradient(ellipse 70% 90% at 50% 100%, rgba(80, 50, 30, 0.55), transparent 60%),
    linear-gradient(180deg, #4a3220 0%, #2a1d12 60%, #18120a 100%);
  animation: none;
}

@keyframes hero-ken-burns {
  0%   { transform: scale(1.00) translate(0%, 0%); }
  100% { transform: scale(1.08) translate(-1.5%, -1.2%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg--cover { animation: none; }
}

/* If video failed, fall back to default cover styling on hero-bg */
.story-hero.is-video-failed .hero-bg--video .hero-video { display: none; }
.story-hero.is-video-failed .hero-bg--video {
  animation: hero-ken-burns 22s ease-in-out infinite alternate;
}

/* ─── Warm vignette + bottom legibility fade ─────────────────── */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 38% 32% at 32% 28%, rgba(255, 200, 130, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0, 0, 0, 0.45), transparent 65%);
}
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.22) 0%,
    rgba(0,0,0,0.05) 32%,
    rgba(0,0,0,0.18) 65%,
    rgba(0,0,0,0.65) 100%);
}
.story-hero--no-cover .hero-fade {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.18) 100%);
}

/* ─── Mini header (top-left breadcrumb) ──────────────────────── */
.hero-mini {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pt-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
}
.hero-mini-studio {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
.hero-mini-sep { color: rgba(255, 255, 255, 0.40); }
.hero-mini-project { color: rgba(255, 255, 255, 0.62); }

/* ─── Centered content ───────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 80px;
  text-align: center;
}
.hero-content-inner {
  max-width: 820px;
  margin: 0 auto;
  transform: translateY(-12px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-family: var(--pt-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.hero-eyebrow-rule {
  display: inline-block;
  width: 28px; height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-title {
  font-family: var(--pt-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 8vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 24px;
  text-wrap: balance;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-family: var(--pt-sans);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  letter-spacing: 0.005em;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Bottom-center scroll prompt ─────────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--pt-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-scroll-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pt-secondary, #C8956C);
  box-shadow: 0 0 0 4px rgba(200, 149, 108, 0.18);
}
.hero-scroll-arrow {
  display: inline-block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  animation: hero-bounce 2.2s ease-in-out infinite;
}
@keyframes hero-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}
.story-hero.is-scrolled .hero-scroll {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  pointer-events: none;
}

/* ─── Bottom-right attribution ───────────────────────────────── */
.hero-attribution {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--pt-sans);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
}
.hero-attribution-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.18s ease;
}
.hero-attribution-mark:hover { opacity: 0.85; text-decoration: none; }
.hero-mark-img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  flex: 0 0 auto;
}
.hero-attribution-text { color: rgba(255, 255, 255, 0.82); }
.hero-attribution-text strong { color: #fff; font-weight: 600; }
.hero-copyright {
  font-family: var(--pt-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.50);
  text-transform: uppercase;
}

/* ─── Mobile / responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-content { padding: 32px 22px; }
  .hero-content-inner { transform: none; max-width: 100%; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.18em; gap: 8px; margin-bottom: 22px; }
  .hero-eyebrow-rule { width: 18px; }
  .hero-title { margin-bottom: 18px; }
  .hero-subtitle { font-size: 14px; }

  .hero-mini {
    top: 18px; left: 18px;
    font-size: 10px;
    gap: 6px;
  }
  .hero-mini-project { display: none; }

  .hero-scroll {
    bottom: 80px;
    font-size: 9.5px;
    letter-spacing: 0.16em;
  }
  .hero-scroll-text { display: none; }

  .hero-attribution {
    bottom: 18px;
    right: 18px;
    font-size: 10.5px;
    gap: 4px;
  }
  .hero-mark-img { width: 14px; height: 14px; }
  .hero-copyright { font-size: 9.5px; }
}

@media (max-width: 480px) {
  .hero-eyebrow-rule { display: none; }
}
