/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #05070d;
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    overflow-x: hidden;
}


/* =========================================
   VARIABLES
========================================= */

:root {
    --black: #05070d;
    --dark: #080c15;
    --dark-blue: #0b1220;

    --gold: #f2c94c;
    --gold-soft: rgba(242, 201, 76, 0.25);

    --white: #ffffff;
    --muted: #9da4b2;

    --border: rgba(255, 255, 255, 0.1);
}


/* =========================================
   BACKGROUND
========================================= */

body::before {
    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    opacity: 0.12;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    z-index: -2;
}




body::after {
    content: "";

    position: fixed;

    width: 500px;
    height: 2px;

    top: 35%;
    left: -100px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(242, 201, 76, 0.25),
        transparent
    );

    transform: rotate(-25deg);

    z-index: -1;

    pointer-events: none;
}


/* =========================================
   BACK HOME
========================================= */

.back-home {
    position: fixed;

    top: 25px;
    left: 30px;

    z-index: 5000;

    padding: 10px 20px;

    color: white;

    text-decoration: none;

    font-size: 14px;

    border: 1px solid var(--gold);

    border-radius: 30px;

    background: rgba(5, 7, 13, 0.7);

    backdrop-filter: blur(10px);

    transition: 0.3s ease;
}

.back-home:hover {
    color: #05070d;

    background: var(--gold);

    transform: translateX(-3px);

    box-shadow:
        0 0 25px rgba(242, 201, 76, 0.3);
}


/* =========================================
   HERO
========================================= */

.journey-hero {
    min-height: 90vh;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 120px 30px 80px;

    position: relative;
}

.journey-hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(242, 201, 76, 0.08),
            transparent 65%
        );

    pointer-events: none;
}

.hero-content {
    max-width: 850px;

    position: relative;

    z-index: 2;
}

.eyebrow {
    color: var(--gold);

    font-size: 12px;

    letter-spacing: 4px;

    font-weight: bold;

    margin-bottom: 20px;
}

.hero-content h1 {
    margin: 0;

    font-family: Georgia, serif;

    font-size: clamp(48px, 8vw, 100px);

    line-height: 1;

    font-weight: 500;
}

.hero-description {
    max-width: 650px;

    margin: 30px auto;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================
   MIYA COMPANION
========================================= */

.companion {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    margin-top: 30px;

    padding: 14px 25px;

    text-align: left;

    border: 1px solid var(--border);

    border-radius: 50px;

    background: rgba(255,255,255,0.035);

    backdrop-filter: blur(10px);
}

.companion-bike {
    font-size: 30px;
}

.companion-label {
    display: block;

    color: var(--gold);

    font-size: 9px;

    letter-spacing: 2px;
}

.companion strong {
    display: block;

    font-family: Georgia, serif;

    font-size: 20px;
}

.companion small {
    color: var(--muted);
}


/* =========================================
   MAP SECTION
========================================= */

.map-section {
    padding: 80px 30px 120px;

    max-width: 1250px;

    margin: auto;
}

.section-heading {
    max-width: 700px;

    margin-bottom: 60px;
}

.section-heading h2 {
    font-family: Georgia, serif;

    font-size: 50px;

    font-weight: 400;

    margin: 0 0 15px;
}

.section-heading p:last-child {
    color: var(--muted);

    line-height: 1.7;
}


/* =========================================
   INTERACTIVE MAP
========================================= */

.journey-map {
    position: relative;

    height: 550px;

    border: 1px solid var(--border);

    border-radius: 25px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(242, 201, 76, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(40, 90, 130, 0.12),
            transparent 35%
        ),
        #080d16;
}




.journey-map::before {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    opacity: 0.8;
}


/* =========================================
   ROADS
========================================= */

.map-road {
    position: absolute;

    height: 3px;

    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.35) 0 15px,
            transparent 15px 30px
        );

    opacity: 0.4;

    transform-origin: left center;
}

.road-one {
    width: 55%;

    left: 10%;
    top: 65%;

    transform: rotate(-28deg);
}

.road-two {
    width: 55%;

    left: 35%;
    top: 40%;

    transform: rotate(25deg);
}

.road-three {
    width: 40%;

    left: 45%;
    top: 60%;

    transform: rotate(-45deg);
}


/* =========================================
   MAP POINTS
========================================= */

.map-point {
    position: absolute;

    border: 0;

    background: none;

    color: white;

    cursor: pointer;

    z-index: 20;
}

.point-one {
    left: 18%;
    top: 70%;
}

.point-two {
    left: 55%;
    top: 35%;
}

.point-three {
    left: 78%;
    top: 68%;
}

.point-dot {
    display: block;

    width: 22px;
    height: 22px;

    margin: auto;

    border: 3px solid var(--gold);

    border-radius: 50%;

    background: #05070d;

    box-shadow:
        0 0 0 6px rgba(242, 201, 76, 0.1),
        0 0 20px rgba(242, 201, 76, 0.4);

    transition: 0.3s ease;
}

.map-point:hover .point-dot,
.map-point.active .point-dot {
    background: var(--gold);

    transform: scale(1.3);

    box-shadow:
        0 0 0 10px rgba(242, 201, 76, 0.12),
        0 0 30px rgba(242, 201, 76, 0.7);
}

.point-number {
    display: block;

    color: var(--gold);

    font-size: 11px;

    letter-spacing: 2px;

    margin-bottom: 7px;
}

.point-label {
    display: block;

    margin-top: 10px;

    font-family: Georgia, serif;

    font-size: 17px;

    white-space: nowrap;
}


/* =========================================
   MOTORCYCLE ANIMATION
========================================= */

.moto {
    position: absolute;

    left: 17%;
    top: 64%;

    font-size: 28px;

    z-index: 30;

    filter:
        drop-shadow(
            0 5px 10px rgba(0,0,0,0.7)
        );

    transition:
        left 1s ease,
        top 1s ease,
        transform 1s ease;
}


/* =========================================
   JOURNEY CONTENT
========================================= */

.journey-content {
    max-width: 1100px;

    margin: auto;

    padding: 0 30px 120px;
}

.journey-story {
    display: none;

    animation: storyIn 0.7s ease;
}

.journey-story.active {
    display: block;
}

@keyframes storyIn {

    from {
        opacity: 0;

        transform: translateY(30px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================
   STORY HEADER
========================================= */

.story-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    padding-bottom: 35px;

    border-bottom: 1px solid var(--border);
}

.story-number {
    color: var(--gold);

    font-size: 12px;

    letter-spacing: 3px;
}

.story-header h2 {
    margin: 8px 0;

    font-family: Georgia, serif;

    font-size: clamp(40px, 6vw, 70px);

    font-weight: 400;
}

.location {
    color: var(--muted);

    margin: 0;
}

.story-date {
    color: var(--gold);

    white-space: nowrap;

    font-size: 14px;
}


/* =========================================
   INFO BOXES
========================================= */

.journey-info {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    margin: 35px 0;
}

.info-box {
    padding: 20px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background:
        rgba(255,255,255,0.025);
}

.info-box span {
    display: block;

    color: var(--muted);

    font-size: 12px;

    margin-bottom: 12px;
}

.info-box strong {
    display: block;

    font-family: Georgia, serif;

    font-size: 20px;
}

.info-box small {
    display: block;

    color: #737b8a;

    margin-top: 6px;

    line-height: 1.4;
}


/* =========================================
   STORY
========================================= */

.story-grid {
    display: grid;

    grid-template-columns:
        1.5fr 0.8fr;

    gap: 60px;

    margin-top: 60px;
}

.story-text {
    color: #c6cbd4;

    line-height: 1.9;

    font-size: 16px;
}

.story-intro {
    color: white;

    font-family: Georgia, serif;

    font-size: 25px;

    line-height: 1.6;
}

.story-text p {
    margin-bottom: 22px;
}

.story-text blockquote {
    margin: 40px 0;

    padding-left: 25px;

    border-left: 2px solid var(--gold);

    color: var(--gold);

    font-family: Georgia, serif;

    font-size: 28px;

    font-style: italic;
}


/* =========================================
   HIGHLIGHT
========================================= */

.story-highlight {
    align-self: start;

    padding: 35px;

    border: 1px solid var(--gold-soft);

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(242,201,76,0.07),
            rgba(255,255,255,0.02)
        );
}

.story-highlight span {
    color: var(--gold);

    font-size: 11px;

    letter-spacing: 3px;
}

.story-highlight h3 {
    font-family: Georgia, serif;

    font-size: 30px;

    font-weight: 400;

    line-height: 1.3;
}

.story-highlight p {
    color: var(--muted);

    line-height: 1.7;
}


/* =========================================
   MEDIA
========================================= */

.media-section {
    margin-top: 90px;

    padding-top: 60px;

    border-top: 1px solid var(--border);
}

.media-heading span {
    color: var(--gold);

    font-size: 10px;

    letter-spacing: 3px;
}

.media-heading h3 {
    font-family: Georgia, serif;

    font-size: 35px;

    font-weight: 400;

    margin-top: 10px;
}

.photo-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;

    margin-top: 30px;
}

.photo-card {
    height: 350px;

    overflow: hidden;

    border-radius: 12px;

    cursor: pointer;

    background: #080b12;
}

.photo-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.6s ease;
}

.photo-card:hover img {
    transform: scale(1.06);
}


/* =========================================
   VIDEO BUTTON
========================================= */

.video-button {
    margin-top: 25px;

    padding: 14px 25px;

    border: 1px solid var(--gold);

    border-radius: 30px;

    background: transparent;

    color: var(--gold);

    cursor: pointer;

    font-size: 14px;

    transition: 0.3s ease;
}

.video-button:hover {
    color: #05070d;

    background: var(--gold);

    box-shadow:
        0 0 25px rgba(242,201,76,0.25);
}


/* =========================================
   PHOTO LIGHTBOX
========================================= */

.photo-lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0,0,0,0.96);
}

.photo-lightbox.active {
    display: flex;
}

.photo-lightbox img {
    max-width: 95vw;

    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 0 50px rgba(0,0,0,0.9);
}

.lightbox-close,
.video-close {
    position: absolute;

    top: 20px;
    right: 30px;

    width: 50px;
    height: 50px;

    border: 0;

    background: transparent;

    color: white;

    font-size: 40px;

    cursor: pointer;

    z-index: 10;

    transition: 0.3s;
}

.lightbox-close:hover,
.video-close:hover {
    color: var(--gold);
}


/* =========================================
   VIDEO MODAL
========================================= */

.video-modal {
    position: fixed;

    inset: 0;

    z-index: 9998;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0,0,0,0.96);
}

.video-modal.active {
    display: flex;
}

.video-frame {
    width: min(1000px, 95vw);

   
    width: min(1000px, 95vw, calc((100dvh - 24px) * 16 / 9));

    aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame video {
    width: 100%;
    height: 100%;

    border: 0;

    border-radius: 10px;

    background: black;
}

.video-frame [hidden] {
    display: none;
}



@media (max-width: 800px) {

    .video-modal {
        padding: 12px;
    }

    .video-close {
        top: max(8px, env(safe-area-inset-top));
        right: 8px;

        width: 48px;
        height: 48px;

        font-size: 36px;

        background: rgba(0,0,0,0.5);
        border-radius: 50%;
    }

    .video-frame {
        margin-top: 40px;
    }

}

@media (max-width: 800px) and (orientation: landscape) {

    .video-frame {
        margin-top: 0;
    }

}


/* =========================================
   ENDING
========================================= */

.journey-ending {
    max-width: 850px;

    margin: auto;

    padding: 100px 30px 150px;

    text-align: center;
}

.journey-ending span {
    color: var(--gold);

    font-size: 11px;

    letter-spacing: 4px;
}

.journey-ending h2 {
    margin: 20px 0;

    font-family: Georgia, serif;

    font-size: clamp(40px, 7vw, 75px);

    font-weight: 400;

    line-height: 1.1;
}

.journey-ending p {
    color: var(--muted);

    line-height: 1.8;
}

.journey-ending strong {
    display: block;

    margin-top: 25px;

    color: var(--gold);

    font-family: Georgia, serif;

    font-size: 20px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {

    .back-home {
        top: 15px;
        left: 15px;

        padding: 8px 15px;

        font-size: 12px;
    }


    .journey-hero {
        min-height: 80vh;

        padding: 100px 20px 60px;
    }


    .journey-map {
        height: 450px;
    }


    .point-label {
        font-size: 13px;
    }


    .journey-info {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .story-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .story-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .story-date {
        white-space: normal;
    }


    .photo-grid {
        grid-template-columns: 1fr;
    }


    .photo-card {
        height: 280px;
    }

}


@media (max-width: 500px) {

    .journey-info {
        grid-template-columns: 1fr;
    }


    .journey-map {
        height: 400px;
    }


    .point-one {
        left: 10%;
    }


    .point-two {
        left: 45%;
    }


    .point-three {
        left: 70%;
    }


    .point-label {
        font-size: 11px;
    }


    .moto {
        font-size: 22px;
    }

}
