/* Homepage polish: editorial details, brand color and purposeful motion. */
.home-enhanced { --ease-out: cubic-bezier(.22, 1, .36, 1); }
.home-enhanced .link-icon { font-size: 14px; line-height: 1; }
.home-enhanced .arrow { display: inline-flex; align-items: center; justify-content: center; }
.home-enhanced :is(a, button) .link-icon { transition: transform .35s var(--ease-out); }
.home-enhanced :is(a, button):hover .fa-arrow-right { transform: translateX(4px); }
.home-enhanced :is(a, button):hover .fa-arrow-up-right-from-square { transform: translate(2px, -2px); }
.home-enhanced .btn { position: relative; overflow: hidden; isolation: isolate; transition: background .3s, color .3s, box-shadow .3s, transform .35s var(--ease-out); }
.home-enhanced .btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 25%, #ffffff20 48%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease-out); pointer-events: none; }
.home-enhanced .btn:hover::before { transform: translateX(120%); }
.home-enhanced .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #07142618; }
.home-enhanced .text-link { text-underline-offset: 6px; }
.home-enhanced .text-link:hover { text-decoration: underline; }
.home-enhanced :is(a,button):focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

/* A cinematic opening, with fine rules drawn from the identity. */
.home-enhanced .hero::before { content: ''; position: absolute; z-index: 1; inset: 0; background: radial-gradient(ellipse at 10% 60%, #08152455, transparent 65%); pointer-events: none; }
.home-enhanced .hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 27px; color: #eed6af; font-size: 10px; font-weight: 600; letter-spacing: 2.5px; }
.hero-kicker-line { height: 1px; width: 38px; background: #d3b681; transform-origin: left; animation: rule-draw 1s var(--ease-out) both; }
.hero-kicker-year { color: #ffffff80; padding-left: 15px; border-left: 1px solid #ffffff35; font-size: 9px; letter-spacing: 1.5px; }
.home-enhanced .hero .eyebrow { font-size: 10px; letter-spacing: 2.3px; color: #ced6df; margin-bottom: 22px; }
.home-enhanced .hero h1 .serif { position: relative; }
.home-enhanced .hero h1 .serif::after { content: ''; position: absolute; bottom: 2px; height: 1px; left: 0; right: 10px; background: linear-gradient(90deg, #e8d4b1aa, #e8d4b100); transform-origin: left; animation: rule-draw 1.2s .7s var(--ease-out) both; }
.home-enhanced .hero-bg { animation: hero-scale 1.6s ease-out both; }
.home-enhanced .hero-caption .rule { width: 54px; }
.hero-scroll { position: absolute; z-index: 3; right: max(40px, calc((100% - 1280px) / 2)); top: 47%; display: flex; flex-direction: column; align-items: center; gap: 17px; color: #ffffffb3; }
.hero-scroll>span:last-child { writing-mode: vertical-rl; font-size: 9px; letter-spacing: 2.5px; }
.scroll-track { display: grid; place-items: center; width: 32px; height: 54px; border: 1px solid #ffffff45; border-radius: 30px; }
.scroll-track i { font-size: 11px; animation: scroll-nudge 2.5s ease-in-out 3; }
.hero-scroll:hover { color: #e8d4b1; }
.hero-scroll:hover .scroll-track { border-color: #e8d4b1; }
.home-enhanced .slider-controls .progress { gap: 8px; }
.home-enhanced .progress button { position: relative; width: 48px; height: 18px; background: none; }
.home-enhanced .progress button::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: #ffffff40; }
.home-enhanced .progress button::after { content: ''; position: absolute; left: 0; top: 8px; width: 100%; height: 2px; background: #e3c592; transform: scaleX(0); transform-origin: left; }
.home-enhanced .progress button.active::after { animation: slide-time 8s linear both; }
.home-enhanced .hero:is(:hover, :focus-within, .is-paused, .is-background) .progress button.active::after { animation-play-state: paused; }
.home-enhanced .hero:is(:hover, :focus-within, .is-paused, .is-background) .scroll-track i { animation-play-state: paused; }
.home-enhanced .slider-controls>.icon-btn:hover { background: #d3b681; border-color: #d3b681; color: #102348; }

/* Original logo geometry, monochrome at rest and brand colors on interaction. */
.home-enhanced .brands { position: relative; background: var(--surface); padding-top: 35px; }
.home-enhanced .brand-label { font-size: 10px; letter-spacing: 2px; }
.home-enhanced .brand-label::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px #b28c5110; }
.home-enhanced .brand-row { padding: 9px 3px 18px; }
.home-enhanced .model-brand-logo[src*="fiat-current"] { width: 56px; opacity: 1; }
.home-enhanced :is(.model-brand-logo,.price-links img)[src*="fiat-current"] { filter: grayscale(1) brightness(.55) contrast(100); mix-blend-mode: multiply; transition: filter .35s; }
.home-enhanced :is(.model-card,.price-links a):is(:hover,:focus-within) img[src*="fiat-current"] { filter: none; }
html[data-theme="dark"] .home-enhanced .price-links img[src*="fiat-current"] { filter: grayscale(1) brightness(.55) contrast(100) invert(1); mix-blend-mode: screen; }
html[data-theme="dark"] .home-enhanced .price-links a:is(:hover,:focus-visible) img[src*="fiat-current"] { filter: none; mix-blend-mode: multiply; }

/* Numbered discoveries and layered image interactions. */
.home-enhanced .section-head .eyebrow::before { content: ''; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.home-enhanced .category { isolation: isolate; border-radius: 14px; transition: transform .5s var(--ease-out), box-shadow .5s, border-color .4s; }
.home-enhanced .category-index { position: absolute; top: 21px; left: 24px; z-index: 2; font-size: 10px; letter-spacing: 2px; color: #ffffffa0; }
.home-enhanced .category::before { content: ''; position: absolute; z-index: 1; top: 27px; left: 51px; width: 25px; height: 1px; background: #ffffff50; transition: width .5s var(--ease-out); }
.home-enhanced .category:is(:hover,:focus-visible) { transform: translateY(-7px); box-shadow: 0 18px 32px #0b1c3720; }
.home-enhanced .category:is(:hover,:focus-visible)::before { width: 50px; background: #e3c592; }
.home-enhanced .category>span:not(.category-index) { position: relative; z-index: 2; }
.home-enhanced .category>span:not(.category-index) .arrow { width: 29px; height: 29px; border: 1px solid #ffffff45; border-radius: 50%; transition: background .35s, color .35s, border-color .35s; }
.home-enhanced .category:is(:hover,:focus-visible) .arrow { background: #e3c592; border-color: #e3c592; color: #14213c; }
.home-enhanced .category .arrow i { font-size: 11px; }
.home-enhanced .featured-models { background: radial-gradient(ellipse at 80% 15%, #234061 0, transparent 55%), #112541; }
.home-enhanced .featured-models::after { content: ''; pointer-events: none; position: absolute; top: 0; bottom: 0; left: 8%; width: 1px; background: linear-gradient(transparent,#ffffff09,transparent); }
.home-enhanced .model-stage { overflow: hidden; }
.home-enhanced .model-card:is(:hover,:focus-within) .model-car { transform: translateX(-8px) scale(1.055); }
.home-enhanced .model-card:focus-within { border-color: #d3b6818c; }
.home-enhanced .model-discover>span i { font-size: 13px; }
.home-enhanced .model-card:is(:hover,:focus-within) .model-discover>span { background: #d1b078; color: #112541; }
.home-enhanced .campaign-showcase .campaign { transition: transform .5s var(--ease-out), box-shadow .5s; }
.home-enhanced .campaign-showcase .campaign:is(:hover,:focus-within) { transform: translateY(-5px); box-shadow: 0 20px 40px #0b1c3726; }
.home-enhanced .campaign-showcase .campaign h3 { transition: transform .5s var(--ease-out); }
.home-enhanced .campaign-showcase .campaign:is(:hover,:focus-within) h3 { transform: translateY(-3px); }
.home-enhanced .feature { position: relative; }
.home-enhanced .feature-copy { position: relative; overflow: hidden; }
.home-enhanced .feature-copy::before { content: ''; position: absolute; right: -45px; bottom: -75px; width: 210px; height: 210px; border: 1px solid #b28c5126; border-radius: 50%; pointer-events: none; }
.home-enhanced .feature-copy::after { content: ''; position: absolute; right: -70px; bottom: -100px; width: 260px; height: 260px; border: 1px solid #b28c5115; border-radius: 50%; pointer-events: none; }
.home-enhanced .feature-copy>* { position: relative; z-index: 1; }
.home-enhanced .feature-photo>img { transition: transform 1.1s var(--ease-out); }
.home-enhanced .feature:hover .feature-photo>img { transform: scale(1.045); }
.home-enhanced .used-banner { box-shadow: 0 16px 45px #11254118; }
.home-enhanced .used-banner>img { transition: transform 1.2s var(--ease-out); }
.home-enhanced .used-banner:hover>img { transform: scale(1.045); }
.home-enhanced .about { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--soft), var(--bg)); border-block: 1px solid var(--line); }
.home-enhanced .about::after { content: ''; position: absolute; width: 320px; height: 320px; right: -110px; top: -90px; border: 1px solid #b28c5126; border-radius: 50%; pointer-events: none; }
.home-enhanced .stat { position: relative; border-left: 1px solid #b28c5155; padding-top: 15px; padding-bottom: 15px; }
.home-enhanced .stat::before { content: ''; position: absolute; left: -1px; top: 0; width: 2px; height: 26px; background: var(--gold); }
.home-enhanced .stat strong { font-variant-numeric: tabular-nums; }
.home-enhanced .location { transition: border-color .35s, box-shadow .35s, transform .4s var(--ease-out); }
.home-enhanced .location:hover { border-color: #b28c5166; box-shadow: 0 14px 35px #1125410d; transform: translateY(-4px); }
.home-enhanced .pin { font-size: 25px; color: var(--gold); }
.home-enhanced .journal-card { transition: transform .45s var(--ease-out), box-shadow .45s; }
.home-enhanced .journal-card:is(:hover,:focus-within) { transform: translateY(-6px); box-shadow: 0 20px 40px #11254112; }
.home-enhanced .journal-card:is(:hover,:focus-within) .journal-image img { transform: scale(1.06); }
.home-enhanced .journal-image img { transition: transform .9s var(--ease-out); }
.home-enhanced .journal-copy .text-link { display: inline-flex; align-items: center; gap: 16px; }
.home-enhanced .footer-invitation { position: relative; }
.home-enhanced .footer-invitation::after { content: ''; position: absolute; bottom: -1px; left: 0; height: 1px; width: 90px; background: #d3b681; }

/* Progressive enhancement: content stays visible without JavaScript. */
.home-enhanced .motion-reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.home-enhanced .motion-reveal.is-visible { opacity: 1; transform: none; }
.home-enhanced .motion-reveal:focus-within { opacity: 1; transform: none; transition-delay: 0ms; }
@keyframes rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes scroll-nudge { 0%,100% { transform: translateY(-4px); opacity: .5; } 50% { transform: translateY(5px); opacity: 1; } }
@keyframes slide-time { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 901px) {
  .home-enhanced .hero-content { transform: translateY(65px); }
  .home-enhanced .hero h1 { font-size: clamp(76px, 6.2vw, 96px); }
}
@media (max-width: 900px) {
  .hero-scroll { display: none; }
  .home-enhanced .hero-kicker { margin-bottom: 23px; font-size: 9px; gap: 11px; }
}
@media (max-width: 600px) {
  .home-enhanced .hero-kicker { margin-bottom: 20px; font-size: 8px; letter-spacing: 1.8px; }
  .hero-kicker-line { width: 23px; }
  .hero-kicker-year { font-size: 8px; padding-left: 10px; }
  .home-enhanced .hero .eyebrow { font-size: 9px; line-height: 1.8; max-width: 280px; letter-spacing: 1.4px; }
  .home-enhanced .hero h1 { font-size: clamp(45px, 12.5vw, 56px); }
  .home-enhanced .hero .hero-content { transform: translateY(0); }
  .home-enhanced .hero-ctas .btn { gap: 12px; }
  .home-enhanced .hero-caption .rule { width: 18px; }
  .home-enhanced .brand-label { font-size: 9px; line-height: 1.8; letter-spacing: 1.2px; gap: 10px; }
  .home-enhanced .category-index { top: 16px; left: 19px; font-size: 9px; }
  .home-enhanced .category::before { top: 22px; left: 45px; width: 21px; }
  .home-enhanced .category>span:not(.category-index) { font-size: 10px; gap: 8px; }
  .home-enhanced .category>span:not(.category-index) .arrow { flex-shrink: 0; width: 24px; height: 24px; }
  .home-enhanced .section-head .eyebrow::before { width: 15px; margin-right: 8px; }
  .home-enhanced .motion-reveal { transform: translateY(18px); }
}
@media (hover: none) {
  .home-enhanced .btn:hover,.home-enhanced .category:hover,.home-enhanced .campaign-showcase .campaign:hover,.home-enhanced .journal-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-enhanced .motion-reveal { opacity: 1; transform: none; }
  .home-enhanced .progress button.active::after { transform: scaleX(1); }
  .home-enhanced *, .home-enhanced *::before, .home-enhanced *::after { animation: none !important; transition: none !important; }
}

/* Keep the homepage navigation visible while the utility bar scrolls away. */
.home-enhanced{--home-topbar-height:44px;--home-nav-gap:20px;--home-nav-height:100px}
.home-enhanced .header{position:sticky;top:calc(-1 * (var(--home-topbar-height) + var(--home-nav-gap)));margin-bottom:calc(-1 * (var(--home-topbar-height) + var(--home-nav-gap) + var(--home-nav-height)));z-index:30}
.home-enhanced main section[id]{scroll-margin-top:120px}
@media(max-width:1190px){.home-enhanced{--home-nav-gap:18px;--home-nav-height:86px}.home-enhanced main section[id]{scroll-margin-top:106px}}
@media(max-width:600px){.home-enhanced{--home-topbar-height:38px;--home-nav-gap:14px;--home-nav-height:78px}.home-enhanced main section[id]{scroll-margin-top:98px}}
