:root {
    --white: #fff;
    --black: #000;
    --blue: #0066b1;
    --blueDark: #0653b6;
}

@font-face {
    font-family: "BMWTypeNext";
    src: url("BMWTypeNextLatin-Thin.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "BMWTypeNext";
    src: url("BMWTypeNextLatin-Light.woff2") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "BMWTypeNext";
    src: url("BMWTypeNextLatin-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "BMWTypeNext";
    src: url("BMWTypeNextLatin-Bold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: block;
}

.thin {
    font-weight: 200;
}

.light {
    font-weight: 300;
}

.bold {
    font-weight: 600;
}

html, body {
    margin: 0;
    padding: 0;
}

.long {
    background-color: #fff;
}

.port .long {
    background-position: 53% 50%;
}

html {font-size: clamp(0vh, 1vw, calc(2vh / 3));}
html.land-short {font-size: clamp(0vh, 1vw, 2vh);}
html.port {font-size: clamp(0vh, 2vw, calc(1vh / 3));}
html.port-short {font-size: clamp(0vh, 2vw, 1vh);}

.port .banner {
    font-size: 1.2em;
}

.port .br-l { display: none; }
.land .br-p { display: none; }

.banner {
    font-family: 'BMWTypeNext', sans-serif;
    font-weight: 400;
    color: var(--black);
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    font-feature-settings: "kern";
}

.banner, .banner *, .banner:after, .banner:before {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

.bg {
    position: absolute;
    left: 0;
    width: 100%;
    height: calc(100% / 3);
}

.bg-top {
    top: 0;
}

.bg-middle {
    top: calc(100% / 3);
    background-color: var(--greenDark);
}

.bg-bottom {
    top: calc(100% / 3 * 2);
}

.bg-frame {
    width: 100%;
    height: 100%;
}

.banner {
    display: grid;
    padding: 4em;
    position: absolute;
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.port .banner {
    padding: 4em 3em 5em 3em;
}

.content {
    display: grid;
    grid-area: 1 / 1 / 2 / 2;

    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    position: absolute;
    inset: 0;
}

.logo-wrap {
    position: absolute;
    align-self: start;
    justify-self: end;
}

.logo {
    width: 10em;
    height: auto;
    position: relative;
}

.port .logo {
    width: 8.5em;
}

.logo-new {
    position: absolute;
    top: 0;
    left: 0;
}

.animate .logo {
    transition: all .33s ease;
}

.logo-new {
    opacity: 0;
}

.show-2 .logo-old,
.show-2b .logo-old,
.show-3 .logo-old {
    opacity: 0;
    transition-delay: .15s;
}

.show-2 .logo-new,
.show-2b .logo-new,
.show-3 .logo-new {
    opacity: 1;
    transition-delay: .15s;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(../assets/bg-gradient.avif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    bottom: 0;
    height: calc(100vh / 3 * 2.4);
}

.bg-texture {
    position: absolute;
    width: 100%;
    background-image: url(../assets/bg.avif);
    background-size: cover;
    background-position: 50% 100%;
    height: 44%;
}

.port .bg-texture {
    height: 39%;
}

.copy-wrap {
    margin-top: 3.5em;
    margin-left: 1.5em;
    position: relative;
}

.port .copy-wrap {
    margin-top: 13.5em;
    margin-left: .7em;
}

.hero {
    font-size: 3.5em;
    text-transform: uppercase;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -.01em;
}

.hero-1 {
    font-size: 3.6em;
}

.he {
    font-size: 84%;
}

.hero-2 {
    color: var(--white);
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1.25;
    opacity: 0;
    text-shadow: .2em .2em .6em rgba(0, 0, 0, .2);
}

.port .hero-1,
.port .hero-2 {
    margin-top: 1.5em;
}

.port .hero-1 {
    margin-top: 2em;
}

.hero-3 {
    color: var(--white);
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1.25;
    font-size: 4.5em;
    opacity: 0;
}

.port .hero-3 {
    font-size: 4.1em;
}

.byline {
    font-size: 56%;
    text-transform: none;
    margin-top: .5em;
    letter-spacing: -.014em;
}

.port .byline {
    padding: .2em 0;
}

.btn {
    font-weight: 400;
    font-size: 28%;
    display: inline-block;
    position: relative;
    margin-top: 2em;
    margin-left: .3em;
    color: var(--white);
    text-transform: none;
    letter-spacing: normal;
    border: .12em solid var(--white);    
    padding: .7em 1.7em;
}

.port .btn {
    font-size: 32%;
    margin-top: 1.8em;
}

.btn:hover, .btn:focus {
    transition: all .1s linear;
    background-color: var(--white);
    color: var(--black);
}

.byline,
.btn-wrap {
    opacity: 0;
    transform: translateY(.5em);
}

.animate .byline,
.animate .btn-wrap {
    transition: all .5s ease;
}

.show-3 .byline,
.show-4 .byline {
    opacity: 1;
    transition-delay: .25s;
    transform: translateY(0em);
}

.show-3 .btn-wrap,
.show-4 .btn-wrap {
    opacity: 1;
    transition-delay: .35s;
    transform: translateY(0em);
}

.animate .hero {
    transition: all .4s ease;
}

.show-2 .hero-1,
.show-2b .hero-1,
.show-3 .hero-1,
.show-4 .hero-1 {
    opacity: 0;
}

.show-2 .hero-2 {
    opacity: 1;
    transition-delay: .15s;
}

.show-3 .hero-3,
.show-3 .hero-4 {
    opacity: 1;
    transition-delay: .15s;
}

.call {
    font-size: 200%;
    position: relative;
    font-weight: 600;
    line-height: 1.1;
}

.port .call {
    font-size: 180%;
}

.ls {
    letter-spacing: -.06em;
}

.call-2 {
    transform: translateX(1em);
}

.animate .call {
    transition: all .4s ease;
}

.show-2 .call-1 {
    transform: translateX(-1em);
}

.show-2 .call-2,
.show-2b .call-2,
.show-3 .call-2,
.show-4 .call-2 {
    transform: translateX(0em);
}

.call-2 {
    left: -.06em;
}

/**/

.car-wrap {
    width: 75em;
    height: auto;
    position: absolute;
    align-self: center;
    justify-self: center;
    margin-top: 10em;
    margin-left: 10em;
}

.cw-2 {
    translate: 120% 0;
}

.port .car-wrap {
    width: 47.5em;
    margin: 0;
    margin-top: 22em;
}

.animate .car-wrap {
    transition: all 1.1s ease;
    will-change: transform, translate;
}

/**/

.cw-1 {
    translate: 120% 0;
}

.show-1 .cw-1,
.show-1b .cw-1 {
    translate: 0% 0%;
}

/**/

.show-2 .cw-1,
.show-2b .cw-1,
.show-3 .cw-1,
.show-4 .cw-1 {
    translate: 6% 0;
    translate: -120% 0;
}

.show-2 .cw-2,
.show-2b .cw-2,
.show-3 .cw-2,
.show-4 .cw-2 {
    translate: 6% 0;
}

.port .show-2 .cw-2,
.port .show-2b .cw-2,
.port .show-3 .cw-2,
.port .show-4 .cw-2 {
    translate: 1.5% 0;
}

.car {
    width: 100%;
    height: auto;
}

.car-2,
.car-3 {
    position: absolute;
    top: 0;
    left: 0;
}

.wheel {
    position: absolute;
    width: 11.8%;
    height: auto;
    left: 15.8%;
    bottom: 15.6%;
    transform-origin: center;
    transform: rotate(0deg);
    transition: all 1.1s ease;
    will-change: transform;
}

.wheel-back {
    left: 67.3%;
}

.w-2 {
    width: 13.3%;
    height: auto;
    left: 14.7%;
    bottom: 15.3%;

    width: 13.6%;
    height: auto;
    left: 14.85%;
    bottom: 15.1%;
}

.w-2.wheel-back {
    left: 69.5%;
}

.show-2 .wheel,
.show-2b .wheel,
.show-3 .wheel,
.show-4 .wheel {
    transform: rotate(-900deg);
}

/**/

.show-1 .cw-1 .wheel,
.show-1b .cw-1 .wheel {
    transform: rotate(-900deg);
}

.show-2 .cw-1 .wheel,
.show-2b .cw-1 .wheel,
.show-3 .cw-1 .wheel,
.show-4 .cw-1 .wheel {
    transform: rotate(-1800deg);
}

.wheel,
.car-wrap {
    will-change: transform;
}