/* =========================================================================
   Homepage polish layer — "serene organic editorial-spa"
   Everything here is scoped to body.home so secondary pages are untouched.
   Builds on tokens defined in styles.css.
   ========================================================================= */

/* Type system: headings = Raleway, body = system sans (defined in styles.css) */

/* ---- Hero: atmosphere, grain, breathing motion ----------------------- */
.home .hero {
  /* fill the viewport below the top bar + header so the scroll cue sits at the fold.
     (topbar 26px + header ~78px = 104px); svh keeps it correct on mobile browser chrome. */
  min-height: max(420px, calc(100vh - 104px));
  min-height: max(420px, calc(100svh - 104px));
  display: flex; align-items: center;
  background:
    linear-gradient(100deg, rgba(22,15,38,.92) 0%, rgba(22,15,38,.80) 26%, rgba(22,15,38,.50) 50%, rgba(22,15,38,.14) 72%, rgba(22,15,38,0) 88%),
    linear-gradient(to bottom, rgba(22,15,38,.45) 0%, rgba(22,15,38,.10) 40%, rgba(22,15,38,.04) 64%, rgba(22,15,38,.28) 100%),
    url('/assets/img/hero.png') center / cover no-repeat;
}
.home .hero-words { text-shadow: 0 2px 5px rgba(16,10,30,.55), 0 8px 30px rgba(16,10,30,.6); }
/* on narrow screens "cover" crops to the image's horizontal center, which cuts off the
   stacked-rock cairn (it sits far right in the source photo). Shift the crop right so
   the cairn lands behind the headline instead of off-screen. */
@media (max-width: 720px) {
  .home .hero { background-position: 80% center; }
}
/* fine film grain over the gradient, under the text + stones */
.home .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .26; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.home .hero .container { padding-block: clamp(3.5rem, 10vw, 7rem); }

.home .hero-words { line-height: 1.55; letter-spacing: .05em; }
.home .hero-words span {
  display: block; font-size: clamp(2.1rem, 6.2vw, 3.9rem);
  opacity: 0; transform: translateY(22px);
  animation: heroUp 1s cubic-bezier(.2,.75,.25,1) forwards;
}
.home .hero-words span + span { margin-top: .35em; }
.home .hero-words .l1 { animation-delay: .15s; }
.home .hero-words .l2 { animation-delay: .30s; }
.home .hero-words .l3 { animation-delay: .45s; font-style: normal; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* Hero CTA — a quiet ghost button under the stepped headline. Legible over the
   photo via the dark scrim + a faint self-backing; keyboard-focusable. */
.home .hero-cta {
  display: inline-block; margin-top: clamp(1.6rem, 4vw, 2.4rem);
  padding: .7rem 1.7rem; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.78); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: .02em;
  background: rgba(22,15,38,.30); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transform: translateY(22px);
  animation: heroUp 1s .6s cubic-bezier(.2,.75,.25,1) forwards;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.home .hero-cta:hover { background: #fff; color: var(--indigo); border-color: #fff; text-decoration: none; }
.home .hero-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .home .hero-cta { animation: none !important; opacity: 1; transform: none; }
}

/* real mountain photo band */
.home .band img { width: 100%; height: clamp(170px, 24vw, 320px); object-fit: cover; object-position: center 58%; display: block; }

/* gentle scroll cue */
.home .scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.75); border-radius: 14px;
  z-index: 3; opacity: 0; animation: cueFade 1s 1.1s forwards;
}
.home .scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px;
  background: rgba(255,255,255,.9); transform: translateX(-50%);
  animation: cueDot 1.8s 1.6s ease-in-out infinite;
}
.home .scroll-cue:hover { border-color: #fff; }
@keyframes cueFade { to { opacity: 1; } }
@keyframes cueDot  { 0%,100% { top: 8px; opacity: 0; } 35% { opacity: 1; } 70% { top: 22px; opacity: 0; } }

/* ---- Eyebrow + warm serif lead --------------------------------------- */
.home .eyebrow {
  font-family: var(--font-script);
  text-align: center; text-transform: uppercase; letter-spacing: .26em;
  font-size: .74rem; font-weight: 600; color: var(--sage-deep); margin: 0 0 .2rem;
}
.home .welcome-lead {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(1.2rem, 2.3vw, 1.5rem); line-height: 1.55; color: var(--ink);
  text-align: center; margin: 0 auto 1.4rem; max-width: 40ch;
}
.home .welcome-lead strong { font-weight: 600; }
.home .section--narrow .prose-body { color: var(--ink-soft); text-align: left; max-width: 60ch; margin-inline: auto; }

/* heading flourish, card hover, tile-link nudge, and the .reveal system
   are defined site-wide in styles.css (rolled out to every page). */

/* ---- Testimonials ---------------------------------------------------- */
.home .testimonial { padding-top: .5rem; }
.home .testimonial .quote-mark { font-size: 5rem; color: var(--sage); opacity: .55; height: 2rem; }
.home .testimonial blockquote {
  font-family: var(--font-body); font-style: italic; font-weight: 400;
  font-size: clamp(1.18rem, 2.3vw, 1.5rem); line-height: 1.55; color: var(--ink);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.home .testimonial cite { letter-spacing: .04em; margin-top: 1.1rem;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .home .testimonial blockquote, .home .testimonial cite { transition: none; }
}
.home .testi-dots button { transition: background .25s ease, transform .25s ease; }
.home .testi-dots button:hover { transform: scale(1.25); }

/* ---- Respect reduced motion (homepage-only animations) --------------- */
@media (prefers-reduced-motion: reduce) {
  .home .hero-words span { animation: none !important; opacity: 1; transform: none; }
  .home .scroll-cue { display: none; }
}
