/* AUTOGRAF homepage — reference-driven monochrome automotive composition. */
.home-page { background: #050607; }

/* Product masks are shared by all pages and intentionally live in this late stylesheet. */
img[src*="canister-"][src*="-one-neck-v1.webp"] { mask-size: 100% 100%; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; }
img[src*="canister-standard-one-neck-v1"] { mask-image: url('/images/products/mask-standard.svg'); -webkit-mask-image: url('/images/products/mask-standard.svg'); }
img[src*="canister-gold-one-neck-v1"] { mask-image: url('/images/products/mask-gold.svg'); -webkit-mask-image: url('/images/products/mask-gold.svg'); }
img[src*="canister-premium-one-neck-v1"] { mask-image: url('/images/products/mask-premium.svg'); -webkit-mask-image: url('/images/products/mask-premium.svg'); }
img[src*="canister-pink-one-neck-v1"] { mask-image: url('/images/products/mask-pink.svg'); -webkit-mask-image: url('/images/products/mask-pink.svg'); }
img[src*="canister-purple-one-neck-v1"] { mask-image: url('/images/products/mask-purple.svg'); -webkit-mask-image: url('/images/products/mask-purple.svg'); }
img[src*="canister-truck-one-neck-v1"] { mask-image: url('/images/products/mask-truck.svg'); -webkit-mask-image: url('/images/products/mask-truck.svg'); }
img[src*="-dilution-label-v2.svg"] { mask-size: 100% 100%; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; }
img[src*="canister-standard-dilution-label-v2"] { mask-image: url('/images/products/mask-standard.svg'); -webkit-mask-image: url('/images/products/mask-standard.svg'); }
img[src*="canister-gold-dilution-label-v2"] { mask-image: url('/images/products/mask-gold.svg'); -webkit-mask-image: url('/images/products/mask-gold.svg'); }
img[src*="canister-premium-dilution-label-v2"] { mask-image: url('/images/products/mask-premium.svg'); -webkit-mask-image: url('/images/products/mask-premium.svg'); }
img[src*="canister-pink-dilution-label-v2"] { mask-image: url('/images/products/mask-pink.svg'); -webkit-mask-image: url('/images/products/mask-pink.svg'); }
img[src*="canister-truck-dilution-label-v2"] { mask-image: url('/images/products/mask-truck.svg'); -webkit-mask-image: url('/images/products/mask-truck.svg'); }

.ui-search-icon,.ui-user-icon { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body:has(.home-page) .header { position: absolute; top: 0; left: 0; width: 100%; background: rgba(5,6,7,.9); border-bottom: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body:has(.home-page) .header-inner { width: calc(100% - 10vw); max-width: none; height: 118px; }
body:has(.home-page) .desktop-nav { gap: clamp(32px,4.3vw,74px); }
body:has(.home-page) .desktop-nav a { font-size: 16px; color: #f1f2f3; }
body:has(.home-page) .header-actions { gap: 22px; }
body:has(.home-page) .icon-button { width: 42px; height: 42px; }
body:has(.home-page) .brand { transform: scale(1.08); transform-origin: left center; }

.homepage-hero { position: relative; display: flex; min-height: 100svh; overflow: hidden; flex-direction: column; isolation: isolate; background: #050607; border-bottom: 1px solid rgba(255,255,255,.15); }
.homepage-bg { position: absolute; z-index: -3; inset: 0; }
.homepage-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; animation: homePhotoIn 1.15s cubic-bezier(.2,.75,.25,1) both; }
.homepage-hero::before { content: ''; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg,rgba(3,4,5,.99) 0%,rgba(3,4,5,.91) 25%,rgba(3,4,5,.48) 42%,rgba(3,4,5,.04) 62%,rgba(3,4,5,.06) 100%),linear-gradient(0deg,rgba(3,4,5,.5),transparent 25%); pointer-events: none; }
.homepage-shell { width: min(90%,1800px); margin: 0 auto; padding-top: clamp(166px,18vh,222px); }
.homepage-copy { width: 48%; max-width: 770px; animation: homeFadeUp .75s .08s ease-out both; }
.homepage-overline { margin: 0 0 25px; font-size: clamp(12px,.95vw,18px); font-weight: 500; letter-spacing: .48em; white-space: nowrap; }
.homepage-copy h1 { max-width: none; margin: 0; font-size: clamp(54px,4.65vw,88px); line-height: .95; letter-spacing: -.035em; }
.homepage-copy h1 span { display: block; width: max-content; max-width: 100%; white-space: nowrap; background: linear-gradient(#fff 15%,#edf0f2 40%,#aeb4b9 61%,#f6f7f8 82%); color: transparent; background-clip: text; -webkit-background-clip: text; }
.homepage-tagline { display: flex; align-items: center; gap: 24px; margin: 30px 0 24px; color: #f5f5f4; font-size: clamp(22px,1.65vw,32px); font-weight: 400; white-space: nowrap; }
.homepage-tagline i { display: block; width: 110px; height: 1px; background: rgba(255,255,255,.55); }
.homepage-description { margin: 0; color: #e1e3e5; font-size: clamp(16px,1.05vw,21px); line-height: 1.38; }
.homepage-cta-row { display: flex; align-items: center; gap: 22px; margin-top: 36px; }
.homepage-catalog-button { position: relative; display: flex; width: min(315px,52%); min-height: 60px; padding: 0 50px; align-items: center; justify-content: center; border-radius: 32px; background: #fff; color: #050607; font-size: 15px; font-weight: 800; line-height: 1.2; text-align: center; transition: transform .25s,box-shadow .25s; }
.homepage-catalog-button svg { position: absolute; top: 50%; right: 22px; width: 22px; height: 22px; transform: translateY(-50%); transition: transform .25s; }
.homepage-catalog-button:hover { transform: scale(1.025); box-shadow: 0 10px 35px rgba(255,255,255,.1); }
.homepage-catalog-button:hover svg { transform: translate(5px,-50%); }
.homepage-benefits { display: grid; width: min(45%,730px); margin: clamp(34px,5vh,62px) 0 74px 5%; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.homepage-benefits > div { display: grid; justify-items: center; gap: 12px; color: #eff1f2; text-align: center; font-size: 13px; line-height: 1.25; }
.home-feature-icon { width: 35px; height: 35px; }
.homepage-slide-nav { position: absolute; left: 5%; bottom: 27px; display: flex; align-items: center; gap: 24px; color: #d8dadd; font-size: 13px; }
.homepage-slide-nav i { width: 78px; height: 1px; margin-left: -12px; background: #fff; }
.homepage-slide-nav button { border: 0; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.homepage-scroll-cue { position: absolute; right: 5%; bottom: 31px; margin: 0; color: #d4d6d8; font-size: 11px; letter-spacing: .04em; }
.homepage-wall-mark { position: absolute; z-index: -1; top: 18.5%; right: 13.5%; display: flex; align-items: center; gap: 10px; color: rgba(215,216,213,.34); opacity: .82; filter: blur(.32px) contrast(.76); mix-blend-mode: screen; transform: perspective(700px) rotateY(-7deg) rotate(-1.4deg) skewY(-.5deg); transform-origin: right center; }
.homepage-wall-mark::after { content: ''; position: absolute; inset: -8px -12px; opacity: .38; background: repeating-linear-gradient(91deg,transparent 0 4px,rgba(0,0,0,.16) 5px); pointer-events: none; }
.homepage-wall-mark img { width: 54px; height: 54px; border-radius: 50%; clip-path: circle(48%); filter: grayscale(1) brightness(.82); opacity: .4; }
.homepage-wall-mark span { font: 17px/1.1 Georgia,serif; text-shadow: 0 1px 0 rgba(255,255,255,.04),0 -1px 1px rgba(0,0,0,.55); }
.homepage-wall-mark small { font: 7px/1 Manrope,sans-serif; letter-spacing: .12em; }

.home-page .home-products { padding-top: 92px; }
.vehicle-icon { display: inline-block; width: 38px; height: 36px; flex: none; vertical-align: middle; }
.home-selector { display: flex; min-height: 330px; align-items: center; justify-content: space-between; gap: 40px; }
.home-selector > div { max-width: 680px; }
.home-selector p:not(.eyebrow),.home-brand-story p:not(.eyebrow),.home-compare p,.home-contact-cta p:not(.eyebrow) { color: #aeb4bb; }
.home-brand-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; align-items: center; padding-bottom: 110px; }
.home-brand-story > div:first-child { padding-left: 7%; }
.home-brand-photo { position: relative; min-height: 420px; border: 0; background: #050607 url('/images/cars/home-brand-crossover-v1.png') 65% center/cover no-repeat; }
.home-brand-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,#050607 0%,rgba(5,6,7,.72) 12%,transparent 38%),linear-gradient(270deg,#050607 0%,transparent 14%),linear-gradient(0deg,#050607 0%,transparent 19% 81%,#050607 100%); }
.home-compare { padding: 90px 0; border-block: 1px solid rgba(255,255,255,.13); background: #0b0d10; }
.home-compare .container { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.home-contact-cta { padding: 115px 0; text-align: center; }
.home-contact-cta p { max-width: 640px; margin-inline: auto; }
.home-contact-cta .button { margin-top: 20px; }

@keyframes homeFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes homePhotoIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 1100px) {
  body:has(.home-page) .header-inner { width: calc(100% - 48px); }
  body:has(.home-page) .desktop-nav { gap: 22px; }
  body:has(.home-page) .desktop-nav a { font-size: 13px; }
  body:has(.home-page) .header-actions { gap: 7px; }
  .homepage-shell { width: calc(100% - 64px); }
  .homepage-copy { width: 53%; }
  .homepage-copy h1 { font-size: clamp(48px,5.5vw,67px); }
  .homepage-overline { letter-spacing: .32em; }
  .homepage-benefits { width: 50%; margin-left: 32px; }
  .homepage-wall-mark { display: none; }
}

@media (max-width: 800px) {
  body:has(.home-page) .header { position: absolute; background: linear-gradient(#050607 0%,rgba(5,6,7,.72) 80%,transparent); border-bottom-color: transparent; }
  body:has(.home-page) .header-inner { width: calc(100% - 32px); height: 92px; }
  body:has(.home-page) .brand { transform: none; }
  body:has(.home-page) .search-button,body:has(.home-page) .profile-button { display: none; }
  .homepage-hero { min-height: auto; padding-bottom: 28px; }
  .homepage-bg { position: relative; order: 2; height: clamp(285px,83vw,470px); }
  .homepage-bg img { object-position: 69% center; }
  .homepage-hero::before { z-index: -2; background: linear-gradient(#050607 0 38%,transparent 54% 76%,#050607 100%); }
  .homepage-shell { order: 1; width: calc(100% - 32px); padding-top: 118px; }
  .homepage-copy { width: 100%; text-align: left; }
  .homepage-overline { margin-bottom: 17px; font-size: clamp(10px,2.7vw,13px); letter-spacing: .24em; }
  .homepage-copy h1 { font-size: clamp(39px,11.2vw,72px); }
  .homepage-tagline { gap: 15px; margin: 21px 0 16px; font-size: clamp(18px,5vw,26px); }
  .homepage-tagline i { width: 55px; }
  .homepage-description { font-size: 15px; }
  .homepage-cta-row { margin-top: 26px; gap: 14px; }
  .homepage-catalog-button { width: min(280px,75%); min-height: 54px; font-size: 12px; }
  .homepage-benefits { order: 3; width: calc(100% - 32px); margin: 4px auto 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 14px; }
  .homepage-benefits > div { font-size: 13px; }
  .homepage-slide-nav,.homepage-scroll-cue,.homepage-wall-mark { display: none; }
  .home-page .home-products { padding-top: 65px; }
  .home-selector,.home-compare .container { min-height: 0; padding-block: 70px; align-items: start; flex-direction: column; }
  .home-brand-story { grid-template-columns: 1fr; gap: 35px; padding-bottom: 75px; }
  .home-brand-story > div:first-child { padding-left: 0; }
  .home-brand-photo { min-height: 285px; }
  .home-contact-cta { padding: 80px 0; }
}

@media (max-width: 420px) {
  .homepage-shell { padding-top: 106px; }
  .homepage-copy h1 { font-size: clamp(35px,10.8vw,46px); }
  .homepage-overline { font-size: 9px; letter-spacing: .18em; }
  .homepage-tagline { font-size: 18px; }
  .homepage-description { font-size: 14px; }
  .homepage-catalog-button { min-height: 52px; padding-inline: 50px; }
  .homepage-bg { height: 300px; }
}

@media (max-height: 850px) and (min-width: 801px) {
  .homepage-shell { padding-top: 140px; }
  .homepage-copy h1 { font-size: clamp(48px,4.3vw,72px); }
  .homepage-overline { margin-bottom: 17px; }
  .homepage-tagline { margin-block: 20px 16px; }
  .homepage-description { font-size: 16px; }
  .homepage-cta-row { margin-top: 24px; }
  .homepage-benefits { margin-top: 28px; margin-bottom: 57px; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-bg img,.homepage-copy { animation: none; }
  .homepage-catalog-button,.homepage-catalog-button svg { transition: none; }
}
