/* v10: transparent header over the homepage hero + interactive, animated sections */

/* ---------- transparent header on the homepage (turns into the glass pill on scroll / hover / menu) ---------- */
.home .hdr--pill.is-transparent .hdr-inner { background: transparent; border-color: rgba(255, 255, 255, .22); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .hdr.hdr--pill.is-transparent, .home .hdr--pill.is-transparent .nav-link, .home .hdr--pill.is-transparent .icon-btn { color: #fbf6ee; }
.home .hdr--pill.is-transparent .hdr-mark, .home .hdr--pill.is-transparent .hdr-word { filter: invert(1) brightness(1.15) !important; }
.home .hdr--pill.is-transparent .nav-link:hover, .home .hdr--pill.is-transparent .icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.home .hdr--pill.is-transparent .hdr-bag-pill { background: #fbf6ee; color: var(--ink); }
.home .hdr--pill.is-transparent .hdr-bag-count { background: rgba(27, 23, 20, .1); color: var(--ink); }
.home .hdr--pill.is-transparent .badge-count { background: #fbf6ee; color: var(--ink); }
.home .hdr--pill .hdr-inner, .home .hdr--pill .nav-link, .home .hdr--pill .icon-btn, .home .hdr--pill .hdr-mark, .home .hdr--pill .hdr-word { transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), filter .35s var(--ease), height .3s var(--ease); }
/* a soft shade at the top of the hero keeps the white menu readable on light photos */
.home .hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 220px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(14, 13, 11, .45), rgba(14, 13, 11, 0)); }

/* ---------- hero: photo follows the cursor a little ---------- */
.hero-media picture { display: block; height: 100%; transition: transform .9s cubic-bezier(.2, .7, .2, 1); will-change: transform; }

/* ---------- headings reveal word by word ---------- */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.is-in .split-words .w > span, .split-words.is-in .w > span { transform: none; }

/* ---------- 3D tilt on cards ---------- */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; will-change: transform; }
.tilt.is-tilting { transition: transform .12s linear; }

/* ---------- draggable rails ---------- */
.carousel-track.is-draggable { cursor: grab; }
.carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
.carousel-track.is-dragging a, .carousel-track.is-dragging img { pointer-events: none; }

/* ---------- product page: timeline draws itself, notes pop in ---------- */
.journey::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.6s var(--ease-out) .2s; }
.journey.is-in::before { transform: none; }
.journey .journey-dot { transform: scale(.4); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s; }
.journey.is-in .journey-step:nth-child(1) .journey-dot { transition-delay: .25s; }
.journey.is-in .journey-step:nth-child(2) .journey-dot { transition-delay: .75s; }
.journey.is-in .journey-step:nth-child(3) .journey-dot { transition-delay: 1.25s; }
.journey.is-in .journey-dot { transform: none; opacity: 1; }
.journey-notes li { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease-out); transition-delay: calc(.4s + var(--n, 0) * 60ms); }
.journey.is-in .journey-notes li { opacity: 1; transform: none; }
@media (max-width: 760px) { .journey::before { transform: scaleY(0); transform-origin: center top; } .journey.is-in::before { transform: none; } }

/* homepage spotlight notes appear row by row */
.pyramid-row { opacity: 0; transform: translateX(-10px); transition: opacity .6s, transform .6s var(--ease-out); }
.pyramid.is-in .pyramid-row { opacity: 1; transform: none; }
.pyramid.is-in .pyramid-row:nth-child(2) { transition-delay: .15s; }
.pyramid.is-in .pyramid-row:nth-child(3) { transition-delay: .3s; }

/* trust strip icons rise in one after another */
.trust-item { opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s var(--ease-out); }
.trust.is-in .trust-item { opacity: 1; transform: none; }
.trust.is-in .trust-item:nth-child(2) { transition-delay: .1s; }
.trust.is-in .trust-item:nth-child(3) { transition-delay: .2s; }
.trust.is-in .trust-item:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .hero-media picture, .tilt { transform: none !important; transition: none !important; }
  .split-words .w > span, .journey::before, .journey .journey-dot, .journey-notes li, .pyramid-row, .trust-item { transform: none !important; opacity: 1 !important; transition: none !important; }
}
