:root {
    --bg: #eee9df;
    --bg-soft: #ded8cc;
    --card: #f8f5ee;
    --dark: #111412;
    --dark-soft: #191c19;
    --text: #151714;
    --muted: #696b65;
    --white: #f5f2e9;
    --red: #df2028;
    --red-dark: #b8161d;
    --sand: #a99067;
    --border: rgba(21, 23, 20, .13);
    --shadow: 0 30px 80px rgba(15, 17, 15, .16);
}

body:not(.light-theme) {
    --bg: #101311;
    --bg-soft: #181b18;
    --card: #202420;
    --text: #f0ede5;
    --muted: #a1a49e;
    --border: rgba(255, 255, 255, .1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background .4s ease, color .4s ease;
}

body,
button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    display: block;
    width: 100%;
}

#theme-tint {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: var(--tint-color, transparent);
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity .6s ease, background-color .6s ease;
}

#theme-tint.active {
    opacity: .2;
}

section {
    position: relative;
    padding: 120px 7%;
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0f0e;
    color: #f2eee5;
    transition: opacity .5s ease, visibility .5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    width: min(350px, 80%);
    text-align: center;
}

.loader-content span {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .4em;
}

.loader-content strong {
    display: block;
    margin: 3px 0 22px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
}

.loader-line {
    height: 3px;
    overflow: hidden;
    background: #30332f;
}

.loader-line i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--red);
}

.loader-content small {
    display: block;
    margin-top: 13px;
    color: #81847e;
    font-size: .65rem;
    letter-spacing: .17em;
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 5%;
    background: rgba(10, 12, 11, .38);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    transition: padding .35s ease, background .35s ease;
}

.navbar.is-scrolled {
    padding: 13px 5%;
    background: rgba(10, 12, 11, .92);
}

.logo {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: .03em;
    white-space: nowrap;
    color: #fff;
}

.logo span {
    color: var(--red);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    position: relative;
    color: #d9dad5;
    font-family: "Barlow Condensed", sans-serif;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: .25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: .25s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle,
.menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    cursor: pointer;
    transition: .25s ease;
}

.theme-toggle {
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.theme-toggle:hover {
    border-color: var(--red);
    transform: rotate(15deg);
}

.nav-cta,
.btn-primary,
.btn-outline {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 25px;
    border: 1px solid var(--red);
    font-family: "Barlow Condensed", sans-serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: .3s ease;
}

.nav-cta,
.btn-primary {
    background: var(--red);
    color: #fff;
}

.nav-cta:hover,
.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(223, 32, 40, .25);
}

.btn-outline {
    border-color: rgba(255, 255, 255, .42);
    background: rgba(0, 0, 0, .15);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--red);
    background: var(--red);
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    border-radius: 7px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #101211;
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 9, 8, .95) 0%, rgba(7, 9, 8, .72) 37%, rgba(7, 9, 8, .18) 78%),
        linear-gradient(0deg, rgba(7, 9, 8, .7), transparent 50%),
        url("../assets/images/6abe5a67e4b7ffbcfe521c102bffe409.jpg") center/cover no-repeat;
    animation: heroZoom 12s ease-out forwards;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 42%, rgba(223, 32, 40, .16), transparent 27%);
}

.hero-content {
    position: relative;
    z-index: 4;
    width: min(750px, 90%);
    margin-left: 7%;
    padding-top: 70px;
    animation: heroEnter 1s ease .2s both;
}

.hero-badge,
.section-label {
    display: inline-block;
    color: var(--red);
    font-family: "Barlow Condensed", sans-serif;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .25em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 18px 0 24px;
    color: #f5f2e9;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(4.5rem, 9vw, 9rem);
    font-weight: 900;
    line-height: .78;
    letter-spacing: -.035em;
}

.hero-content h1 span,
.section-heading h2 span,
.rally-content h2 span,
.final-content h2 span,
.story-copy h2 span,
.gallery-heading h2 span {
    color: var(--red);
}

.hero-content p {
    max-width: 510px;
    margin-bottom: 32px;
    color: #d1d2cd;
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-meta {
    position: absolute;
    right: 7%;
    bottom: 38px;
    z-index: 3;
    display: flex;
    gap: 25px;
    color: rgba(255, 255, 255, .55);
    font-family: "Barlow Condensed", sans-serif;
    font-size: .7rem;
    letter-spacing: .18em;
}

.hero-scroll {
    position: absolute;
    left: 7%;
    bottom: 35px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a7aaa4;
    font-family: "Barlow Condensed", sans-serif;
    font-size: .72rem;
    letter-spacing: .18em;
}

.hero-scroll i {
    color: var(--red);
    animation: scrollBounce 1.5s infinite;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 11px 0 16px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(3.4rem, 6vw, 6rem);
    font-weight: 900;
    line-height: .82;
    letter-spacing: -.025em;
}

.section-heading p {
    max-width: 570px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.section-heading.centered p {
    margin-inline: auto;
}

.models-section {
    background: var(--bg);
}

.model-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
}

.tab-btn,
.terrain-btn,
.option {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
    transition: .3s ease;
}

.tab-btn {
    padding: 14px 24px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    letter-spacing: .08em;
}

.tab-btn:hover,
.tab-btn.active,
.terrain-btn:hover,
.terrain-btn.active,
.option:hover,
.option.active {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
    transform: translateY(-2px);
}

.bike-display {
    display: grid;
    grid-template-columns: 1.55fr .75fr;
    gap: 55px;
    align-items: center;
}

.bike-image-container {
    position: relative;
    min-height: 510px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.bike-image-container::before {
    content: "XPULSE";
    position: absolute;
    right: -25px;
    bottom: -35px;
    color: rgba(128, 128, 128, .07);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 10rem;
    font-weight: 900;
}

.bike-image-container img {
    position: relative;
    z-index: 1;
    max-height: 500px;
    object-fit: contain;
    transition: transform .7s ease, opacity .35s ease;
}

.bike-image-container:hover img {
    transform: scale(1.055);
}

.image-number {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 2;
    color: var(--muted);
    font-family: "Barlow Condensed", sans-serif;
    font-size: .75rem;
    letter-spacing: .15em;
}

.bike-details {
    animation: fadeUp .45s ease;
}

.bike-category {
    color: var(--red);
    font-family: "Barlow Condensed", sans-serif;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .2em;
}

.bike-details h3 {
    margin: 8px 0 4px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    line-height: .85;
}

.tagline {
    color: var(--muted);
    font-size: 1rem;
}

.bike-line {
    width: 70px;
    height: 2px;
    margin: 24px 0;
    background: var(--red);
}

.price {
    margin-bottom: 28px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.color-picker h4 {
    margin-bottom: 15px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: .8rem;
    letter-spacing: .15em;
}

.color-options {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.color-dot-wrap {
    position: relative;
}

.color-dot {
    width: 28px;
    height: 28px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: .25s ease;
}

.color-dot:hover {
    transform: scale(1.15);
}

.color-dot.active {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--bg);
}

.color-preview {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    width: 90px;
    height: 75px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px) scale(.9);
    transition: .25s ease;
    pointer-events: none;
}

.color-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-dot-wrap:hover .color-preview,
.color-dot-wrap:focus-within .color-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.full-width {
    width: 100%;
}

.specs-section {
    min-height: 650px;
    overflow: hidden;
    background: var(--dark);
    color: #f1eee5;
}

.spec-background {
    position: absolute;
    inset: 0;
    opacity: .16;
    background:
        linear-gradient(90deg, #101311 10%, transparent),
        url("../assets/images/333d1c395fc704a2d4cf3a27124e4a6c.jpg") center/cover no-repeat;
}

.specs-section>*:not(.spec-background) {
    position: relative;
    z-index: 1;
}

.specs-section .section-heading p {
    color: #a1a49f;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.spec-card {
    position: relative;
    min-height: 250px;
    padding: 38px 25px;
    overflow: hidden;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
    transition: .35s ease;
}

.spec-card:hover {
    transform: translateY(-8px);
    border-color: var(--red);
    background: rgba(255, 255, 255, .08);
}

.spec-number {
    position: absolute;
    top: 17px;
    left: 20px;
    color: rgba(255, 255, 255, .25);
    font-family: "Barlow Condensed", sans-serif;
    font-size: .7rem;
    letter-spacing: .15em;
}

.spec-card i {
    margin: 25px 0 20px;
    color: var(--red);
    font-size: 1.5rem;
}

.spec-card strong {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.7rem;
    font-weight: 800;
}

.spec-card p {
    margin-top: 7px;
    color: #8f938d;
    font-family: "Barlow Condensed", sans-serif;
    font-size: .8rem;
    letter-spacing: .13em;
}

.terrain-section {
    overflow: hidden;
    background: var(--bg-soft);
}

.terrain-parallax {
    position: absolute;
    inset: -12% -5%;
    background:
        linear-gradient(rgba(222, 216, 204, .84), rgba(222, 216, 204, .84)),
        url("../assets/images/1524d159b489db4a189a54da350b43bc.jpg") center/cover no-repeat;
    opacity: .18;
    transform: translateY(0);
    will-change: transform;
}

.terrain-section>*:not(.terrain-parallax) {
    position: relative;
    z-index: 1;
}

.terrain-switch {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.terrain-btn {
    min-width: 140px;
    padding: 14px 23px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.terrain-display {
    position: relative;
    min-height: 530px;
    display: flex;
    align-items: flex-end;
    padding: 55px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .1);
    box-shadow: var(--shadow);
}

.terrain-image {
    position: absolute;
    inset: 0;
    background:
        url("../assets/images/1524d159b489db4a189a54da350b43bc.jpg") center/cover no-repeat;
    transition: background-image .5s ease, transform .8s ease;
}

.terrain-display:hover .terrain-image {
    transform: scale(1.035);
}

.terrain-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 9, 8, .87), rgba(7, 9, 8, .28), rgba(7, 9, 8, .08));
}

.terrain-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #fff;
}

.terrain-content span {
    color: var(--red);
    font-family: "Barlow Condensed", sans-serif;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .2em;
}

.terrain-content h3 {
    margin: 12px 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(3.2rem, 6vw, 6rem);
    font-weight: 900;
    line-height: .8;
}

.terrain-content p {
    max-width: 500px;
    color: #d5d6d1;
    font-size: 1rem;
    line-height: 1.65;
}

.terrain-number {
    position: absolute;
    right: 40px;
    top: 30px;
    z-index: 2;
    color: rgba(255, 255, 255, .4);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 5rem;
    font-weight: 900;
}

.image-story {
    background: var(--bg);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.05fr .8fr 1.05fr;
    gap: 25px;
    align-items: center;
}

.story-image {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.story-image img {
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-image span {
    position: absolute;
    left: 25px;
    bottom: 22px;
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.story-two {
    height: 460px;
}

.story-copy {
    padding: 20px;
}

.story-copy h2 {
    margin: 15px 0 22px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    line-height: .82;
}

.story-copy p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.rally-section {
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.rally-background {
    position: absolute;
    inset: -10% -5%;
    background:
        url("../assets/images/936f8ea045dea058e8489f263606972d.jpg") center/cover no-repeat;
    will-change: transform;
}

.rally-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 8, 7, .94), rgba(6, 8, 7, .52), rgba(6, 8, 7, .12)),
        linear-gradient(0deg, rgba(6, 8, 7, .55), transparent 55%);
}

.rally-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.rally-content h2 {
    margin: 13px 0 20px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 900;
    line-height: .78;
}

.rally-content p {
    max-width: 530px;
    margin-bottom: 30px;
    color: #c9cbc5;
    font-size: 1.05rem;
    line-height: 1.75;
}

.rally-caption {
    position: absolute;
    right: 7%;
    bottom: 35px;
    color: rgba(255, 255, 255, .5);
    font-family: "Barlow Condensed", sans-serif;
    font-size: .75rem;
    letter-spacing: .2em;
}

.gallery-section {
    background: var(--bg-soft);
}

.gallery-heading {
    margin-bottom: 60px;
}

.gallery-heading h2 {
    margin-top: 15px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(4rem, 7vw, 7rem);
    font-weight: 900;
    line-height: .76;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    grid-template-rows: 300px 300px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: 1 / -1;
    display: block;
}

.configurator-section {
    background: var(--bg);
}

.configurator {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 45px;
}

.config-preview {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.config-preview::after {
    content: "XPULSE";
    position: absolute;
    right: -20px;
    bottom: -30px;
    color: rgba(120, 120, 120, .07);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 10rem;
    font-weight: 900;
}

.config-preview img {
    position: relative;
    z-index: 1;
    max-height: 470px;
    object-fit: contain;
    transition: transform .7s ease;
}

.config-preview:hover img {
    transform: scale(1.04);
}

.preview-label {
    position: absolute;
    left: 25px;
    top: 22px;
    z-index: 2;
    color: var(--muted);
    font-family: "Barlow Condensed", sans-serif;
    font-size: .75rem;
    letter-spacing: .15em;
}

.config-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.config-step {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.config-label {
    display: block;
    margin-bottom: 14px;
    color: var(--red);
    font-family: "Barlow Condensed", sans-serif;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option {
    padding: 12px 17px;
    font-size: .85rem;
}

.config-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--border);
}

.config-summary>span {
    color: var(--muted);
    font-family: "Barlow Condensed", sans-serif;
    font-size: .8rem;
    letter-spacing: .15em;
}

.config-summary strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
}

.config-summary small {
    margin-bottom: 15px;
    color: var(--muted);
}

.final-cta {
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.final-background {
    position: absolute;
    inset: -10% -5%;
    background:
        url("../assets/images/712bc469a96d486574358dc45c0232a8.jpg") center/cover no-repeat;
    will-change: transform;
}

.final-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 8, .78);
}

.final-content {
    position: relative;
    z-index: 2;
}

.final-content h2 {
    margin: 15px 0 20px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    line-height: .78;
}

.final-content p {
    margin-bottom: 28px;
    color: #c8cac5;
}

.footer {
    padding: 55px 7% 30px;
    background: #0b0d0c;
    color: #858983;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
}

.footer-brand strong {
    color: #f0eee7;
}

.footer-brand span {
    color: var(--red);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a {
    font-family: "Barlow Condensed", sans-serif;
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: .25s ease;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 25px;
    font-size: .75rem;
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroZoom {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1);
    }
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}

@media (max-width: 1000px) {

    .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 5%;
        background: rgba(10, 12, 11, .98);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 14px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .bike-display,
    .configurator {
        grid-template-columns: 1fr;
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-grid {
        grid-template-columns: 1fr 1fr;
    }

    .story-copy {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 20px 0 45px;
    }

    .story-image {
        height: 500px;
    }
}

@media (max-width: 600px) {

    section {
        padding: 85px 5%;
    }

    .navbar {
        padding: 16px 5%;
    }

    .navbar.is-scrolled {
        padding: 12px 5%;
    }

    .logo {
        font-size: 1.25rem;
    }

    .hero-content {
        margin-left: 5%;
        padding-top: 70px;
    }

    .hero-content h1 {
        font-size: clamp(4.1rem, 17vw, 6rem);
    }

    .hero-content p {
        font-size: .92rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
    }

    .hero-scroll,
    .hero-meta {
        display: none;
    }

    .section-heading h2 {
        font-size: 3.6rem;
    }

    .model-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .bike-image-container {
        min-height: 300px;
    }

    .bike-details h3 {
        font-size: 3.4rem;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .terrain-switch {
        width: 100%;
    }

    .terrain-btn {
        flex: 1;
        min-width: 0;
    }

    .terrain-display {
        min-height: 430px;
        padding: 30px;
    }

    .terrain-content h3 {
        font-size: 3.4rem;
    }

    .terrain-number {
        right: 20px;
        top: 20px;
        font-size: 3rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-copy {
        grid-column: auto;
        grid-row: auto;
    }

    .story-image,
    .story-two {
        height: 420px;
    }

    .rally-section {
        min-height: 560px;
    }

    .rally-content h2,
    .final-content h2 {
        font-size: 4.2rem;
    }

    .gallery-heading h2 {
        font-size: 4.2rem;
    }

    .gallery-grid {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .gallery-item,
    .gallery-item.large {
        height: 330px;
    }

    .config-preview {
        min-height: 310px;
    }

    .option-group {
        flex-direction: column;
    }

    .option {
        width: 100%;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   ANIMATIONS, MARQUEE, HOTSPOTS & LIGHTBOX ENHANCEMENTS
   ========================================================================== */

/* Zoom In & Pop In Animations */
.pop-in {
    opacity: 0;
    transform: scale(0.86) translateY(24px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.pop-in.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Automatic Image Scrolling Marquee Section */
.marquee-section {
    padding: 100px 0;
    background: #0d0f0e;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation: scrollMarquee 38s linear infinite;
    will-change: transform;
}

.marquee-track.reverse {
    animation-direction: reverse;
    animation-duration: 44s;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-card {
    position: relative;
    width: 340px;
    height: 230px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.marquee-card:hover {
    transform: translateY(-8px) scale(1.04);
    border-color: var(--red);
    box-shadow: 0 20px 45px rgba(223, 32, 40, 0.35);
}

.marquee-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-card:hover img {
    transform: scale(1.12);
}

.marquee-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 9, 8, 0.9) 0%, transparent 65%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.marquee-card:hover .marquee-overlay {
    opacity: 1;
}

.marquee-overlay span {
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.marquee-overlay span i {
    color: var(--red);
    font-size: 0.9rem;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Bike Feature Hotspots */
.bike-hotspot {
    position: absolute;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(223, 32, 40, 0.35);
    border: 2px solid var(--red);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.bike-hotspot::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1.5px solid var(--red);
    animation: hotspotPulse 2s infinite ease-in-out;
}

.bike-hotspot span.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px var(--red);
}

.bike-hotspot-card {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(0.88);
    width: 230px;
    padding: 16px 18px;
    background: rgba(16, 19, 17, 0.95);
    border: 1px solid rgba(223, 32, 40, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    pointer-events: none;
    z-index: 20;
    text-align: left;
}

.bike-hotspot-card h5 {
    color: var(--red);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bike-hotspot-card p {
    color: #d1d4cc;
    font-size: 0.82rem;
    line-height: 1.4;
}

.bike-hotspot:hover .bike-hotspot-card,
.bike-hotspot.active .bike-hotspot-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

@keyframes hotspotPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.45);
        opacity: 0.25;
    }

    100% {
        transform: scale(0.85);
        opacity: 0.9;
    }
}

/* Fullscreen Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(6, 8, 7, 0.94);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    padding: 40px 20px;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
    margin-top: 18px;
    color: #f5f2e9;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.6rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--red);
    border-color: var(--red);
    transform: rotate(90deg) scale(1.1);
}

/* Gallery & Story Cards Lightbox Indicators */
.gallery-item,
.story-image {
    cursor: pointer;
}

.gallery-item::after,
.story-image::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-item:hover::after,
.story-image:hover::after {
    opacity: 1;
    transform: scale(1);
}