
:root {
    --background: #0b0f16;
    --surface: #151d29;
    --text: #f3f6fa;
    --muted: #9aa8b9;
    --accent: #00c8ff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 8%;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

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

a:hover, h1 span {
    color: var(--accent);
}

section {
    padding: 80px 8%;
}

.hero {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin: 20px 0;
}

.hero > p:not(.eyebrow) {
    max-width: 550px;
    color: var(--muted);
}

.eyebrow {
    color: var(--accent);
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: bold;
}

.button {
    display: inline-block;
    background: var(--accent);
    color: #081018;
    padding: 12px 22px;
    border-radius: 8px;
    margin-top: 24px;
    font-weight: bold;
}

.project-card {
    max-width: 600px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid #29394c;
    border-radius: 14px;
}

.project-card span {
    color: var(--accent);
}

footer {
    padding: 30px 8%;
    color: var(--muted);
}

@media (max-width: 600px) {
    nav {
        align-items: flex-start;
        flex-direction: column;
    }

    section {
        padding: 60px 6%;
    }
}

.logo-highlight {
    color: #EFFF00;
}


/* ==================================
   HOMEPAGE HERO - VERSION 0.2
   ================================== */

:root {
    --yellow: #EFFF00;
}

.hero {
    position: relative;
    min-height: 90vh;
    padding: 100px 8% 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;

    

background:
    linear-gradient(
        to right,
        #0b0f16 0%,
        #0b0f16 20%,
        rgba(11, 15, 22, 0.85) 35%,
        rgba(11, 15, 22, 0.30) 65%,
        rgba(11, 15, 22, 0.05) 100%
    ),
    url("images/engineering-blueprint.png");

background-size: cover;
background-position: center right;
background-repeat: no-repeat;

}

/* Subtle technical grid */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    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: 55px 55px;
    mask-image: linear-gradient(
        to right,
        transparent,
        black
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1050px;
    animation: fadeUp 1s ease-out both;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 30px;
}


.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #39FF14;
    box-shadow: 0 0 15px #39FF14;
    animation: pulse 2s infinite;
}


.hero h1 {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -3px;
    margin: 0 0 35px;
}

.hero-line {
    display: block;
}

.hero-line.highlight {
    color: var(--yellow);
}

.hero-description {
    max-width: 580px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #9aa8b9;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 35px;
}

.hero-actions .button {
    margin-top: 0;
    background: var(--yellow);
    color: #0b0f16;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-actions .button:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(239,255,0,0.25);
}

.text-link {
    font-weight: bold;
    transition: color 0.3s;
}

.text-link:hover {
    color: var(--yellow);
}

.hero-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 60px;
    color: #718396;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
}

.hero-footer a {
    color: var(--yellow);
}

/* Animations */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px #39FF14;
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 22px #39FF14;
    }
}


/* Mobile adjustments */

@media (max-width: 600px) {
    .hero {
        min-height: 80vh;
        padding: 80px 6% 30px;
    }

    .hero h1 {
        letter-spacing: -1.5px;
    }

    .hero-actions {
        gap: 20px;
    }
}

/* Accessibility: reduce movement when requested */

@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .status-dot {
        animation: none;
    }
}


/* =========================================
   RYANTHEENGINEER
   PROJECT SHOWCASE - VERSION 0.3
   ========================================= */

/* Main projects section */

.projects-section {
    padding: 100px 8%;
    background: #0b0f16;
}

/* Section heading */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.section-label {
    color: #EFFF00;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin: 10px 0;
}

.yellow {
    color: #EFFF00;
}

/* Active status indicator */

.section-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #39FF14;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.small-dot {
    width: 7px;
    height: 7px;
    background: #39FF14;
    border-radius: 50%;
    box-shadow: 0 0 10px #39FF14;
}

/* =========================================
   PROJECT GRID
   ========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

/* Individual project cards */

.projects-grid .project-card {
    max-width: none;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    background: #151d29;
    border: 1px solid #29394c;
    border-radius: 14px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Hover animation */

.projects-grid .project-card:hover {
    transform: translateY(-7px);
    border-color: #EFFF00;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Featured JARVIS project */

.featured-project {
    grid-column: 1 / -1;
}

/* =========================================
   PROJECT IMAGES
   ========================================= */

.project-image {
    height: 230px;
    overflow: hidden;
    background: #101722;
}

.featured-project .project-image {
    height: 330px;
}

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

/* Image zoom on hover */

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

/* =========================================
   PROJECT CONTENT
   ========================================= */

.project-info {
    padding: 30px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;

    color: #00C8FF;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.project-meta .project-status {
    color: #39FF14;
}

/* Project titles */

.project-info h3 {
    font-size: 1.8rem;
    margin: 0 0 15px;
}

/* Project descriptions */

.project-info p {
    color: #9aa8b9;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* =========================================
   TECHNOLOGY TAGS
   ========================================= */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    color: #b5c3d3;
    background: #202c3b;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    border: 1px solid #304154;
}

/* Future project page label */

.project-coming-soon {
    display: inline-block;
    margin-top: 25px;
    color: #EFFF00;
    font-weight: bold;
    font-size: 0.85rem;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 700px) {

    .projects-section {
        padding: 70px 6%;
    }

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

    .featured-project {
        grid-column: auto;
    }

    .featured-project .project-image {
        height: 230px;
    }

    .project-info {
        padding: 22px;
    }

    .project-info h3 {
        font-size: 1.5rem;
    }
}

/* Accessibility */

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

    .projects-grid .project-card,
    .project-image img {
        transition: none;
    }

    .projects-grid .project-card:hover,
    .project-card:hover .project-image img {
        transform: none;
    }
}


/* ====================================
   HOMEPAGE TO PROJECTS TRANSITION
   ==================================== */

.hero::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;

    background: linear-gradient(
        to bottom,
        rgba(11, 15, 22, 0) 0%,
        rgba(11, 15, 22, 0.3) 30%,
        rgba(11, 15, 22, 0.7) 65%,
        #0b0f16 100%
    );

    pointer-events: none;
    z-index: 0;
}


/* =====================================
   THE WORKSHOP - VERSION 0.4
   ===================================== */

.workshop-section {
    padding: 100px 8%;
    background: #0b0f16;
}

.workshop-intro {
    color: #9aa8b9;
    max-width: 600px;
    line-height: 1.8;
}

.workshop-feature {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(0, 200, 255, 0.12),
            transparent 55%
        ),
        #151d29;

    border: 1px solid #29394c;
    border-radius: 14px;
    padding: 50px;
    transition: border-color 0.3s ease;
}

.workshop-feature:hover {
    border-color: #EFFF00;
}

.workshop-feature-content {
    max-width: 650px;
}

.workshop-feature h3 {
    color: #f3f6fa;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.workshop-feature p:not(.section-label) {
    color: #9aa8b9;
    line-height: 1.8;
}

.workshop-link {
    display: inline-block;
    margin-top: 20px;
    color: #EFFF00;
    font-weight: bold;
}

.workshop-link:hover {
    color: #ffffff;
}

/* Workshop page */

.workshop-page {
    padding: 100px 8%;
    min-height: 80vh;
}

.workshop-page h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    margin: 10px 0 20px;
}

.workshop-description {
    color: #9aa8b9;
    max-width: 650px;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.blog-card {
    padding: 30px;
    background: #151d29;
    border: 1px solid #29394c;
    border-radius: 14px;
    transition: transform 0.3s, border-color 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: #EFFF00;
}

.blog-card h2 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.blog-card p:not(.section-label) {
    color: #9aa8b9;
}

.blog-card a {
    color: #EFFF00;
    font-weight: bold;
}

@media (max-width: 700px) {
    .workshop-section,
    .workshop-page {
        padding: 70px 6%;
    }

    .workshop-feature {
        padding: 25px;
    }

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

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .workshop-feature {
        transition: none;
    }

    .blog-card:hover {
        transform: none;
    }
}


/* =========================================
   BLOG ARTICLE - VERSION 0.5
   ========================================= */

.article-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 8%;
}

.back-link {
    display: inline-block;
    color: #EFFF00;
    font-size: 0.9rem;
    margin-bottom: 50px;
}

.back-link:hover {
    color: #ffffff;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto 70px;
}

.article-header h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 20px 0;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #9aa8b9;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    color: #718396;
    font-size: 0.8rem;
}

.article-divider {
    height: 1px;
    background: #29394c;
    margin: 50px 0;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #b5c3d3;
}

.article-content h2 {
    color: #f3f6fa;
    font-size: 1.8rem;
    margin: 55px 0 20px;
    line-height: 1.3;
}

.article-content p {
    margin-bottom: 25px;
}

.article-note {
    background: #151d29;
    border-left: 3px solid #EFFF00;
    padding: 25px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

.article-note span {
    color: #EFFF00;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.article-note p {
    margin: 15px 0 0;
}

.article-signoff {
    color: #EFFF00;
    font-weight: bold;
    margin-top: 50px;
}

@media (max-width: 700px) {
    .article-page {
        padding: 50px 6%;
    }

    .article-header h1 {
        letter-spacing: -1px;
    }

    .article-content {
        font-size: 1rem;
    }
}


/* =====================================
   ABOUT ME - VERSION 0.6
   ===================================== */

.about-section {
    padding: 100px 8%;
    background: #0b0f16;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.about-visual {
    position: relative;
    min-height: 480px;
    background: #151d29;
    border: 1px solid #29394c;
    border-radius: 14px;
    overflow: hidden;
}

.about-visual img {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    filter: brightness(0.75) saturate(1.15);
    transition: transform 0.5s ease;
}

.about-visual:hover img {
    transform: scale(1.04);
}

.about-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 15, 22, 0.85),
        transparent 55%
    );
    pointer-events: none;
}

.about-image-label {
    position: absolute;
    bottom: 25px;
    left: 25px;
    z-index: 1;
    color: #EFFF00;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.about-eyebrow {
    color: #00C8FF;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.about-content h3 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.2;
    margin: 20px 0 30px;
    letter-spacing: -1px;
}

.about-content p:not(.about-eyebrow) {
    color: #9aa8b9;
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-link {
    display: inline-block;
    margin-top: 15px;
    color: #EFFF00;
    font-weight: bold;
}

.about-link:hover {
    color: #ffffff;
}

/* Interests strip */

.about-interests {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 80px;
    padding-top: 35px;
    border-top: 1px solid #29394c;
}

.interest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b5c3d3;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.interest-number {
    color: #EFFF00;
    font-size: 0.8rem;
}

/* Responsive layout */

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        min-height: 350px;
    }

    .about-interests {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .about-section {
        padding: 70px 6%;
    }

    .about-visual {
        min-height: 280px;
    }

    .about-interests {
        gap: 25px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-visual img {
        transition: none;
    }

    .about-visual:hover img {
        transform: none;
    }
}

#about,
#projects,
#workshop {
    scroll-margin-top: 90px;
}


/* =====================================
   PROJECT JARVIS - VERSION 0.7
   ===================================== */

.jarvis-page {
    background: #0b0f16;
    padding: 80px 8% 100px;
}

.jarvis-hero {
    padding: 50px 0 100px;
    border-bottom: 1px solid #29394c;
}

.jarvis-hero h1 {
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 1;
    letter-spacing: -4px;
    margin: 20px 0 30px;
}

.jarvis-subtitle {
    color: #9aa8b9;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    max-width: 700px;
    line-height: 1.6;
}

.jarvis-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 35px;
}

.jarvis-tags span {
    padding: 8px 14px;
    color: #b5c3d3;
    background: #151d29;
    border: 1px solid #304154;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* Project introduction */

.jarvis-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    padding: 100px 0;
}

.jarvis-intro h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
}

.jarvis-intro-text p {
    color: #9aa8b9;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* Development roadmap */

.jarvis-roadmap {
    padding: 70px 0;
}

.jarvis-phases {
    display: grid;
    gap: 20px;
}

.jarvis-phase {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 30px;
    padding: 35px;
    background: #151d29;
    border: 1px solid #29394c;
    border-radius: 14px;
    transition: border-color 0.3s ease;
}

.jarvis-phase:hover {
    border-color: #EFFF00;
}

.phase-number {
    color: #EFFF00;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.phase-status {
    color: #39FF14;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.phase-status.future {
    color: #00C8FF;
}

.jarvis-phase h3 {
    font-size: 1.8rem;
    margin: 10px 0 15px;
}

.jarvis-phase p:not(.phase-status) {
    color: #9aa8b9;
    line-height: 1.8;
    max-width: 700px;
}

.phase-tech {
    display: inline-block;
    margin-top: 15px;
    color: #718396;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Expandable, content-driven roadmap */
.roadmap-intro {
    max-width: 750px;
    color: #9aa8b9;
    margin-bottom: 30px;
}

.jarvis-phase.roadmap-phase {
    display: block;
    padding: 0;
    scroll-margin-top: 35px;
}

.roadmap-phase > summary {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 30px;
    padding: 35px;
    cursor: pointer;
    list-style: none;
    border-radius: 14px;
}

.roadmap-phase > summary::-webkit-details-marker { display: none; }
.roadmap-phase > summary:focus-visible,
.roadmap-phase a:focus-visible {
    outline: 2px solid #EFFF00;
    outline-offset: 5px;
}

.roadmap-phase.roadmap-current {
    border-color: #EFFF00;
    border-left-width: 4px;
}

.roadmap-current .phase-status { color: #EFFF00; }
.roadmap-heading > span { display: block; }
.roadmap-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0 15px;
}

.roadmap-description {
    color: #9aa8b9;
    line-height: 1.8;
    max-width: 700px;
}

.roadmap-phase .phase-tech { color: #9aa8b9; }
.roadmap-toggle {
    margin-top: 20px;
    color: #EFFF00;
    font-size: 0.85rem;
    font-weight: bold;
}

.roadmap-hide, .roadmap-phase[open] .roadmap-show { display: none; }
.roadmap-phase[open] .roadmap-hide { display: inline; }
.roadmap-body {
    margin: 0 35px 35px 155px;
    padding-top: 20px;
    border-top: 1px solid #29394c;
    max-width: 750px;
    color: #b5c3d3;
}

.roadmap-body h4 {
    color: #f3f6fa;
    font-size: 1rem;
    margin: 22px 0 10px;
}

.roadmap-body ul { padding-left: 22px; }
.roadmap-body li { padding-left: 4px; margin: 12px 0; }
.roadmap-body li::marker { color: #00c8ff; }
.roadmap-next {
    border-left: 2px solid #00c8ff;
    padding-left: 20px;
    margin: 28px 0;
}

.roadmap-posts a {
    color: #EFFF00;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.roadmap-posts a:hover { color: #fff; }

@media (max-width: 700px) {
    .roadmap-phase > summary { grid-template-columns: 1fr; gap: 15px; padding: 25px; }
    .roadmap-body { margin: 0 25px 25px; }
}

/* Workshop call to action */

.jarvis-cta {
    margin-top: 80px;
    padding: 60px;
    border: 1px solid #29394c;
    border-radius: 14px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(0, 200, 255, 0.12),
            transparent 60%
        ),
        #151d29;
}

.jarvis-cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    max-width: 650px;
}

.jarvis-cta p:not(.section-label) {
    color: #9aa8b9;
    line-height: 1.8;
    max-width: 550px;
}

.jarvis-cta .button {
    display: inline-block;
    margin-top: 25px;
    background: #EFFF00;
    color: #0b0f16;
}

/* Mobile */

@media (max-width: 700px) {
    .jarvis-page {
        padding: 50px 6% 70px;
    }

    .jarvis-hero {
        padding: 40px 0 70px;
    }

    .jarvis-hero h1 {
        letter-spacing: -2px;
    }

    .jarvis-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 70px 0;
    }

    .jarvis-phase {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 25px;
    }

    .jarvis-cta {
        padding: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jarvis-phase {
        transition: none;
    }
}

/* =====================================
   WEBSITE POLISH - VERSION 0.8
   ===================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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


/* Glass navigation */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(11, 15, 22, 0.85);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}


/* Navigation hover animation */

.nav-links a {
    position: relative;
    text-decoration: none;
}

.nav-links a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -7px;

    width: 100%;
    height: 2px;

    background: #EFFF00;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .nav-links a::after {
        transition: none;
    }
}


/* Build log editorial components */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 12px 18px;
    background: #EFFF00;
    color: #0b0f16;
    font-weight: bold;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.build-log-page .article-meta {
    color: #9aa8b9;
}

.build-log-summary {
    color: #b5c3d3;
    line-height: 1.8;
}

.build-log-summary a,
.post-related a {
    display: inline-block;
    margin-top: 18px;
    color: #EFFF00;
    font-weight: bold;
}

.post-contents {
    display: block;
    padding: 24px 0;
    border-top: 1px solid #29394c;
    border-bottom: 1px solid #29394c;
}

.post-contents ol,
.build-log-page .article-content ul {
    padding-left: 24px;
}

.post-contents li,
.build-log-page .article-content li {
    margin: 10px 0;
}

.post-contents a {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: #b5c3d3;
}

.post-contents a:hover,
.post-related a:hover,
.build-log-summary a:hover {
    color: #ffffff;
}

.build-log-page a:focus-visible,
.skip-link:focus-visible {
    outline: 2px solid #EFFF00;
    outline-offset: 5px;
}

.build-log-page h2[id] {
    scroll-margin-top: 35px;
}

.post-related {
    border-top: 1px solid #29394c;
    margin-top: 55px;
    padding-top: 25px;
}

.post-related a {
    margin-right: 24px;
}

/* Progressive build-log interactions */
.reading-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 1500;
    pointer-events: none;
}

.reading-progress-fill {
    height: 100%;
    background: #EFFF00;
    transform: scaleX(0);
    transform-origin: left;
}

.build-log-document .post-contents {
    position: sticky;
    top: var(--reading-header-height, 100px);
    z-index: 900;
    padding: 0;
    background: #0b0f16;
}

.post-contents-disclosure > summary {
    position: relative;
    cursor: pointer;
    padding: 12px 32px 12px 12px;
    list-style: none;
}

.post-contents-disclosure > summary::-webkit-details-marker {
    display: none;
}

.post-contents-disclosure > summary::after {
    content: '+';
    position: absolute;
    right: 12px;
    top: 22px;
    color: #EFFF00;
    font-size: 1.2rem;
}

.post-contents-disclosure[open] > summary::after { content: '−'; }

.post-current-section {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #b5c3d3;
    font-size: 0.85rem;
}

.post-contents-disclosure > ol {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 20px 12px 38px;
    max-height: 45vh;
    overflow-y: auto;
    background: #151d29;
    border: 1px solid #29394c;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.3);
}

.post-contents-disclosure a {
    display: block;
    padding: 6px;
    border-left: 3px solid transparent;
}

.post-contents-disclosure a[aria-current="location"] {
    color: #EFFF00;
    border-left-color: #EFFF00;
    font-weight: bold;
}

.build-log-document .article-content h2[id] {
    scroll-margin-top: var(--reading-header-height, 100px);
}

.workbench-note {
    margin: 32px 0;
    border: 1px solid #29394c;
    border-radius: 8px;
    background: #151d29;
}

.workbench-note > summary {
    cursor: pointer;
    padding: 18px 22px;
    color: #EFFF00;
    font-weight: bold;
}

.workbench-note > p {
    padding: 0 22px 20px;
    margin: 0;
}

.build-log-page summary:focus-visible {
    outline: 2px solid #EFFF00;
    outline-offset: 3px;
}

@media print {
    .reading-progress, .post-contents { display: none; }
    .workbench-note > p { display: block; }
}

/* Mobile navigation improvements */

@media (max-width: 600px) {

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

}
