:root {
    --bg: #e5ecea;
    --surface: #f5f9f7;
    --surface-light: #cedbd7;

    --text: #172321;
    --text-muted: #5c6d69;

    --accent: #168b82;

    --radius: 10px;

    --shadow: 0 8px 24px rgba(18, 48, 44, 0.14);
}


* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {

    font-family: Arial, Helvetica, sans-serif;

    background: var(--bg);

    color: var(--text);

    line-height: 1.6;

}

a {

    color: inherit;
    text-decoration: none;

}

img {

    display: block;
    max-width: 100%;

}

.part-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.part-image {
    display: block;
    width: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity .3s ease;
}

/* --- Added .touch-active here --- */
.part-image-wrapper:hover .image-overlay,
.part-image-wrapper.touch-active .image-overlay {
    opacity: 1;
}

/* --- Added .touch-active here --- */
.part-image-wrapper:hover .part-image,
.part-image-wrapper.touch-active .part-image {
    transform: scale(1.03);
}

.image-overlay .button {
    transform: translateY(10px);
    transition: transform .3s ease;
}

/* --- Added .touch-active here --- */
.part-image-wrapper:hover .button,
.part-image-wrapper.touch-active .button {
    transform: translateY(0);
}

.part-card h3, .part-container h2 {
    text-align: center;
    margin-top: 6px;
}

.part-container p {
    text-align: center;
    margin-top: 3px;
    margin-bottom: 2px;
}

html {
    scroll-behavior: smooth;
}


.mt-2{
    margin-top: 5px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title .button {
    /* margin-left: auto; */
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    margin-top: 5px;
    margin-bottom: 5px;
}


.project-meta {

    list-style: none;
    padding: 0;
    margin: 2rem 0;

    max-width: 520px;

}

.project-meta li {

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: .5rem 0;

    border-bottom: 1px solid rgba(255,255,255,.08);

}

.meta-label {

    font-weight: 600;
    color: #888;

}

.status-complete,
.status-in-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    width: fit-content;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;

    font-weight: 600;
}

.status-dot {

    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: #2ecc71;

    box-shadow: 0 0 8px rgba(46,204,113,.7);

}

.status-dot-in-progress {

    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: #cfcf1b;

    box-shadow: 0 0 8px rgba(46,204,113,.7);

}


.hero {
    position: relative;

    min-height: 350px;
    padding: 7rem 0;

    display: flex;
    align-items: center;

    text-align: center;
    overflow: hidden;

    background: var(--surface);
    color: #000;
}


/* Background slideshow */

.hero-slideshow {
    position: absolute;
    inset: 0;

    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 0;
    transform: scale(1.01);

    transition:
        opacity 1.5s ease,
        transform 8s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.04);
}


/* Light wash over image */

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(233, 231, 226, .94) 25%,
            rgba(233, 231, 226, .87) 75%,
            rgba(233, 231, 226, .55) 95%,
            rgba(233, 231, 226, .12) 100%
        );
}


/* Content */

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;

    padding: 0 0;

    color: #000;
}

.hero h1,
.hero h2 {
    color: #000;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 4000px;

    margin: 1rem auto 2rem;

    color: #000;

    font-size: 1.05rem;
    line-height: 1.65;
}

.hero ul {
    max-width: 500px;
    margin: 0 auto 2rem;
}


/* Project meta */

.hero .project-meta {
    max-width: 600px;
    margin: 1.5rem auto 2rem;
}

.hero .project-meta li {
    border-bottom: 1px solid rgba(0, 0, 0, .15);
    color: #000;
}

.hero .meta-label {
    color: #000;
    font-weight: 600;
}


/* Eyebrow */

.hero .eyebrow {
    color: #000;
    font-weight: 700;
}

.part-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 260px;
    padding: 1rem;

    overflow: hidden;
    background: var(--surface-light);
    border-radius: var(--radius);
}

.part-image-wrapper .part-image {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.drawing-card {
    display: grid;
    grid-template-columns: minmax(320px, 45%) 1fr;
    gap: 1.25rem;
    align-items: start;
}

.drawing-previews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.drawing-preview {
    margin: 0;
}

.drawing-preview .part-image-wrapper {
    height: 180px;
    padding: 0.75rem;
}

.drawing-preview figcaption {
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.drawing-details h3 {
    margin-top: 0;
}

.drawing-source {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    margin: 0.75rem auto;
    padding: 0.45rem 0.7rem;

    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;

    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.drawing-source:hover {
    color: #fff;
    background: #1677d2;
    border-color: #1677d2;
}

.drawing-downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;

    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .drawing-card {
        grid-template-columns: 1fr;
    }

    .drawing-preview .part-image-wrapper {
        height: 150px;
    }
}