:root {
    --background: #0c1c18;
    --background-light: #142a25;
    --dark-teal: #142a25;
    --card: #203a34;
    --card-hover: #29463f;

    --orange: #ec6637;
    --orange-dark: #c85a32;
    --orange-light: #f17445;

    --white: #e7e9de;
    --muted: #aebbb4;
    --border: rgba(231, 233, 222, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 70% 15%,
            rgba(20, 67, 55, 0.22),
            transparent 35%
        ),
        var(--background);
    color: var(--white);
    font-family: "Chakra Petch", sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

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

/* HEADER */
.site-header {
    margin: 0;
    padding: 28px 4.5% 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.site-header a {
    color: var(--orange);
}

.site-header a:hover {
    color: var(--orange-light);
}

.back-link {
    margin: 32px 4.5% 10px;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--orange);
}

/* HERO */
.project-hero {
    margin: 0 4.5vw;
    display: grid;
    grid-template-columns: minmax(250px, 0.75fr) minmax(500px, 1.75fr);
    min-height: 510px;
    border-bottom: 1px solid var(--border);
}

.project-info {
    padding: 30px 38px 35px 0;
    border-right: 1px solid var(--border);
}

.project-meta {
    margin-bottom: 17px;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.project-info h1 {
    margin: 0;
    font-size: clamp(45px, 4vw, 66px);
    line-height: 0.91;
    letter-spacing: -0.045em;
}

.intro {
    max-width: 330px;
    margin-top: 25px;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    line-height: 1.65;
}

.project-specs {
    max-width: 330px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.spec-row {
    display: grid;
    grid-template-columns: 105px 1fr;
    margin-bottom: 10px;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    line-height: 1.5;
}

.spec-row > span:first-child {
    color: var(--muted);
}

/* HERO IMAGE */
.hero-visual {
    position: relative;
    padding: 14px 0 35px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visual-meta {
    position: absolute;
    top: 15px;
    right: 0;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.hero-image-stage {
    position: relative;
    height: 345px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.glow-orange {
    width: 58%;
    height: 58%;
    left: 21%;
    top: 19%;
    background: radial-gradient(
        ellipse,
        rgba(236, 102, 55, 0.34) 0%,
        rgba(236, 102, 55, 0.14) 42%,
        transparent 74%
    );
    filter: blur(38px);
}

.glow-green {
    width: 85%;
    height: 75%;
    left: 7.5%;
    top: 12%;
    background: radial-gradient(
        ellipse,
        rgba(38, 91, 74, 0.34),
        rgba(38, 91, 74, 0.10) 52%,
        transparent 76%
    );
    filter: blur(45px);
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter:
        drop-shadow(0 0 15px rgba(236, 102, 55, 0.12))
        drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

.project-label {
    width: min(72%, 590px);
    margin: 4px auto 0;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(110deg, var(--orange), #f05c32);
    color: #101c18;
    border-radius: 6px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.project-label:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.project-label span {
    display: block;
    margin-bottom: 4px;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    font-weight: 700;
}

.project-label strong {
    display: block;
    font-size: 14px;
    letter-spacing: 0.03em;
}

.project-label b {
    font-size: 18px;
}

/* STORY */
.story-grid {
    margin: 0 4.5vw;
    padding: 32px 0 34px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--border);
}

.story-block {
    padding: 0 40px;
    border-right: 1px solid var(--border);
}

.story-block:first-child {
    padding-left: 0;
}

.story-block:last-child {
    padding-right: 0;
    border-right: none;
}

.story-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.story-heading span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--orange);
    border-radius: 50%;
    color: var(--orange);
    font-family: "Space Mono", monospace;
    font-size: 12px;
}

.story-heading h2 {
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.08em;
}

.story-block p {
    max-width: 620px;
    margin: 0 0 14px;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    line-height: 1.75;
    color: #c5cec8;
}

/* GALLERY */
.gallery-section {
    margin: 0 4.5vw;
    padding: 26px 0 46px;
    border-bottom: 1px solid var(--border);
}

.section-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    font-family: "Space Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-topline span:last-child {
    color: var(--orange);
}

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

.photo-card {
    margin: 0;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 11px;
}

.photo-card img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--dark-teal);
}

.photo-card figcaption {
    padding: 11px 2px 2px;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* FOOTER */
footer {
    padding: 28px 4.5% 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--muted);
}

footer div {
    display: flex;
    gap: 18px;
}

footer a {
    color: var(--orange);
}

footer a:hover {
    color: var(--white);
}

/* MOBILE */
@media (max-width: 900px) {
    .project-hero {
        grid-template-columns: 1fr;
    }

    .project-info {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
    }

    .hero-visual {
        padding: 35px 0;
    }

    .visual-meta {
        position: static;
        margin-bottom: 8px;
        text-align: right;
    }

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

    .story-block {
        padding: 26px 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .story-block:first-child {
        padding-top: 0;
    }

    .story-block:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .photo-card img {
        height: auto;
        max-height: 70vh;
        object-fit: contain;
    }
}

@media (max-width: 600px) {
    .site-header,
    footer {
        gap: 18px;
    }

    .project-info h1 {
        font-size: clamp(40px, 13vw, 58px);
    }

    .hero-image-stage {
        height: 280px;
    }

    .project-label {
        width: 100%;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
