/* Zaviya Wear — brand home. Restrained scroll composition built on the shared scroll-craft
   design floor (tokens.css): six acts, one signature move (a slow media-veil reveal + soft
   rise-on-scroll), no video/pinning engine — see the storefront report for why (no KIE key,
   no external image generation; CSS/SVG + the existing 1080x1080 product photos only). */
body.home { background: var(--sc-canvas); }
.home-header { background: transparent; border-bottom: 1px solid transparent; position: absolute; inset-inline: 0; top: 0; }
.home-header .brand-mark, .home-header .site-nav a { color: #fff; }
.home-header .site-nav a:hover { color: #fff; border-color: var(--sc-accent); }
.home-header.scrolled { position: sticky; background: color-mix(in srgb, var(--sc-canvas) 88%, transparent); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.home-header.scrolled .brand-mark, .home-header.scrolled .site-nav a { color: var(--sc-ink); }
.home-header.scrolled .site-nav a:hover { color: var(--sc-ink); }

.act { position: relative; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.06) translateY(var(--parallax, 0px)); will-change: transform; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,24,.15) 0%, rgba(14,17,24,.15) 40%, rgba(14,17,24,.86) 100%); }
.hero-copy { position: relative; z-index: 1; color: #fff; padding-block: 0 72px; max-width: 640px; }
.hero .eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); margin: 0 0 14px; }
.hero h1 { font-family: var(--sc-font-display); font-weight: 400; font-size: clamp(34px, 6vw, 58px); line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
.hero-sub { font-size: 15.5px; color: rgba(255,255,255,.85); max-width: 46ch; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-on-dark { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-on-dark:hover { border-color: #fff; }
.scroll-cue { position: absolute; right: 24px; bottom: 26px; z-index: 1; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 26px; background: rgba(255,255,255,.55); position: relative; overflow: hidden; }
.scroll-cue span::after { content:""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--sc-accent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { top: -100% } 60% { top: 100% } 100% { top: 100% } }

/* ---------- story ---------- */
.story { padding-block: 90px; }
.story-mark { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sc-ink-soft); margin: 0 0 18px; }
.story-line { font-family: var(--sc-font-display); font-weight: 400; font-size: clamp(22px, 3.4vw, 34px); line-height: 1.35; max-width: 20ch; margin: 0; }
.story-line em { color: var(--sc-accent-ink); font-style: normal; }

/* ---------- categories ---------- */
.categories { padding-block: 20px 90px; }
.cat-rail { display: flex; gap: 14px; overflow-x: auto; padding-inline: var(--gutter); scroll-snap-type: x proximity; }
.cat-tile {
  position: relative; flex: 0 0 150px; aspect-ratio: 4/5; border-radius: var(--radius-md); overflow: hidden;
  text-decoration: none; scroll-snap-align: start; box-shadow: var(--shadow-card);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14,17,24,.72) 100%); }
.cat-tile span { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; font-family: var(--sc-font-display); font-size: 17px; }
@media (min-width: 900px) { .cat-tile { flex-basis: 200px; } }

/* ---------- featured ---------- */
.featured { padding-block: 20px 90px; }
.featured-more { text-align: center; margin-top: 30px; }

/* ---------- how it works ---------- */
.how { padding-block: 20px 90px; }
.how-steps { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 26px; }
.how-steps li { display: flex; flex-direction: column; gap: 6px; }
.how-steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--sc-accent-ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.how-steps b { font-size: 15px; }
.how-steps p { margin: 0; color: var(--sc-ink-soft); font-size: 13.5px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sc-ink-soft); }
.trust-strip span::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* ---------- closing ---------- */
.closing { padding-block: 90px 110px; text-align: center; background: var(--sc-accent-ink); color: #fff; }
.closing-line { font-family: var(--sc-font-display); font-weight: 400; font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 22px; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.closing .btn-primary { background: #fff; color: var(--sc-accent-ink); }
.closing .btn-primary:hover { background: rgba(255,255,255,.88); }

/* ---------- reveal-on-scroll (respects prefers-reduced-motion via tokens.css) ---------- */
.reveal, .reveal-up { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in, .reveal-up.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(1) { transition-delay: .05s; }
.hero .reveal:nth-child(2) { transition-delay: .16s; }
.hero .reveal:nth-child(3) { transition-delay: .27s; }
.hero .reveal:nth-child(4) { transition-delay: .38s; }
.cat-tile.reveal-up:nth-child(1) { transition-delay: 0s; }
.cat-tile.reveal-up:nth-child(2) { transition-delay: .06s; }
.cat-tile.reveal-up:nth-child(3) { transition-delay: .12s; }
.cat-tile.reveal-up:nth-child(4) { transition-delay: .18s; }
.cat-tile.reveal-up:nth-child(5) { transition-delay: .24s; }

@media (max-width: 700px) {
  /* 112px clears the fixed chat launcher (60px circle + 18px offset ~= 78px footprint,
     plus breathing room) so "Ask on WhatsApp" is never sat behind it. */
  .hero-copy { padding-bottom: 112px; }
  .hero h1 { font-size: clamp(30px, 8vw, 40px); }
  /* The product photos are themselves mini "product cards" with a name + category caption
     baked into the bottom ~15% of the (square) source image. At a portrait mobile aspect
     ratio, object-fit:cover on a 1:1 image inside a much-taller container does almost no
     vertical cropping (the scaled image's height already matches the container), so that
     baked-in caption band sits right at the bottom of the hero — behind our own H1/CTA row.
     A stronger zoom pushes it below the visible frame; see the M6b follow-up report. */
  .hero-media img { transform: scale(1.7) translateY(var(--parallax, 0px)); }
  .hero-veil { background: linear-gradient(180deg, rgba(14,17,24,.18) 0%, rgba(14,17,24,.3) 32%, rgba(14,17,24,.94) 78%); }
}
