/* HILLTILL — home page hero: full-screen image slider. Loaded on the home page only. */

.hero {
    --hero-h: clamp(560px, calc(100svh - 96px), 1000px);
    --hero-pad: clamp(20px, 5vw, 88px);
    --hero-interval: 7s;
    --hero-ivory: #ffffff;
    --hero-bronze: #c49a6c;
    position: relative; overflow: hidden; background: #141311; color: var(--hero-ivory);
}
.hero__track { position: relative; height: var(--hero-h); }

/* ---------- Slides ---------- */
.hero__slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.2s var(--ease), visibility 0s; }

.hero__media { position: absolute; inset: 0; overflow: hidden; background: #2a2724; }
.hero__media img {
    width: 100%; height: 100%; object-fit: cover; object-position: var(--pos);
    transform: scale(1.12); transform-origin: 50% 30%;
    transition: transform 1.2s var(--ease) 1.2s;
}
.hero__slide.is-active .hero__media img { transform: scale(1); transition: transform 9s cubic-bezier(.16, .6, .3, 1); }

/* Scrims: a soft vignette at the top for the header edge, a deep fade behind the copy */
.hero__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(14, 13, 12, .38) 0%, rgba(14, 13, 12, 0) 22%),
        linear-gradient(0deg, rgba(14, 13, 12, .86) 0%, rgba(14, 13, 12, .5) 32%, rgba(14, 13, 12, 0) 62%),
        linear-gradient(90deg, rgba(14, 13, 12, .55) 0%, rgba(14, 13, 12, 0) 55%);
}

/* ---------- Copy ---------- */
.hero__copy {
    position: absolute; z-index: 2; left: var(--hero-pad); bottom: 128px;
    width: min(640px, calc(100% - var(--hero-pad) * 2));
}
.hero__copy > * { opacity: 0; transform: translateY(22px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hero__slide.is-active .hero__copy > * { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.hero__slide.is-active .hero__copy > :nth-child(1) { transition-delay: .45s; }
.hero__slide.is-active .hero__copy > :nth-child(2) { transition-delay: .55s; }
.hero__slide.is-active .hero__copy > :nth-child(3) { transition-delay: .68s; }
.hero__slide.is-active .hero__copy > :nth-child(4) { transition-delay: .8s; }

.hero__eyebrow {
    display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
    font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.hero__index { color: var(--hero-bronze); font-weight: 600; letter-spacing: .08em; }
.hero__index::after { content: ""; display: inline-block; width: 32px; height: 1px; margin-left: 14px; vertical-align: middle; background: currentColor; opacity: .7; }
.hero__title {
    font-family: var(--sans); font-weight: 700; font-variation-settings: "wdth" 92;
    font-size: clamp(40px, 5.2vw, 88px); line-height: .98; letter-spacing: -.035em;
    text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero__title em {
    font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.1em; line-height: .9;
    letter-spacing: -.01em; color: var(--hero-bronze);
}
.hero__text { max-width: 42ch; margin-top: 20px; font-size: 16px; line-height: 1.6; color: rgba(244, 239, 230, .84); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }

.hero__btn {
    display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 26px 0 30px;
    background: var(--hero-ivory); color: var(--ink); border: 1px solid var(--hero-ivory);
    font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.hero__btn svg { transition: transform .35s var(--ease); }
.hero__btn:hover { background: var(--hero-bronze); border-color: var(--hero-bronze); color: #fff; }
.hero__btn:hover svg { transform: translateX(4px); }
.hero__link {
    font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding-block: 6px;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: background-size .35s var(--ease);
}
.hero__link:hover { background-size: 40% 1px; }
.hero :focus-visible { outline: 2px solid var(--hero-ivory); outline-offset: 4px; }

/* ---------- Controls ---------- */
.hero__controls {
    position: absolute; z-index: 3; left: var(--hero-pad); right: var(--hero-pad); bottom: 36px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.hero__dots { display: flex; flex: 1; min-width: 0; max-width: 560px; gap: 18px; }
.hero__dot {
    flex: 1 1 0; min-width: 0; display: grid; gap: 10px; padding-block: 8px; text-align: left;
    font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    opacity: .55; transition: opacity .4s var(--ease);
}
.hero__dot-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__dot-label span { color: var(--hero-bronze); font-weight: 600; margin-right: 6px; }
.hero__dot:hover, .hero__dot.is-active { opacity: 1; }
.hero__bar { position: relative; display: block; height: 2px; overflow: hidden; background: rgba(244, 239, 230, .28); }
.hero__fill { position: absolute; inset: 0; background: var(--hero-ivory); transform: scaleX(0); transform-origin: 0 50%; }
.hero__dot.is-active .hero__fill { animation: hero-progress var(--hero-interval) linear forwards; }
.hero.is-paused .hero__dot.is-active .hero__fill { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }

.hero__arrows { display: flex; gap: 8px; flex: none; }
.hero__arrow {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(244, 239, 230, .4); background: rgba(20, 19, 17, .2);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.hero__arrow:hover { background: var(--hero-ivory); border-color: var(--hero-ivory); color: var(--ink); }
.hero__arrow--prev svg { transform: rotate(180deg); }
.hero__i-play, .hero.is-stopped .hero__i-pause { display: none; }
.hero.is-stopped .hero__i-play { display: block; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .hero__copy { bottom: 120px; }
}

/* ---------- Mobile: portrait screens show more of each look ---------- */
@media (max-width: 767px) {
    .hero { --hero-h: clamp(560px, calc(100svh - 96px), 860px); }
    .hero__media img { object-position: var(--pos-m); }
    .hero__media::after {
        background:
            linear-gradient(180deg, rgba(14, 13, 12, .3) 0%, rgba(14, 13, 12, 0) 18%),
            linear-gradient(0deg, rgba(14, 13, 12, .92) 0%, rgba(14, 13, 12, .7) 34%, rgba(14, 13, 12, 0) 66%);
    }
    .hero__copy { bottom: 92px; }
    .hero__eyebrow { margin-bottom: 14px; }
    .hero__title { font-size: clamp(34px, 9.6vw, 52px); }
    .hero__text { margin-top: 12px; font-size: 14.5px; line-height: 1.55; }
    .hero__ctas { margin-top: 22px; gap: 12px 22px; }
    .hero__btn { min-height: 48px; padding: 0 20px 0 22px; }
    .hero__controls { bottom: 22px; gap: 16px; }
    .hero__dots { gap: 10px; }
    .hero__dot-label { font-size: 10px; letter-spacing: .1em; }
    .hero__arrow { width: 40px; height: 40px; }
    .hero__arrow--prev { display: none; }
}
@media (max-width: 380px) {
    .hero__text { display: none; }
    .hero__dot-label { font-size: 0; }
    .hero__dot-label span { font-size: 10px; }
}

/* ---------- Reduced motion: no autoplay, instant swaps ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero__dot.is-active .hero__fill { transform: none; }
    .hero__media img { transform: none; }
    .hero [data-hero-toggle] { display: none; }
}
