/* Five distinct photographic chapters. Scoped to the home page. */
.home-sequence {
    --home-red: #db0503;
    --home-nav-height: 89px;
    --home-header-height: var(--home-nav-height);
}
body.admin-bar .home-sequence { --home-header-height: calc(var(--home-nav-height) + var(--wp-admin--admin-bar--height,32px)); }
.home-opening, .home-scene { position: relative; isolation: isolate; overflow: hidden; width: 100%; }
.home-scene { scroll-margin-top: var(--home-header-height); }
.home-sequence #inventory { scroll-margin-top: var(--home-header-height); }
.home-opening { padding-top: var(--home-header-height); background: #172b47; color: #f5f2ec; }
.home-opening__stage { position: relative; height: min(56.25vw,calc(100svh - var(--home-header-height))); min-height: min(560px,56.25vw); }
.home-opening__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-opening__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,#0d1c342e,transparent 50%),linear-gradient(0deg,#07101fc2,transparent 21%); }
.home-opening__copy { position: absolute; z-index: 1; left: 7%; right: 7%; top: clamp(30px,3.8vw,72px); text-align: center; }
.home-scene__eyebrow { margin: 0; font-family: var(--font-mono,monospace); font-size: 10px; font-weight: 400; line-height: 1.6; text-transform: uppercase; letter-spacing: .17em; }
.home-opening__copy>.home-scene__eyebrow { color: #d3dbe6; }
.home-opening h1 { margin: 13px 0 14px; font-family: var(--font-sport,'Saira Condensed',sans-serif); font-size: clamp(52px,5.1vw,94px); font-weight: 800; line-height: .94; letter-spacing: -.025em; color: #f5f2ec; text-transform: uppercase; }
.home-opening h1>span { display: block; }
.home-opening__dek { font-size: clamp(13px,1.1vw,17px); line-height: 1.6; color: #d9e0e9; margin: 0 0 20px; }
.home-scene__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.home-opening .home-scene__actions { justify-content: center; }
.home-scene__button { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 49px; padding: 12px 21px; background: var(--home-red); border: 1px solid var(--home-red); color: #fff; font-family: var(--font-sport,sans-serif); font-size: 16px; font-weight: 800; line-height: 1.25; text-transform: uppercase; letter-spacing: .065em; transition: background .2s,border-color .2s; }
.home-scene__button>span { font: 400 23px/1 var(--font-body,sans-serif); }
.home-scene__button:hover { background: #ac0403; border-color: #ac0403; color: #fff; }
.home-scene__button--ink { background: #171717; border-color: #171717; }
.home-scene__button--ink:hover { background: var(--home-red); border-color: var(--home-red); }
.home-scene__button--outline { background: #07101f45; border-color: #ffffff9e; }
.home-scene__link { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding-block: 5px; border-bottom: 1px solid currentColor; font-size: 12px; line-height: 1.5; color: inherit; }
.home-scene__link:hover { color: inherit; border-bottom-color: var(--home-red); }
.home-opening a:focus-visible,.home-scene a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.home-opening__rail { position: absolute; z-index: 1; bottom: 21px; left: max(4.5%,calc((100vw - 1440px)/2)); right: max(4.5%,calc((100vw - 1440px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-opening__experience { display: flex; align-items: center; gap: 13px; color: #f5f2ec; }
.home-opening__experience:hover { color: #fff; }
.home-opening__experience>strong { font: 600 44px/.9 var(--font-sport,sans-serif); letter-spacing: -.03em; }
.home-opening__experience>strong>span { font-size: .7em; }
.home-opening__experience>span { font-size: 10px; line-height: 1.5; }
.home-opening__scroll,.home-opening__cars { display: flex; align-items: center; gap: 18px; font: 9px/1.5 var(--font-mono,monospace); letter-spacing: .1em; text-transform: uppercase; color: #e2e4e7; }
.home-opening__scroll { min-height: 44px; }
.home-opening__scroll:hover { color: #fff; }
.home-opening__scroll>span:last-child { font: 24px/1 var(--font-body,sans-serif); }
/* 01: an icon on a paper product stage. */
.home-scene--pure { background: #f7f6f1; color: #161616; }
.home-pure__stage { position: relative; width: min(100%,1800px); margin: auto; aspect-ratio: 16/9; container-type: inline-size; }
.home-pure__top { position: absolute; top: 4cqw; left: 5%; right: 5%; display: flex; justify-content: space-between; gap: 30px; }
.home-pure__top .home-scene__eyebrow { color: #161616; }
.home-pure__top .home-scene__eyebrow>span { display: block; margin-top: 6px; color: #77756e; font-size: 9px; letter-spacing: .07em; }
.home-pure__top>p:last-child { margin: 0; font-size: clamp(13px,1.1cqw,18px); line-height: 1.65; color: #65635d; }
.home-pure__numeral { position: absolute; width: 100%; left: 0; top: 10cqw; text-align: center; font: 900 28cqw/.88 Arial,Helvetica,sans-serif; letter-spacing: -.1em; color: #deddd7; }
.home-pure__car { position: absolute; display: block; width: 79%; height: auto; left: 10.5%; top: 8.5cqw; }
.home-pure__shadow { position: absolute; width: 62%; left: 19%; top: 43.4cqw; height: 1cqw; border-radius: 50%; background: #2525251f; filter: blur(.6cqw); }
.home-pure__bottom { position: absolute; left: 5%; right: 5%; bottom: 3cqw; display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.home-pure__bottom h2 { font-family: var(--font-body,Arial,sans-serif); font-size: clamp(26px,3.1cqw,55px); line-height: 1.05; font-weight: 400; letter-spacing: -.055em; text-transform: uppercase; margin: 0; color: #161616; }
.home-pure__bottom h2>br { display: none; }
.home-pure__bottom p { margin: 10px 0 0; font-size: 11px; line-height: 1.6; color: #77756e; }
/* 02: chrome, sunlight, an American icon. */
.home-scene--americana { display: grid; grid-template-columns: 53.5% 46.5%; background: #fff; color: #101010; }
.home-americana__photo { position: relative; min-height: 650px; margin: 0; overflow: hidden; }
.home-americana__photo>img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 61%; }
.home-americana__photo>figcaption { position: absolute; left: 6%; bottom: 5%; padding: 10px 13px; background: #ffffffee; font: 9px/1.5 var(--font-mono,monospace); letter-spacing: .08em; text-transform: uppercase; color: #101010; }
.home-americana__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px,5vw,90px); }
.home-americana__copy>.home-scene__eyebrow { color: var(--home-red); }
.home-americana__copy h2 { font-family: Georgia,'Times New Roman',serif; font-size: clamp(44px,5.3vw,88px); font-weight: 700; line-height: .97; letter-spacing: -.07em; text-transform: uppercase; color: #101010; margin: 28px 0; }
.home-americana__copy h2 em { font-weight: 400; }
.home-americana__dek { font-size: clamp(14px,1.16vw,18px); line-height: 1.75; max-width: 400px; color: #62594f; margin: 0 0 30px; }
.home-americana__copy .home-scene__actions { gap: 17px; }
.home-americana__stamp { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 55px; padding-top: 22px; border-top: 1px solid #10101040; }
.home-americana__stamp>strong { font: 400 clamp(27px,2.8vw,45px)/1.1 Georgia,serif; letter-spacing: -.07em; }
.home-americana__stamp>span { font: 9px/1.7 var(--font-mono,monospace); text-transform: uppercase; letter-spacing: .035em; }
/* 03: a clean automotive magazine spread. */
.home-scene--grand { background: #fff; color: #101010; }
.home-grand__inner { width: min(91%,1640px); margin: auto; padding: clamp(42px,4.5vw,80px) 0 clamp(30px,3vw,52px); }
.home-grand__heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 32px; }
.home-grand__heading .home-scene__eyebrow { color: #6d6658; }
.home-grand__heading h2 { font: 400 clamp(44px,5.3vw,88px)/1.06 Georgia,'Times New Roman',serif; letter-spacing: -.06em; text-transform: uppercase; margin: 18px 0 0; color: #101010; }
.home-grand__heading>p { color: #6d6658; font-size: 13px; line-height: 1.75; margin: 0 0 5px; flex-shrink: 0; }
.home-grand__photos { margin: 0; aspect-ratio: 2.85/1; overflow: hidden; background: #c8bba0; }
.home-grand__photos img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 59%; }
.home-grand__footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 25px; }
.home-grand__footer>p { font: 10px/1.7 var(--font-mono,monospace); letter-spacing: .045em; text-transform: uppercase; margin: 0; color: #514d43; }
.home-grand__footer>p>span { color: #777065; }
/* 04: the invitation to a next chapter. */
.home-scene--night { min-height: 580px; aspect-ratio: 16/9; max-height: 1000px; color: #f4f4f2; background: #060d18; container-type: inline-size; }
.home-night__image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.home-night__shade { position: absolute; inset: 0; background: linear-gradient(0deg,#020609 1%,#020609d9 20%,transparent 50%),linear-gradient(180deg,#020609c2,transparent 35%); }
.home-night__top { position: absolute; left: 4.5%; right: 4.5%; top: 6%; display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.home-night__top>div>p:last-child { font-size: clamp(14px,1.15vw,19px); line-height: 1.7; color: #c9cbd0; margin: 18px 0 0; }
.home-scene--night h2 { position: absolute; left: 4%; right: 4%; bottom: 12%; font: 900 10.5cqw/.94 Arial,Helvetica,sans-serif; letter-spacing: -.075em; white-space: nowrap; color: #f4f4f2; margin: 0; }
.home-night__footer { position: absolute; left: 4.5%; right: 4.5%; bottom: 4%; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.home-night__footer>span { font: 10px/1.5 var(--font-mono,monospace); letter-spacing: .1em; text-transform: uppercase; color: #b0b7bd; }
/* Motion is a brief entrance, never a scroll lock or an infinite animation. */
@media (prefers-reduced-motion: no-preference) {
    .home-scene.is-reveal-ready .home-scene__reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease,transform 1.1s cubic-bezier(.2,.7,.2,1); }
    .home-scene.is-reveal-ready.is-visible .home-scene__reveal { opacity: 1; transform: translateY(0); }
    .home-scene.is-reveal-ready .home-scene__reveal:nth-child(3n) { transition-delay: .1s; }
    .home-scene.is-reveal-ready .home-scene__reveal:last-child { transition-delay: .16s; }
    .home-scene--pure.is-reveal-ready .home-pure__car { transform: translateX(35px); }
    .home-scene--pure.is-visible .home-pure__car { transform: translateX(0); }
    .home-scene--americana.is-reveal-ready .home-americana__photo { transform: translateX(-30px); }
    .home-scene--americana.is-visible .home-americana__photo { transform: translateX(0); }
}
@media (min-width: 768px) { .home-sequence { --home-nav-height: 97px; } }
@media (min-width: 1024px) { .home-sequence { --home-nav-height: 109px; } }
@media (min-width: 1024px) {
    .home-opening__rail { padding-right: 155px; }
    .home-night__footer { padding-right: 155px; }
    .home-pure__bottom,.home-grand__footer { padding-right: 155px; }
    .home-americana__stamp { padding-right: 155px; }
    body.is-home-opening-active .enq-dock:not(.is-open) .enq-portrait { visibility: hidden; }
}
@media (min-width: 768px) and (max-height: 800px) {
    .home-opening__stage { min-height: 500px; }
    .home-opening__copy { top: 24px; }
    .home-opening h1 { font-size: clamp(46px,4.65vw,76px); margin-block: 10px; }
    .home-opening__dek { margin-bottom: 14px; font-size: 13px; }
    .home-opening__rail { bottom: 14px; }
}
@media (max-width: 1023px) and (min-width: 768px) {
    .home-opening__copy { top: 24px; }
    .home-opening h1 { font-size: 46px; margin-block: 10px; }
    .home-opening__dek { font-size: 12px; margin-bottom: 14px; }
    .home-americana__photo { min-height: 610px; }
    .home-americana__copy { padding: 35px; }
    .home-americana__copy h2 { font-size: 45px; }
    .home-americana__stamp { margin-top: 32px; }
    .home-grand__heading>p { font-size: 11px; }
    .home-grand__heading h2 { font-size: 45px; }
    .home-pure__bottom h2 { font-size: 28px; }
    .home-pure__bottom p { max-width: 300px; }
    .home-pure__top .home-scene__eyebrow { font-size: 9px; }
}
@media (max-width: 767px) {
    .home-opening__stage { height: auto; min-height: 0; display: flex; flex-direction: column; }
    .home-opening__copy { position: relative; left: auto; right: auto; top: auto; order: 0; padding: 37px 20px 12px; }
    .home-opening h1 { font-size: clamp(32px,9.8vw,71px); line-height: .98; letter-spacing: -.02em; margin: 17px 0; }
    .home-opening__dek { font-size: 13px; max-width: 380px; margin: 0 auto 21px; }
    .home-scene__eyebrow { font-size: 9px; letter-spacing: .1em; }
    .home-opening .home-scene__actions { gap: 20px; }
    .home-scene__button { font-size: 15px; gap: 22px; min-height: 48px; padding-inline: 17px; }
    .home-opening__image { position: relative; inset: auto; order: 1; height: auto; width: 100%; margin-top: -12%; mask-image: linear-gradient(180deg,transparent,#000 35%); }
    .home-opening__copy { z-index: 2; }
    .home-opening__shade { z-index: 1; background: linear-gradient(0deg,#101e32 0%,#101e3200 25%); }
    .home-opening__rail { position: relative; inset: auto; z-index: 1; order: 2; margin: 0; padding: 15px 20px 23px; background: #101e32; gap: 15px; }
    .home-opening__cars { display: none; }
    .home-opening__experience>strong { font-size: 38px; }
    .home-opening__experience>span { font-size: 9px; }
    .home-opening__scroll { font-size: 8px; max-width: 146px; gap: 10px; }
    .home-pure__stage { aspect-ratio: auto; min-height: 540px; }
    .home-pure__top { top: 30px; left: 20px; right: 20px; gap: 20px; }
    .home-pure__top .home-scene__eyebrow>span { max-width: 200px; font-size: 8px; }
    .home-pure__top>p:last-child { font-size: 10px; max-width: 135px; }
    .home-pure__numeral { top: 120px; font-size: 39cqw; }
    .home-pure__car { top: 112px; width: 98%; left: 1%; }
    .home-pure__shadow { top: calc(112px + 43cqw); height: 5px; }
    .home-pure__bottom { position: relative; inset: auto; padding: calc(112px + 56cqw) 20px 31px; flex-direction: column; align-items: start; gap: 22px; }
    .home-pure__bottom h2 { font-size: clamp(31px,7.5vw,48px); }
    .home-pure__bottom h2>br { display: block; }
    .home-pure__bottom p { font-size: 11px; max-width: 300px; }
    .home-scene--americana { display: flex; flex-direction: column; }
    .home-americana__photo { min-height: 0; aspect-ratio: 1/1.1; }
    .home-americana__copy { padding: 34px 24px; }
    .home-americana__copy h2 { font-size: clamp(39px,10.4vw,62px); margin-block: 23px; }
    .home-americana__dek { font-size: 14px; }
    .home-americana__stamp { margin-top: 31px; padding-top: 20px; }
    .home-americana__stamp>strong { font-size: 32px; }
    .home-grand__inner { width: auto; margin: 0 20px; padding-block: 36px 31px; }
    .home-grand__heading { flex-direction: column; align-items: start; gap: 18px; margin-bottom: 24px; }
    .home-grand__heading h2 { font-size: clamp(39px,10.4vw,62px); max-width: 540px; }
    .home-grand__heading>p { font-size: 12px; }
    .home-grand__photos { aspect-ratio: 16/9; }
    .home-grand__photos img { object-fit: contain; }
    .home-grand__footer { flex-direction: column; align-items: start; gap: 20px; }
    .home-grand__footer .home-scene__actions { gap: 17px; }
    .home-grand__footer .home-scene__link { font-size: 11px; }
    .home-scene--night { aspect-ratio: auto; min-height: 620px; }
    .home-night__image { inset: auto; top: 130px; left: -30%; width: 160%; max-width: none; height: auto; object-fit: contain; mask-image: linear-gradient(180deg,transparent,#000 17%,#000 82%,transparent); }
    .home-night__top { top: 32px; left: 22px; right: 22px; flex-direction: column; gap: 24px; }
    .home-night__top>div>p:last-child { font-size: 14px; margin-top: 13px; }
    .home-scene--night h2 { white-space: normal; left: 20px; right: 20px; bottom: 108px; font-size: clamp(52px,16.5vw,118px); line-height: .85; max-width: 600px; }
    .home-night__footer { left: 22px; right: 22px; bottom: 27px; gap: 20px; }
    .home-night__footer>span { font-size: 8px; max-width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-sequence .home-scene__reveal { opacity: 1; transform: none; transition: none; }
}

@media (min-width:768px) and (max-height:680px) {
    .home-opening__copy { top:16px; }
    .home-opening h1 { font-size:clamp(42px,3.8vw,65px); margin-block:8px; }
    .home-opening__dek { margin-bottom:10px; }
}

/* Sizes adapt to the homepage columns; titles.css owns the shared face. */
body.home .home-sequence .contact-section__heading { font-size: clamp(40px,4.6vw,66px); line-height: 1; }
body.home .home-sequence .service-tile__title { font-size: clamp(23px,2.15vw,30px); line-height: 1.05; }
