/* Journal page */
.journal-page {
    background:
        radial-gradient(circle at 85% 8%, rgba(66, 225, 227, 0.12), transparent 28rem),
        linear-gradient(rgba(66, 225, 227, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 225, 227, 0.025) 1px, transparent 1px),
        #050b11;
    background-size: auto, 42px 42px, 42px 42px, auto;
    min-height: 100vh;
}

.journal-container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 26px;
}

.journal-hero {
    position: relative;
    padding: 110px 0 70px;
    border-bottom: 1px solid rgba(82, 224, 226, 0.22);
}

.journal-hero::after {
    content: "D/10";
    position: absolute;
    right: max(2rem, calc((100vw - 1160px) / 2));
    bottom: -1.5rem;
    color: rgba(66, 225, 227, 0.045);
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: clamp(7rem, 20vw, 17rem);
    line-height: 0.7;
    pointer-events: none;
}

.journal-overline,
.journal-entry-number {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    color: #42e1e3;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.journal-overline::before,
.journal-entry-number::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #42e1e3;
    box-shadow: 0 0 18px #42e1e3;
}

.journal-hero h1,
.journal-entry h2,
.journal-section-title {
    margin: 0;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 900;
    letter-spacing: 0.015em;
    line-height: 0.98;
    text-transform: uppercase;
}

.journal-hero h1 {
    max-width: 950px;
    margin: 25px 0;
    font-size: clamp(55px, 8vw, 100px);
    line-height: 0.87;
    letter-spacing: 1px;
    color: #f4f8fa;
}

.journal-accent {
    color: #42e1e3;
}

.journal-hero-copy {
    max-width: 560px;
    margin: 1.6rem 0 0;
    color: #a8b4bc;
    font-size: 18px;
    line-height: 1.8;
}

.journal-jump {
    display: inline-flex;
    margin-top: 2rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(82, 224, 226, 0.22);
    color: #9ef5f6;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.journal-jump:hover {
    border-color: #42e1e3;
    background: rgba(66, 225, 227, 0.08);
    transform: translateY(-2px);
}

.journal-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: -1px;
    border: 1px solid rgba(82, 224, 226, 0.22);
    background: rgba(82, 224, 226, 0.22);
}

.journal-stat {
    padding: 1.3rem;
    background: #09131b;
}

.journal-stat strong {
    display: block;
    color: #42e1e3;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.05em;
}

.journal-stat span {
    color: #a8b4bc;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journal-slider-section {
    padding-top: 4rem;
}

.journal-slider-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.journal-slider-title {
    margin: 0;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: clamp(38px, 5vw, 60px);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.journal-slider-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.slider-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(82, 224, 226, 0.22);
    background: rgba(9, 19, 27, 0.9);
    color: #f4f8fa;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .2s ease;
}

.slider-arrow:hover {
    border-color: #42e1e3;
    color: #42e1e3;
}

.journal-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(82, 224, 226, 0.22);
    background: linear-gradient(180deg, rgba(9, 19, 27, 0.8), rgba(8, 14, 18, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.slider-viewport {
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.journal-slide {
    flex: 0 0 100%;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(135deg, rgba(17, 29, 35, 0.98), rgba(8, 15, 20, 0.96));
}

.journal-slide-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: center;
}

.journal-slide-copy {
    color: #a8b4bc;
}

.journal-slide-copy p {
    margin: 0;
    line-height: 1.8;
}

.slide-tag {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: #42e1e3;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.journal-slide h3 {
    margin: 0 0 0.85rem;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    text-transform: uppercase;
    color: #f4f8fa;
}

.slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slide-meta span {
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(123, 92, 255, 0.45);
    color: #c8bcff;
    background: rgba(123, 92, 255, 0.08);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.slide-visual {
    min-height: 220px;
    border: 1px solid rgba(82, 224, 226, 0.22);
    background: #0b171d;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.slide-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1rem;
}

.slider-dot {
    width: 11px;
    height: 11px;
    border: 1px solid rgba(66, 225, 227, 0.7);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease;
}

.slider-dot.is-active {
    background: #42e1e3;
    box-shadow: 0 0 12px rgba(66, 225, 227, 0.8);
}

.journal-stream {
    position: relative;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.journal-stream::before {
    content: "";
    position: absolute;
    top: 5rem;
    bottom: 5rem;
    left: max(1rem, calc((100vw - 1160px) / 2 + 1rem));
    width: 1px;
    background: linear-gradient(#42e1e3, rgba(66, 225, 227, 0.08));
}

.journal-entry {
    position: relative;
    margin-bottom: clamp(5rem, 10vw, 9rem);
    padding-left: clamp(2rem, 5vw, 4.5rem);
}

.journal-entry:last-child {
    margin-bottom: 0;
}

.journal-entry::before {
    content: "";
    position: absolute;
    top: 0.1rem;
    left: 0.7rem;
    width: 0.65rem;
    height: 0.65rem;
    border: 2px solid #050b11;
    border-radius: 50%;
    background: #42e1e3;
    box-shadow: 0 0 0 1px #42e1e3, 0 0 22px rgba(66, 225, 227, 0.75);
}

.journal-entry-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: clamp(1.5rem, 5vw, 4.5rem);
    align-items: end;
    margin-bottom: 1.8rem;
}

.journal-entry h2 {
    max-width: 700px;
    font-size: clamp(38px, 5vw, 60px);
    color: #f4f8fa;
}

.journal-entry-copy {
    color: #a8b4bc;
}

.journal-entry-copy p {
    margin: 0 0 1rem;
}

.journal-entry-copy p:last-child {
    margin-bottom: 0;
}

.journal-lesson {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-left: 3px solid #42e1e3;
    background: rgba(66, 225, 227, 0.055);
    color: #f4f8fa;
}

.journal-lesson strong {
    color: #9ef5f6;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.journal-photo {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(82, 224, 226, 0.22);
    background: #09131b;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.journal-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.journal-photo:hover img {
    transform: scale(1.018);
}

.journal-photo figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2.5rem 1rem 0.85rem;
    background: linear-gradient(transparent, rgba(3, 9, 13, .94));
    color: #d9e4e9;
    font-size: 0.82rem;
}

.journal-photo--hero {
    aspect-ratio: 16 / 8;
}

.journal-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.9rem;
}

.journal-gallery .journal-photo {
    grid-column: span 6;
    aspect-ratio: 4 / 3;
}

.journal-gallery .journal-photo.wide {
    grid-column: span 8;
}

.journal-gallery .journal-photo.narrow {
    grid-column: span 4;
}

.journal-gallery .journal-photo.portrait {
    aspect-ratio: 3 / 4;
}

.journal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

.journal-tag {
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(123, 92, 255, 0.45);
    color: #c8bcff;
    background: rgba(123, 92, 255, 0.08);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.journal-next {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    border-top: 1px solid rgba(82, 224, 226, 0.22);
    text-align: center;
    background: linear-gradient(rgba(66, 225, 227, 0.05), transparent);
}

.journal-section-title {
    font-size: clamp(38px, 5vw, 60px);
    color: #f4f8fa;
}

.journal-next p {
    max-width: 720px;
    margin: 1rem auto 0;
    color: #a8b4bc;
}

@media (max-width: 820px) {
    .journal-hero {
        padding: 70px 0 50px;
    }

    .journal-entry-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .journal-gallery .journal-photo,
    .journal-gallery .journal-photo.wide,
    .journal-gallery .journal-photo.narrow {
        grid-column: span 12;
        aspect-ratio: 4 / 3;
    }

    .journal-gallery .journal-photo.portrait {
        aspect-ratio: 4 / 5;
    }

    .journal-photo--hero {
        aspect-ratio: 4 / 3;
    }

    .journal-slide-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .journal-summary {
        grid-template-columns: 1fr;
    }

    .journal-entry {
        padding-left: 1.6rem;
    }

    .journal-entry::before {
        left: .25rem;
    }

    .journal-stream::before {
        left: .55rem;
    }

    .journal-photo figcaption {
        position: static;
        padding: .8rem;
        background: #0c1922;
    }

    .journal-slider-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .journal-jump,
    .journal-photo img,
    .slider-track {
        transition: none;
    }
}
