/* =====================================================
   GLOOM3D
   Main stylesheet
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #050506;
    color: #f2eff4;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
}


/* =====================================================
   GLOOM3D COLOUR PALETTE
===================================================== */

:root {
    --black: #050506;
    --black-soft: #0b0a0d;

    --purple: #9b43d1;
    --purple-light: #c17bea;

    --green: #20a77b;
    --green-light: #48d0a4;

    --energy-gradient: linear-gradient(90deg, var(--green-light), var(--purple-light));
    --energy-green-glow: rgba(72, 208, 164, 0.12);
    --energy-purple-glow: rgba(193, 123, 234, 0.14);
    --energy-green-glow-active: rgba(72, 208, 164, 0.22);
    --energy-purple-glow-active: rgba(193, 123, 234, 0.24);
    --energy-glow-subtle:
        0 0 10px var(--energy-green-glow),
        0 0 14px var(--energy-purple-glow);
    --energy-glow-active:
        0 0 12px var(--energy-green-glow-active),
        0 0 16px var(--energy-purple-glow-active);

    --white: #f2eff4;

    --grey: #96919a;
    --grey-dark: #454149;

    --border: rgba(255, 255, 255, 0.10);

    --max-width: 1400px;
}


/* =====================================================
   BACKGROUND ATMOSPHERE
===================================================== */

.background-glow {
    position: fixed;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(150px);

    opacity: 0.12;

    z-index: -1;
}

.glow-purple {
    background: var(--purple);

    top: -250px;
    right: -150px;
}

.glow-green {
    background: var(--green);

    bottom: -250px;
    left: -150px;
}

/* =====================================================
   ENVIRONMENT LAYER
===================================================== */

.environment-layer {
    position: fixed;
    inset: 0;

    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.environment-layer::before,
.environment-layer::after {
    content: "";
    position: absolute;

    width: min(62vw, 900px);
    aspect-ratio: 1;
    border-radius: 50%;

    filter: blur(170px);
    opacity: 0.045;
}

.environment-layer::before {
    top: 16%;
    left: -30%;

    background: var(--green);
}

.environment-layer::after {
    right: -30%;
    bottom: 8%;

    background: var(--purple);
}

@media (max-width: 800px) {
    .environment-layer::before,
    .environment-layer::after {
        width: 100vw;

        filter: blur(130px);
        opacity: 0.032;
    }
}

/* =====================================================
   GIANT BACKGROUND LOGO
===================================================== */

.background-symbol {
    position: fixed;

    width: 1200px;
    height: 1200px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;

    z-index: -2;

    opacity: 0.055;

    filter: blur(8px);

    transition: transform 0.2s ease-out;
}

.background-symbol img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}
/* =====================================================
   HEADER
===================================================== */

.site-header {
    width: min(100% - 60px, var(--max-width));

    min-height: 100px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;

    z-index: 20;
}


/* Logo */

.nav-logo {
    width: 130px;
    display: block;
}

.nav-logo img {
    width: 100%;
    display: block;
}


/* Navigation */

.main-nav {
    display: flex;
    gap: 38px;
}

.main-nav a {
    color: var(--grey);

    font-size: 13px;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
}

.main-nav a:hover {
    transform: translateY(-2px);
}


/* Social links */

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--grey);

    font-size: 12px;

    letter-spacing: 0.08em;

    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--purple-light);
}


/* =====================================================
   HERO
===================================================== */

.hero {
    width: min(100% - 60px, var(--max-width));

    min-height: calc(100vh - 100px);

    margin: 0 auto;

    position: relative;

    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;

    z-index: 5;

    width: 58%;

    padding-bottom: 70px;
}


/* Small heading */

.eyebrow,
.section-label {
    color: var(--green-light);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.22em;

    margin-bottom: 25px;
}


/* Main title */

.hero h1 {
    font-size: clamp(60px, 8vw, 125px);

    line-height: 0.88;

    font-weight: 800;

    letter-spacing: -0.065em;
}

.hero h1 span {
    display: block;

    color: transparent;

    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}


/* Hero description */

.hero-description {
    max-width: 520px;

    margin-top: 35px;

    color: var(--grey);

    font-size: 16px;

    line-height: 1.7;
}


/* Hero buttons */

.hero-buttons {
    display: flex;

    gap: 15px;

    margin-top: 35px;
}


/* =====================================================
   BUTTONS
===================================================== */

.button {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    padding: 15px 22px;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    border: 1px solid var(--border);

    transition:
        background 0.3s ease,
        border 0.3s ease,
        transform 0.3s ease;
}

.button span {
    font-size: 18px;
}


/* Purple button */

.button-primary {
    background: var(--purple);

    border-color: var(--purple);

    color: white;
}

.button-primary:hover {
    background: var(--purple-light);

    border-color: var(--purple-light);

    transform: translateY(-3px);
}


/* Secondary button */

.button-secondary {
    background: rgba(255, 255, 255, 0.02);

    color: var(--white);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);

    transform: translateY(-3px);
}


/* =====================================================
   MASCOT
===================================================== */

.mascot-container {
    position: absolute;

    isolation: isolate;

    width: min(115vw, 1700px);

    right: -390px;

    top: 50%;

    transform:
        translate3d(0, -50%, 0);

    z-index: 3;

    pointer-events: none;

    will-change: transform;
}
/* The video itself handles the floating animation */

.mascot {
    width: 100%;

    display: block;

    position: relative;

    z-index: 1;

    mix-blend-mode: screen;

    animation:
        mascot-float 6s ease-in-out infinite;

    will-change: transform;
}

.mascot {
    width: 100%;

    display: block;

    /*
       This allows a black video background
       to blend into the black website.
    */

    mix-blend-mode: screen;

    animation: mascot-float 6s ease-in-out infinite;
}

.mascot-container > .mascot {
    opacity: 1;

    filter:
        saturate(1.05)
        contrast(1.02);
}


/* Purple glow behind mascot */

.mascot-glow {
    position: absolute;

    width: 45%;
    height: 45%;

    left: 35%;
    top: 30%;

    border-radius: 50%;

    background: var(--purple);

    filter: blur(100px);

    opacity: 0.18;

    z-index: -1;
}

.mascot-container > .mascot-glow {
    width: 40%;
    height: 40%;

    left: 37.5%;
    top: 32.5%;

    filter: blur(85px);
    opacity: 0.14;

    z-index: 0;
}


/* Floating animation */

@keyframes mascot-float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}


/* =====================================================
   SCROLL INDICATOR
===================================================== */

.scroll-indicator {
    position: absolute;

    bottom: 30px;

    left: 0;

    color: var(--grey-dark);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.18em;

    display: flex;

    align-items: center;

    gap: 12px;
}

.scroll-indicator span {
    display: block;

    width: 30px;

    height: 1px;

    background: var(--grey-dark);
}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

.section {
    width: min(100% - 60px, var(--max-width));

    margin: 0 auto;

    padding-top: 160px;

    padding-bottom: 160px;
}

.section-number {
    color: var(--grey-dark);

    font-size: 12px;

    letter-spacing: 0.15em;

    margin-bottom: 45px;
}


/* =====================================================
   INTRODUCTION
===================================================== */

.intro-content {
    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 70px;

    max-width: 1000px;
}

.intro-symbol {
    width: 150px;

    opacity: 0.8;
}

.intro-symbol img {
    width: 100%;
}

.intro h2,
.featured h2 {
    font-size: clamp(45px, 6vw, 85px);

    line-height: 0.92;

    letter-spacing: -0.05em;

    margin-bottom: 35px;
}

.body-text {
    max-width: 700px;

    color: var(--grey);

    font-size: 17px;

    line-height: 1.8;

    margin-bottom: 20px;
}


/* =====================================================
   FEATURED WORK
===================================================== */

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 70px;
}

.text-link {
    color: var(--grey);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.12em;

    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--purple-light);
}


/* Project grid */

.project-grid {
    display: grid;

    grid-template-columns: 1.3fr 1fr;

    gap: 25px;
}

.project-card {
    min-width: 0;
}

.project-large {
    grid-row: span 2;
}


/* Project image */

.project-image {
    width: 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(155, 67, 209, 0.18),
            transparent 55%
        ),
        #0b0a0d;

    border: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        border-color 0.4s ease,
        transform 0.4s ease;
}

.project-card .project-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card:hover .project-image {
    border-color: rgba(155, 67, 209, 0.5);

    transform: scale(0.99);
}

.placeholder-image span {
    color: var(--grey-dark);

    font-size: 10px;

    letter-spacing: 0.2em;

    text-transform: uppercase;
}


/* Project information */

.project-info {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 18px 0 45px;
}

.project-info h3 {
    font-size: 20px;

    font-weight: 500;
}

.project-info > p {
    color: var(--grey-dark);

    font-size: 9px;

    letter-spacing: 0.15em;

    white-space: nowrap;
}

.project-number {
    color: var(--purple-light);

    font-size: 10px;

    letter-spacing: 0.15em;

    margin-bottom: 8px;
}


/* =====================================================
   CONTACT CTA
===================================================== */

.contact-cta {
    position: relative;

    text-align: center;

    overflow: hidden;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}

.contact-cta h2 {
    position: relative;

    z-index: 3;

    font-size: clamp(55px, 9vw, 130px);

    line-height: 0.85;

    letter-spacing: -0.065em;
}

.contact-cta h2 span {
    display: block;

    color: transparent;

    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
}

.cta-description {
    position: relative;

    z-index: 3;

    max-width: 550px;

    margin: 35px auto;

    color: var(--grey);

    line-height: 1.7;
}


/* Small squid at contact section */

.cta-squid {
    position: absolute;

    width: 400px;

    right: -50px;

    top: 50%;

    transform: translateY(-50%);

    opacity: 0.22;

    pointer-events: none;
}

.cta-squid video {
    width: 100%;

    mix-blend-mode: screen;
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    width: min(100% - 60px, var(--max-width));

    margin: 0 auto;

    padding: 50px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--grey-dark);

    font-size: 10px;

    letter-spacing: 0.08em;
}

.footer-symbol {
    width: 35px;
}

.footer-socials {
    display: flex;

    gap: 20px;
}

.footer-socials a {
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--white);
}


/* =====================================================
   TABLET / SMALL DESKTOP
===================================================== */

@media (max-width: 900px) {

    .site-header {
        width: min(100% - 30px, var(--max-width));
    }

    .main-nav {
        gap: 15px;
    }

    .social-links {
        display: none;
    }

    .hero {
        width: min(100% - 30px, var(--max-width));

        min-height: 850px;

        align-items: flex-start;

        padding-top: 100px;
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(55px, 15vw, 100px);
    }

    .hero-description {
        max-width: 450px;
    }

    .mascot-container {
        width: 90vw;

        right: -25vw;

        top: 55%;

        opacity: 1;
    }

    .section {
        width: min(100% - 30px, var(--max-width));

        padding-top: 100px;

        padding-bottom: 100px;
    }

    .intro-content {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .intro-symbol {
        width: 80px;
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 25px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-large {
        grid-row: auto;
    }

    .cta-squid {
        width: 250px;

        right: -80px;

        opacity: 0.15;
    }

    .site-footer {
        width: min(100% - 30px, var(--max-width));

        flex-wrap: wrap;

        gap: 25px;
    }
}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 500px) {

    .site-header {
        min-height: 80px;
    }

    .nav-logo {
        width: 105px;
    }

    .main-nav {
        gap: 12px;
    }

    .main-nav a {
        font-size: 10px;
    }

    .hero {
        min-height: 780px;

        padding-top: 70px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

    .button {
        width: 100%;

        justify-content: space-between;
    }

    .mascot-container {
        width: 115vw;

        right: -45vw;

        top: 60%;
    }

    .project-info {
        flex-direction: column;
    }

    .project-info > p {
        white-space: normal;
    }

    .contact-cta h2 {
        font-size: 17vw;
    }
}
/* =====================================================
   PORTFOLIO PAGE
===================================================== */

.portfolio-hero {
    position: relative;

    min-height: 75vh;

    max-width: 1200px;

    margin: 0 auto;

    padding:
        160px 40px
        100px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 60px;
}


/* =====================================================
   PORTFOLIO TITLE
===================================================== */

.portfolio-title {
    position: relative;

    z-index: 2;

    max-width: 700px;
}


.portfolio-title h1 {
    margin: 20px 0 30px;

    font-size: clamp(
        49px,
        6.3vw,
        105px
    );

    line-height: 0.82;

    letter-spacing: -0.07em;

    font-weight: 900;
}


.portfolio-title h1 span {
    display: block;
}


/* =====================================================
   GLOOM3D GRADIENT TYPOGRAPHY
===================================================== */

.portfolio-title h1 .gradient-word {
    display: block;

    width: fit-content;

    padding-right: 0.08em;

    background:
        linear-gradient(
            105deg,
            #159b73 0%,
            #43c49a 28%,
            #8f42c8 72%,
            #b34de0 100%
        );

    background-size: 200% auto;

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;

    animation:
        gradient-drift 8s ease-in-out infinite alternate;
}


.portfolio-title h1 .gradient-word.second {
    background:
        linear-gradient(
            105deg,
            #8f42c8 0%,
            #b34de0 35%,
            #43c49a 75%,
            #159b73 100%
        );

    background-size: 200% auto;

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}


@keyframes gradient-drift {

    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 100% center;
    }

}

 


.portfolio-intro {
    max-width: 520px;

    color: rgba(255,255,255,0.6);

    font-size: 16px;

    line-height: 1.7;
}


/* =====================================================
   PORTFOLIO MASCOT
===================================================== */

.portfolio-mascot {
    position: absolute;

    width: min(45vw, 560px);

    right: -80px;

    bottom: 0;

    z-index: 1;

    pointer-events: none;

    transition:
        transform 0.3s ease;
}


.portfolio-mascot-video {
    display: block;

    width: 100%;

    mix-blend-mode: screen;

    filter:
        drop-shadow(
            0 0 45px
            rgba(140, 60, 220, 0.25)
        );
}


/* =====================================================
   PORTFOLIO SECTION
===================================================== */

.portfolio-section {
    max-width: 1400px;

    margin: 0 auto;

    padding:
        100px 40px
        160px;
}


/* =====================================================
   TOOLBAR
===================================================== */

.portfolio-toolbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 70px;

    padding-bottom: 20px;

    border-bottom:
        1px solid rgba(255,255,255,0.1);
}


.section-label {
    margin: 0;

    color: #8f42c8;

    font-size: 11px;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    font-weight: 700;
}


.portfolio-filters {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


.filter-button {
    padding:
        10px 18px;

    border:
        1px solid rgba(255,255,255,0.15);

    background:
        transparent;

    color:
        rgba(255,255,255,0.55);

    font-family: inherit;

    font-size: 11px;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}


.filter-button:hover,
.filter-button.active {
    background:
        #8f42c8;

    border-color:
        #8f42c8;

    color:
        white;
}


/* =====================================================
   PROJECT GRID
===================================================== */

.portfolio-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        90px 35px;
}


/* =====================================================
   PROJECT
===================================================== */

.portfolio-project {
    position: relative;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


.portfolio-project.project-featured {
    grid-column:
        span 2;
}


/* =====================================================
   PROJECT IMAGE
===================================================== */

.portfolio-image {
    position: relative;

    width: 100%;

    aspect-ratio:
        16 / 10;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(70,20,90,0.2),
            rgba(10,10,10,0.9)
        );

    border:
        1px solid
        rgba(255,255,255,0.08);
}


.portfolio-placeholder {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color:
        rgba(255,255,255,0.2);

    transition:
        transform 0.5s ease,
        color 0.5s ease;
}


.portfolio-placeholder span {
    font-size: 30px;

    font-weight: 800;

    letter-spacing:
        -0.03em;
}


.portfolio-placeholder small {
    font-size: 9px;

    letter-spacing:
        0.2em;
}


/* =====================================================
   PROJECT HOVER
===================================================== */

.project-link {
    display: block;

    color: inherit;

    text-decoration: none;
}


.project-link:hover
.portfolio-placeholder {
    transform:
        scale(1.04);

    color:
        rgba(255,255,255,0.6);
}


.project-link:hover
.portfolio-image {
    border-color:
        rgba(155,67,209,0.5);
}


/* =====================================================
   PROJECT INFORMATION
===================================================== */

.portfolio-project-info {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    padding-top: 20px;
}


.project-index {
    display: block;

    margin-bottom: 8px;

    color:
        #8f42c8;

    font-size: 10px;

    letter-spacing:
        0.15em;
}


.portfolio-project-info h2 {
    margin: 0;

    font-size: 25px;

    font-weight: 700;

    letter-spacing:
        -0.03em;
}


.portfolio-project-info p {
    margin: 5px 0 0;

    color:
        rgba(255,255,255,0.35);

    font-size: 9px;

    letter-spacing:
        0.15em;

    text-align: right;
}


/* =====================================================
   PORTFOLIO END
===================================================== */

.portfolio-end {
    min-height:
        70vh;

    padding:
        160px 40px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.portfolio-end h2 {
    margin:
        25px 0 45px;

    font-size:
        clamp(60px, 8vw, 130px);

    line-height:
        0.85;

    letter-spacing:
        -0.07em;

    font-weight:
        900;
}


.portfolio-end h2 span {
    display: block;

    color:
        transparent;

    -webkit-text-stroke:
        1px rgba(255,255,255,0.3);
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
    position: relative;

    max-width: 1400px;

    margin: 0 auto;

    padding:
        60px 40px;

    border-top:
        1px solid
        rgba(255,255,255,0.08);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.footer-symbol {
    width: 35px;

    height: 35px;

    object-fit: contain;

    opacity: 0.5;
}


.site-footer p {
    margin: 0;

    color:
        rgba(255,255,255,0.3);

    font-size: 10px;

    letter-spacing:
        0.08em;
}


.footer-socials {
    display: flex;

    gap: 20px;
}


.footer-socials a {
    color:
        rgba(255,255,255,0.4);

    text-decoration: none;

    font-size: 10px;

    transition:
        color 0.25s ease;
}


.footer-socials a:hover {
    color: white;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {

    .portfolio-hero {
        min-height: auto;

        padding:
            130px 25px
            80px;

        display: block;
    }


    .portfolio-title h1 {
        font-size:
            clamp(60px, 16vw, 100px);
    }


    .portfolio-mascot {
        position: relative;

        width: 80vw;

        right: auto;

        margin:
            40px auto
            -80px;

        transform: none;
    }


    .portfolio-section {
        padding:
            80px 25px
            120px;
    }


    .portfolio-toolbar {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 45px;
    }


    .portfolio-grid {
        grid-template-columns:
            1fr;

        gap: 60px;
    }


    .portfolio-project.project-featured {
        grid-column:
            span 1;
    }


    .portfolio-project-info {
        flex-direction:
            column;

        gap: 12px;
    }


    .portfolio-project-info p {
        text-align: left;
    }


    .portfolio-end {
        min-height:
            60vh;

        padding:
            120px 25px;
    }


    .site-footer {
        flex-direction:
            column;

        text-align:
            center;

        padding:
            50px 25px;
    }

}
/* =====================================================
   PROJECT IMAGES
===================================================== */

.portfolio-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.7s ease;
}


/* =====================================================
   PROJECT OVERLAY
===================================================== */

.project-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    justify-content: flex-end;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(21,155,115,0.15),
            transparent 45%,
            rgba(143,66,200,0.35)
        );

    opacity: 0;

    transition:
        opacity 0.4s ease;
}


.project-view {
    padding:
        12px 18px;

    background:
        rgba(5,5,5,0.85);

    border:
        1px solid
        rgba(255,255,255,0.2);

    color: white;

    font-size: 10px;

    letter-spacing:
        0.14em;

    transform:
        translateY(10px);

    transition:
        transform 0.4s ease;
}


/* =====================================================
   PROJECT HOVER
===================================================== */

.project-link:hover
.portfolio-image img {

    transform:
        scale(1.035);

    filter:
        saturate(1.1)
        contrast(1.05);
}


.project-link:hover
.project-overlay {

    opacity: 1;
}


.project-link:hover
.project-view {

    transform:
        translateY(0);
}
/* =====================================================
   PROJECT DETAIL PAGE
===================================================== */

.project-hero {
    position: relative;

    max-width: 1400px;

    min-height: 100vh;

    margin: 0 auto;

    padding:
        150px 40px
        100px;

    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    align-items: center;

    gap: 70px;
}


/* =====================================================
   PROJECT HERO TEXT
===================================================== */

.project-hero-text {
    position: relative;

    z-index: 2;
}


.project-label {
    display: block;

    margin-bottom: 25px;

    color:
        #159b73;

    font-size: 10px;

    letter-spacing:
        0.18em;

    font-weight: 700;
}


.project-hero-text h1 {
    margin: 0;

    font-size:
        clamp(70px, 9vw, 150px);

    line-height:
        0.78;

    letter-spacing:
        -0.075em;

    font-weight:
        900;
}


.project-hero-text h1 span {
    display: block;

    color:
        transparent;

    -webkit-text-stroke:
        1px rgba(255,255,255,0.3);

}


.project-hero-text p {
    max-width:
        430px;

    margin-top:
        45px;

    color:
        rgba(255,255,255,0.5);

    font-size:
        15px;

    line-height:
        1.7;
}


/* =====================================================
   PROJECT HERO IMAGE
===================================================== */

.project-hero-image {
    position: relative;

    overflow: hidden;

    aspect-ratio:
        4 / 3;

    border:
        1px solid
        rgba(255,255,255,0.1);

    background:
        #080808;
}


.project-hero-image::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(21,155,115,0.12),
            transparent 40%,
            rgba(143,66,200,0.18)
        );

    mix-blend-mode:
        screen;
}


.project-hero-image img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 1s
        cubic-bezier(0.2,0.8,0.2,1);
}


.project-hero-image:hover img {
    transform:
        scale(1.035);
}


/* =====================================================
   PROJECT DESCRIPTION
===================================================== */

.project-description {
    max-width:
        1200px;

    margin:
        0 auto;

    padding:
        160px 40px;

    display: grid;

    grid-template-columns:
        0.4fr 1fr;

    gap:
        80px;

    border-top:
        1px solid
        rgba(255,255,255,0.08);
}


.project-description-label {
    color:
        #8f42c8;

    font-size:
        10px;

    letter-spacing:
        0.18em;

    font-weight:
        700;
}


.project-description-text {
    max-width:
        750px;
}


.project-large-text {
    margin-top: 0;

    margin-bottom: 50px;

    font-size:
        clamp(30px, 4vw, 55px);

    line-height:
        1.05;

    letter-spacing:
        -0.04em;

    font-weight:
        700;
}


.project-description-text p:not(.project-large-text) {
    max-width:
        600px;

    color:
        rgba(255,255,255,0.5);

    font-size:
        15px;

    line-height:
        1.8;
}


/* =====================================================
   FULL PROJECT IMAGE
===================================================== */

.project-full-image {
    width:
        min(1400px, 100%);

    margin:
        0 auto;

    padding:
        0 40px;
}


.project-full-image img {
    display:
        block;

    width:
        100%;

    max-height:
        85vh;

    object-fit:
        cover;

    border:
        1px solid
        rgba(255,255,255,0.08);

    transition:
        transform 0.7s ease;
}


.project-full-image img:hover {
    transform:
        scale(1.01);
}


/* =====================================================
   PROJECT DETAILS
===================================================== */

.project-details {
    max-width:
        1200px;

    margin:
        0 auto;

    padding:
        120px 40px;

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        40px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.08);
}


.project-details div {
    display:
        flex;

    flex-direction:
        column;

    gap:
        12px;
}


.project-details span {
    color:
        rgba(255,255,255,0.3);

    font-size:
        9px;

    letter-spacing:
        0.18em;
}


.project-details strong {
    color:
        rgba(255,255,255,0.8);

    font-size:
        12px;

    letter-spacing:
        0.05em;

    font-weight:
        500;
}


/* =====================================================
   PROJECT NEXT
===================================================== */

.project-next {
    min-height:
        60vh;

    padding:
        150px 40px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    text-align:
        center;
}


.project-next span {
    margin-bottom:
        25px;

    color:
        #159b73;

    font-size:
        10px;

    letter-spacing:
        0.2em;
}


.project-next a {
    color:
        white;

    text-decoration:
        none;

    font-size:
        clamp(35px, 5vw, 75px);

    line-height:
        1;

    letter-spacing:
        -0.05em;

    font-weight:
        800;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.project-next a:hover {
    color:
        #8f42c8;

    transform:
        translateX(8px);
}


/* =====================================================
   PROJECT PAGE — MOBILE
===================================================== */

@media (max-width: 800px) {

    .project-hero {
        min-height:
            auto;

        padding:
            130px 25px
            80px;

        display:
            flex;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            50px;
    }


    .project-hero-text h1 {
        font-size:
            clamp(60px, 17vw, 100px);
    }


    .project-hero-image {
        aspect-ratio:
            4 / 3;
    }


    .project-description {
        padding:
            100px 25px;

        display:
            block;
    }


    .project-description-label {
        margin-bottom:
            50px;
    }


    .project-large-text {
        font-size:
            32px;
    }


    .project-full-image {
        padding:
            0 25px;
    }


    .project-details {
        padding:
            80px 25px;

        grid-template-columns:
            1fr;

        gap:
            35px;
    }


    .project-next {
        min-height:
            50vh;

        padding:
            100px 25px;
    }

}
/* =====================================================
   PROJECT PAGE — HEADER FIX
===================================================== */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 72px;

    padding: 0 5vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

    z-index: 1000;

    box-sizing: border-box;

    background: rgba(5, 5, 6, 0.975);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.28);
}


/* LOGO */

.site-header .site-logo,
.site-header .nav-logo {
    display: flex;

    align-items: center;

    width: 105px;

    height: auto;

    flex-shrink: 0;
}


.site-header .site-logo img,
.site-header .nav-logo img {
    display: block;

    width: 100%;

    height: auto;

    max-width: 105px;

    max-height: 35px;

    object-fit: contain;
}


/* NAVIGATION */

/* =====================================================
   CENTERED NAVIGATION
===================================================== */

.site-header nav,
.site-header .main-nav {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;

    gap: 30px;

    margin: 0;
}


/* NAV LINKS */

.site-header nav a,
.site-header .main-nav a {
    position: relative;

    display: inline-block;

    width: auto;
    height: auto;

    padding: 4px 0;
    margin: 0;

    color: rgba(255,255,255,0.45);

    text-decoration: none;

    font-size: 10px;
    line-height: 1;

    letter-spacing: 0.08em;
    font-weight: 500;

    transition:
        color 0.25s ease;
}


/* HOVER */

.site-header nav a:hover,
.site-header .main-nav a:hover {
    color: white;
}


/* ACTIVE */

.site-header nav a.active,
.site-header .main-nav a.active {
    color: white;
}


/* =====================================================
   GLOOM3D NAV ACCENT
===================================================== */

.site-header nav a::after,
.site-header .main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #20c997,
            #8f42c8
        );

    transition:
        width 0.3s ease;
}


/* Hover + active indicator */

.site-header nav a:hover::after,
.site-header nav a.active::after,
.site-header .main-nav a:hover::after,
.site-header .main-nav a.active::after {
    width: 100%;
}


/* SOCIAL LINKS */

.site-header .social-links {
    display: flex;

    align-items: center;

    gap: 18px;

    flex-shrink: 0;
}


.site-header .social-links a {
    color:
        rgba(255,255,255,0.4);

    text-decoration: none;

    font-size: 9px;

    letter-spacing:
        0.05em;

    transition:
        color 0.25s ease;
}


.site-header .social-links a:hover {
    color: white;
}


/* =====================================================
   MOBILE HEADER
===================================================== */

@media (max-width: 700px) {

    .site-header {
        height: 65px;
        padding: 0 20px;
    }


    .site-header .site-logo,
    .site-header .nav-logo {
        width: 90px;
    }


    .site-header .site-logo img,
    .site-header .nav-logo img {
        max-width: 90px;
    }


    .site-header nav,
    .site-header .main-nav {

        position: static;

        transform: none;

        display: flex;

        gap: 12px;

        margin: 0;

    }


    .site-header nav a,
    .site-header .main-nav a {

        font-size: 8px;

    }


    .site-header .social-links {
        display: none;
    }

}
/* =====================================================
   PROJECT GALLERY
===================================================== */

.project-gallery {
    width: min(1400px, 100%);

    margin: 0 auto;

    padding: 0 40px 120px;

    display: grid;

    grid-template-columns:
        1.35fr 0.65fr;

    gap: 20px;

    align-items: stretch;
}


.project-gallery img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border:
        1px solid
        rgba(255,255,255,0.08);

    transition:
        transform 0.7s
        cubic-bezier(0.2,0.8,0.2,1),
        filter 0.7s ease;
}


.project-gallery-main {
    min-height: 700px;

    overflow: hidden;
}


.project-gallery-side {
    min-height: 700px;

    overflow: hidden;
}


.project-gallery img:hover {
    transform:
        scale(1.025);

    filter:
        saturate(1.08)
        contrast(1.04);
}


/* =====================================================
   PROJECT GALLERY — MOBILE
===================================================== */

@media (max-width: 800px) {

    .project-gallery {
        padding:
            0 25px 80px;

        grid-template-columns:
            1fr;

        gap:
            15px;
    }


    .project-gallery-main,
    .project-gallery-side {
        min-height:
            auto;

        aspect-ratio:
            4 / 3;
    }

}
/* =========================================
   GLOOM EYES — MINI TRIANGLE
========================================= */

.gloom-eyes {
    position: relative;
    width: 54px;
    height: 42px;
    display: block;
    flex-shrink: 0;
}


/* Individual eye */

.gloom-eye {
    position: absolute;

    width: 15px;
    height: 19px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 50% 48%,
            #09070d 0 28%,
            #20c7a5 30% 62%,
            #081713 65% 100%
        );

    box-shadow:
        0 0 10px rgba(32, 199, 165, 0.35);

    transform: translate(-50%, -50%);

    overflow: hidden;
}


/* Tiny eye reflection */

.gloom-eye::after {
    content: "";

    position: absolute;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: white;

    top: 4px;
    left: 4px;

    opacity: 0.9;
}


/* =========================================
   TRIANGLE POSITION
========================================= */


/* TOP */

.gloom-eye:nth-child(1) {
    left: 50%;
    top: 23%;
}


/* BOTTOM LEFT */

.gloom-eye:nth-child(2) {
    left: 24%;
    top: 78%;
}


/* BOTTOM RIGHT */

.gloom-eye:nth-child(3) {
    left: 76%;
    top: 78%;

    background:
        radial-gradient(
            circle at 50% 48%,
            #09070d 0 28%,
            #9145d8 30% 62%,
            #17091f 65% 100%
        );

    box-shadow:
        0 0 10px rgba(145, 69, 216, 0.4);
}

.gloom-eyes:hover .gloom-eye {
    animation-duration: 0.7s;
}
/* =====================================================
   PROJECT PAGE
===================================================== */

.project-page {
    width: min(1200px, 90vw);

    margin: 0 auto;

    padding-top: 180px;
    padding-bottom: 180px;
}


/* =====================================================
   PROJECT INTRO
===================================================== */

.project-intro {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;

    align-items: center;

    min-height: 650px;
}


.project-intro-text {
    max-width: 520px;
}


.project-label,
.project-number {
    display: block;

    margin-bottom: 20px;

    color: #159b73;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


.project-intro h1 {
    margin: 0 0 30px;

    font-size: clamp(70px, 8vw, 130px);

    line-height: 0.82;

    letter-spacing: -0.06em;
}


.project-intro h1 span {
    display: block;

    color: transparent;

    -webkit-text-stroke:
        1px rgba(255,255,255,0.35);
}


.project-intro p,
.project-row-text p {
    max-width: 480px;

    color: rgba(255,255,255,0.58);

    font-size: 15px;

    line-height: 1.8;
}


/* =====================================================
   PROJECT IMAGES
===================================================== */

.project-image,
.project-row-image {
    overflow: hidden;

    background: #090909;
}


.project-image img,
.project-row-image img {
    display: block;

    width: 100%;

    height: auto;

    transition:
        transform 0.8s ease,
        filter 0.8s ease;
}


.project-image:hover img,
.project-row-image:hover img {
    transform: scale(1.035);

    filter:
        brightness(1.08)
        saturate(1.08);
}


/* =====================================================
   ALTERNATING ROWS
===================================================== */

.project-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 100px;

    align-items: center;

    margin-top: 180px;
}


.project-row-reverse {
    grid-template-columns:
        1fr 1fr;
}


.project-row-image {
    width: 100%;
}


.project-row-text {
    padding: 30px;
}


.project-row-text h2 {
    margin: 0 0 28px;

    font-size: clamp(50px, 5vw, 85px);

    line-height: 0.88;

    letter-spacing: -0.05em;
}


.project-row-text h2 span {
    display: block;

    color: transparent;

    background:
        linear-gradient(
            100deg,
            #159b73,
            #8f42c8
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-stroke:
        0;
}


/* =====================================================
   GALLERY
===================================================== */

.project-gallery {
    margin-top: 220px;
}


.gallery-heading {
    margin-bottom: 50px;
}


.gallery-heading > span {
    color: #159b73;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.18em;
}


.gallery-heading h2 {
    margin: 15px 0 0;

    font-size: clamp(45px, 6vw, 90px);

    line-height: 0.9;

    letter-spacing: -0.05em;
}


.gallery-heading strong {
    color: transparent;

    background:
        linear-gradient(
            90deg,
            #159b73,
            #8f42c8
        );

    -webkit-background-clip: text;
    background-clip: text;
}


.gallery-frame {
    display: grid;

    grid-template-columns:
        70px 1fr 70px;

    align-items: center;

    min-height: 600px;

    border:
        1px solid rgba(255,255,255,0.12);

    background:
        rgba(10,10,10,0.8);

    padding: 20px;
}


.gallery-image-container {
    position: relative;

    width: 100%;

    height: 600px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}


.gallery-image-container img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        opacity 0.35s ease;
}


.gallery-arrow {
    width: 48px;
    height: 48px;

    border:
        1px solid rgba(255,255,255,0.2);

    background: transparent;

    color: white;

    cursor: pointer;

    font-size: 18px;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.gallery-arrow:hover {
    background:
        linear-gradient(
            135deg,
            #159b73,
            #8f42c8
        );

    border-color: transparent;

    transform: scale(1.08);
}


.gallery-counter {
    position: absolute;

    right: 20px;
    bottom: 20px;

    padding: 8px 12px;

    background:
        rgba(0,0,0,0.7);

    color:
        rgba(255,255,255,0.7);

    font-size: 11px;

    letter-spacing: 0.15em;
}
/* =========================================
   PROJECT STORY
========================================= */

.project-story {
    width: min(1200px, 88vw);
    margin: 160px auto 0;
}

.project-story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
    margin-bottom: 180px;
}

.project-story-row.reverse {
    grid-template-columns: 1fr 1fr;
}

.project-story-text {
    max-width: 520px;
}

.dynamic-project-page .project-story-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.project-story-label {
    display: block;
    margin-bottom: 24px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: #25c99a;
}

.project-story-text h2 {
    margin: 0 0 28px;

    font-size: clamp(48px, 6vw, 90px);
    line-height: 0.88;
    font-weight: 800;
    letter-spacing: -0.045em;

    color: #f5f3f7;
}

.project-story-text h2 span {
    color: transparent;

    background: linear-gradient(
        110deg,
        #25c99a 0%,
        #8d48d8 100%
    );

    background-clip: text;
    -webkit-background-clip: text;
}

.project-story-text p {
    max-width: 430px;

    font-size: 15px;
    line-height: 1.7;

    color: rgba(255,255,255,0.55);
}

.project-story-image {
    width: 100%;
    overflow: hidden;
}

.project-story-image img {
    display: block;
    width: 100%;
    height: auto;

    transition:
        transform 0.7s cubic-bezier(.2,.8,.2,1),
        filter 0.7s ease;
}

.project-story-image:hover img {
    transform: scale(1.025);
    filter: brightness(1.08);
}


/* =========================================
   SHOWCASE
========================================= */

.project-showcase {
    width: min(1200px, 88vw);
    margin: 80px auto 180px;
}

.project-showcase-heading {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 28px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: #a34de3;
}


/* TRIANGLE EYES */

.project-showcase-heading .gloom-eyes {
    position: relative;

    width: 30px;
    height: 24px;
}

.project-showcase-heading .gloom-eye {
    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #25c99a;

    box-shadow:
        0 0 12px rgba(37,201,154,0.35);
}

.project-showcase-heading .gloom-eye:nth-child(1) {
    left: 4px;
    top: 12px;
}

.project-showcase-heading .gloom-eye:nth-child(2) {
    right: 4px;
    top: 12px;
}

.project-showcase-heading .gloom-eye:nth-child(3) {
    left: 50%;
    top: 0;

    transform: translateX(-50%);
}


/* FRAME */

.showcase-frame {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 600px;

    padding: 30px;

    border: 1px solid rgba(255,255,255,0.1);

    background:
        linear-gradient(
            135deg,
            rgba(37,201,154,0.025),
            rgba(141,72,216,0.035)
        );

    overflow: hidden;
}

.showcase-image-wrap {
    width: 100%;
    height: 600px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.showcase-image-wrap img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        opacity 0.25s ease,
        transform 0.4s ease;
}


/* ARROWS */

.showcase-arrow {
    position: absolute;
    z-index: 2;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255,255,255,0.15);

    background: rgba(0,0,0,0.65);

    color: white;

    cursor: pointer;

    font-size: 18px;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.showcase-arrow:hover {
    background: rgba(141,72,216,0.8);
    border-color: rgba(141,72,216,0.8);
}

.showcase-prev {
    left: 50px;
}

.showcase-next {
    right: 50px;
}


/* THUMBNAILS */

.showcase-navigation {
    display: flex;
    gap: 12px;

    margin-top: 20px;
}

.showcase-thumb {
    width: 100px;
    height: 70px;

    padding: 0;

    border: 1px solid rgba(255,255,255,0.12);

    background: #080808;

    overflow: hidden;

    cursor: pointer;

    opacity: 0.45;

    transition:
        opacity 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.showcase-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.showcase-thumb:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.showcase-thumb.active {
    opacity: 1;

    border-color: #9b4de3;
}


/* COUNTER */

.showcase-counter {
    margin-top: 18px;

    font-size: 10px;
    letter-spacing: 0.2em;

    color: rgba(255,255,255,0.35);
}

#showcase-current {
    color: #25c99a;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {

    .project-story {
        margin-top: 100px;
    }

    .project-story-row,
    .project-story-row.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 110px;
    }

    .project-story-row.reverse .project-story-image {
        order: 1;
    }

    .project-story-row.reverse .project-story-text {
        order: 2;
    }

    .project-story-text h2 {
        font-size: 54px;
    }

    .showcase-frame {
        min-height: 350px;
        padding: 15px;
    }

    .showcase-image-wrap {
        height: 350px;
    }

    .showcase-prev {
        left: 20px;
    }

    .showcase-next {
        right: 20px;
    }

    .showcase-thumb {
        width: 75px;
        height: 55px;
    }
}
/* =========================================
   SCROLL MOTION
========================================= */

.project-story-image {
    overflow: hidden;
    will-change: transform;
}

.project-story-image img {
    will-change: transform;
    transform: scale(1.04);
}

.project-story-row {
    will-change: transform;
}
/* =========================================
   SCROLLING EYES
========================================= */

.project-story .gloom-eye {
    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #25c99a;

    box-shadow:
        0 0 10px rgba(37, 201, 154, 0.45);

    transition:
        transform 0.25s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}


/* LEFT EYE */

.project-story .gloom-eye:nth-child(1) {
    left: 3px;
    top: 12px;
}


/* PURPLE MIDDLE EYE */

.project-story .gloom-eye:nth-child(2) {
    right: 3px;
    top: 12px;

    width: 8px;
    height: 8px;

    background: #8f42c8;

    box-shadow:
        0 0 14px rgba(143, 66, 200, 0.55);
}


/* TOP EYE */

.project-story .gloom-eye:nth-child(3) {
    left: 50%;
    top: 0;

    background: #25c99a;

    transform: translateX(-50%);
}

/* =====================================================
   PROJECT GALLERY — IMAGE TRANSITION
===================================================== */

.project-gallery-main img {
    opacity: 1;
    transition:
        opacity 0.35s ease,
        transform 0.45s ease;
}

.project-gallery-main img.gallery-changing {
    opacity: 0;
    transform: scale(0.985);
}

/* =====================================================
   PROJECT GALLERY — THUMBNAILS
===================================================== */

.project-gallery-thumb {
    position: relative;

    cursor: pointer;

    opacity: 0.45;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        filter 0.25s ease;
}

.project-gallery-thumb:hover {
    opacity: 0.8;

    transform: translateY(-3px);
}

.project-gallery-thumb.active {
    opacity: 1;

    transform: translateY(-3px);
}

.project-gallery-thumb.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -7px;

    height: 2px;

    background: linear-gradient(
        90deg,
        #25c7a3,
        #8e45d8
    );

    box-shadow:
        0 0 8px rgba(37, 199, 163, 0.4);
}

/* =====================================================
   GLOOM3D — SHOWCASE THUMBNAILS
===================================================== */

.showcase-thumb {
    position: relative;

    cursor: pointer;

    opacity: 0.45;

    transform: translateY(0);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        filter 0.25s ease;
}


/* Hover */

.showcase-thumb:hover {
    opacity: 0.8;

    transform: translateY(-3px);
}


/* Currently selected image */

.showcase-thumb.active {
    opacity: 1;

    transform: translateY(-3px);

    filter:
        drop-shadow(
            0 0 8px rgba(37, 199, 163, 0.25)
        );
}


/* Green → purple indicator */

.showcase-thumb.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -8px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            #25c7a3,
            #8e45d8
        );

    box-shadow:
        0 0 8px rgba(37, 199, 163, 0.35);
}

/* =====================================================
   GLOOM3D — MOBILE PROJECT LAYOUT
===================================================== */

@media (max-width: 800px) {

    /* -----------------------------------------
       PROJECT HEADER
    ----------------------------------------- */

    .project-hero {
        padding-left: 6vw;
        padding-right: 6vw;
    }


    /* -----------------------------------------
       PROJECT CONTENT
    ----------------------------------------- */

    .project-content {
        padding-left: 6vw;
        padding-right: 6vw;
    }


    /* -----------------------------------------
       SHOWCASE
    ----------------------------------------- */

    .project-showcase {
        padding-left: 6vw;
        padding-right: 6vw;
    }


    .showcase-frame {
        grid-template-columns: 40px 1fr 40px;

        gap: 8px;
    }


    .showcase-arrow {
        width: 40px;
        height: 40px;

        font-size: 1rem;
    }


    .showcase-image-wrap {
        width: 100%;
    }


    /* -----------------------------------------
       THUMBNAILS
    ----------------------------------------- */

    .showcase-thumbnails {
        gap: 10px;

        margin-top: 18px;
    }


    .showcase-thumb {
        width: 70px;
        height: 55px;
    }


    /* -----------------------------------------
       TEXT
    ----------------------------------------- */

    .project-title {
        font-size: clamp(
            2.2rem,
            10vw,
            4rem
        );
    }


    /* -----------------------------------------
       PROJECT SECTIONS
    ----------------------------------------- */

    .project-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

}

/* =====================================================
   CONTACT PAGE
===================================================== */

.contact-page {
    min-height: 100vh;
}

.contact-hero {
    width: min(100% - 80px, var(--max-width));
    min-height: 430px;

    margin: 0 auto;
    padding: 90px 0 20px;

    position: relative;
    display: flex;
    align-items: center;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    width: min(600px, 56%);
}

/* =====================================================
   GLOOM3D — IMAGE OBJECT TREATMENT
===================================================== */

.portfolio-image {
    isolation: isolate;

    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(32, 167, 123, 0.035),
        0 0 40px rgba(155, 67, 209, 0.045);

    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.project-hero-image,
.project-story-image {
    border: 1px solid rgba(255, 255, 255, 0.09);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.3),
        0 0 26px rgba(32, 167, 123, 0.025),
        0 0 36px rgba(155, 67, 209, 0.035);
}

.showcase-frame {
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.34),
        0 0 34px rgba(32, 167, 123, 0.025),
        0 0 42px rgba(155, 67, 209, 0.035);
}

.showcase-image-wrap {
    background: rgba(5, 5, 6, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.055);

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.015),
        inset 0 0 36px rgba(155, 67, 209, 0.035);
}

@media (hover: hover) and (pointer: fine) {
    .project-link:hover .portfolio-image {
        transform: translateY(-3px);

        box-shadow:
            0 20px 38px rgba(0, 0, 0, 0.38),
            0 0 32px rgba(32, 167, 123, 0.045),
            0 0 44px rgba(155, 67, 209, 0.055);
    }

    .project-link:hover .portfolio-image img {
        transform: scale(1.012);

        filter:
            saturate(1.04)
            contrast(1.02);
    }
}

@media (hover: none) {
    .project-link:hover .portfolio-image,
    .project-link:hover .portfolio-image img {
        transform: none;
    }

    .project-link:hover .portfolio-image img {
        filter: none;
    }
}

.contact-title {
    font-size: clamp(36px, 4vw, 64px);
    line-height: 0.82;
    font-weight: 800;
    letter-spacing: -0.07em;
}

.contact-title span {
    display: block;
}

.contact-title .contact-title-accent {
    color: transparent;
    background: linear-gradient(100deg, var(--green-light), var(--purple-light));
    -webkit-background-clip: text;
    background-clip: text;
}

.contact-intro {
    max-width: 510px;
    margin-top: 22px;

    color: var(--grey);
    font-size: 16px;
    line-height: 1.75;
}

.contact-mascot {
    position: absolute;
    z-index: 1;
    width: min(46vw, 600px);
    max-width: 48%;
    right: 0;
    bottom: 10px;

    pointer-events: none;
}

.contact-mascot .mascot-glow {
    width: 42%;
    height: 42%;
    left: 31%;
    top: 27%;
}

.contact-mascot-video {
    display: block;
    width: 100%;
    height: auto;

    object-fit: contain;
    object-position: center;

    mix-blend-mode: screen;
    animation: mascot-float 6s ease-in-out infinite;
}

.contact-content {
    width: min(100% - 80px, 1200px);
    margin: 0 auto;
    padding: 42px 0 80px;

    display: grid;
    grid-template-columns: minmax(230px, 0.6fr) minmax(0, 1fr);
    gap: clamp(60px, 10vw, 160px);

    border-top: 1px solid var(--border);
}

.contact-detail-list {
    display: grid;
    gap: 22px;
}

.contact-detail {
    display: grid;
    gap: 8px;
}

.contact-detail span,
.contact-field label {
    color: var(--grey-dark);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-detail p,
.contact-detail a {
    width: fit-content;
    color: var(--white);
    font-size: 15px;
    letter-spacing: 0.02em;
}

.contact-detail a {
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-detail a:hover {
    color: var(--green-light);
    transform: translateX(4px);
}

.contact-form {
    position: relative;
    display: grid;
    gap: 24px;
    padding: clamp(28px, 4vw, 50px);

    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
}

.contact-form::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 1px;

    background: linear-gradient(90deg, var(--green), var(--purple));
    box-shadow: 0 0 14px rgba(155, 67, 209, 0.3);
}

.contact-field {
    display: grid;
    gap: 12px;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 15px 0;

    color: var(--white);
    font: inherit;
    font-size: 15px;
    line-height: 1.5;

    resize: vertical;
    outline: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--grey-dark);
    border-radius: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-field textarea {
    min-height: 150px;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-bottom-color: var(--green-light);
    box-shadow: 0 8px 14px -13px var(--purple-light);
}

.contact-submit {
    justify-self: start;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .contact-hero,
    .contact-content {
        width: min(100% - 50px, var(--max-width));
    }

    .contact-hero {
        min-height: 450px;
        padding-top: 90px;
    }

    .contact-mascot {
        width: min(48vw, 480px);
        max-width: 48%;
        right: 0;
        bottom: 10px;
        opacity: 0.72;
    }
}

@media (max-width: 800px) {
    .contact-hero {
        min-height: auto;
        padding: 85px 0 20px;
        display: block;
    }

    .contact-hero-content {
        width: 100%;
    }

    .contact-title {
        font-size: clamp(38px, 7vw, 52px);
    }

    .contact-mascot {
        position: relative;
        width: min(100%, 500px);
        max-width: 100%;
        right: auto;
        bottom: auto;
        margin: 22px auto 0;
        opacity: 0.82;
    }

    .contact-content {
        padding: 40px 0 65px;
        grid-template-columns: 1fr;
        gap: 45px;
    }
}

@media (max-width: 500px) {
    .contact-hero,
    .contact-content {
        width: min(100% - 30px, var(--max-width));
    }

    .contact-hero {
        padding-top: 85px;
    }

    .contact-intro {
        margin-top: 28px;
        font-size: 15px;
    }

    .contact-mascot {
        margin-top: 18px;
    }

    .contact-form {
        padding: 24px 22px;
    }

    .contact-submit {
        width: 100%;
        justify-content: space-between;
    }
}

/* =====================================================
   PORTFOLIO — PROJECT IMAGE TREATMENT
===================================================== */

.portfolio-image {
    border-color: rgba(255, 255, 255, 0.12);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.38);

    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.portfolio-image img {
    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .project-link:hover .portfolio-image {
        transform: translateY(-3px);
        border-color: rgba(255, 255, 255, 0.18);

        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.44);
    }

    .project-link:hover .portfolio-image img {
        transform: scale(1.01);
        filter: none;
    }
}

@media (hover: none) {
    .project-link:hover .portfolio-image {
        transform: none;
        border-color: rgba(255, 255, 255, 0.12);

        box-shadow:
            0 14px 30px rgba(0, 0, 0, 0.38);
    }

    .project-link:hover .portfolio-image img {
        transform: none;
        filter: none;
    }
}

/* =====================================================
   PORTFOLIO — ARCHIVE PROJECT ENTRY
===================================================== */

.archive-project-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;

    margin-bottom: 12px;
}

.archive-project-primary,
.archive-project-type {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.archive-project-primary {
    color: var(--green-light);

    transition: color 0.35s ease;
}

.archive-project-type {
    color: rgba(255, 255, 255, 0.35);
}

.archive-project-image {
    border-color: rgba(255, 255, 255, 0.14);

    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.4);
}

.archive-project .portfolio-project-info {
    position: relative;
}

.archive-project .portfolio-project-info::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;

    width: 72px;
    height: 1px;

    background: linear-gradient(90deg, var(--green-light), var(--purple-light));
    opacity: 0.3;

    transition: opacity 0.35s ease;
}

.archive-project .portfolio-project-info p {
    transition: color 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .archive-project .project-link:hover .archive-project-image {
        transform: translateY(-3px);
        border-color: rgba(255, 255, 255, 0.2);

        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.46);
    }

    .archive-project .project-link:hover .archive-project-image img {
        transform: scale(1.012);
    }

    .archive-project .project-link:hover .archive-project-primary {
        color: #d9fff1;
    }

    .archive-project .project-link:hover .portfolio-project-info::after {
        opacity: 0.65;
    }

    .archive-project .project-link:hover .portfolio-project-info p {
        color: rgba(255, 255, 255, 0.5);
    }
}

@media (hover: none) {
    .archive-project .project-link:hover .archive-project-image,
    .archive-project .project-link:hover .archive-project-image img {
        transform: none;
    }
}

/* =====================================================
   EGMOND — ARCHIVE IMAGE PRESENTATION
===================================================== */

.egmond-project-page .project-story-image {
    position: relative;

    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #080808;

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(32, 167, 123, 0.02),
        0 0 32px rgba(155, 67, 209, 0.03);

    transition:
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s ease;
}

.egmond-story-caption {
    position: absolute;
    z-index: 2;
    left: 14px;
    bottom: 14px;

    max-width: calc(100% - 28px);

    color: rgba(235, 255, 247, 0.78);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.45;
    text-transform: uppercase;

    pointer-events: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);

    transition: color 0.4s ease;
}

.egmond-project-page .showcase-frame {
    border-color: rgba(255, 255, 255, 0.12);

    background:
        linear-gradient(
            135deg,
            rgba(37, 201, 154, 0.035),
            rgba(141, 72, 216, 0.05)
        );

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.38),
        0 0 32px rgba(32, 167, 123, 0.025),
        0 0 42px rgba(155, 67, 209, 0.035);

    transition:
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s ease;
}

.egmond-project-page .showcase-image-wrap {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 5, 6, 0.55);
}

@media (hover: hover) and (pointer: fine) {
    .egmond-project-page .project-story-image:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.15);

        box-shadow:
            0 18px 38px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(32, 167, 123, 0.03),
            0 0 38px rgba(155, 67, 209, 0.04);
    }

    .egmond-project-page .project-story-image:hover .egmond-story-caption {
        color: #d9fff1;
    }

    .egmond-project-page .showcase-frame:hover {
        transform: translateY(-2px) scale(1.005);
        border-color: rgba(255, 255, 255, 0.16);

        box-shadow:
            0 22px 44px rgba(0, 0, 0, 0.42),
            0 0 36px rgba(32, 167, 123, 0.035),
            0 0 46px rgba(155, 67, 209, 0.045);
    }
}

@media (max-width: 800px) {
    .egmond-story-caption {
        left: 10px;
        bottom: 10px;

        max-width: calc(100% - 20px);
        font-size: 8px;
    }
}

/* =====================================================
   GLOOM3D — STAGED REVEALS
===================================================== */

.reveal {
    opacity: 0;
    translate: 0 16px;

    transition:
        opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
        translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    translate: 0;
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.visible {
        opacity: 1;
        translate: none;
        transition: none;
    }
}

/* =====================================================
   GLOOM3D — CONTACT FORM AND HOME CTA REFINEMENTS
===================================================== */

.contact-cta {
    padding-top: 120px;
    padding-bottom: 105px;
}

.contact-cta h2 {
    max-width: 1080px;
    margin: 0 auto;
    font-size: clamp(52px, 7.7vw, 112px);
}

.contact-cta .section-label {
    margin-bottom: 22px;
}

.contact-cta h2 span {
    margin-top: 16px;
}

.contact-cta .cta-description {
    margin: 26px auto;
}

.contact-cta .cta-squid {
    width: 360px;
    right: -90px;
}

@media (max-width: 900px) {
    .contact-cta {
        padding-top: 90px;
        padding-bottom: 80px;
    }

    .contact-cta .cta-squid {
        width: 250px;
        right: -80px;
    }
}

@media (max-width: 500px) {
    .contact-cta h2 {
        max-width: 100%;
        font-size: clamp(48px, 15vw, 72px);
    }

    .contact-cta h2 span {
        margin-top: 10px;
    }

    .contact-cta .cta-description {
        margin: 22px auto;
    }
}

/* =====================================================
   GLOOM3D — LOGO ENERGY
===================================================== */

.site-header .site-logo img,
.site-header .nav-logo img {
    filter:
        drop-shadow(0 0 3px var(--energy-green-glow))
        drop-shadow(0 0 4px var(--energy-purple-glow));
    transition: filter 0.38s ease;
}

@media (hover: hover) and (pointer: fine) {
    .site-header .site-logo:hover img,
    .site-header .nav-logo:hover img {
        filter:
            brightness(1.06)
            drop-shadow(0 0 4px var(--energy-green-glow-active))
            drop-shadow(0 0 6px var(--energy-purple-glow-active));
    }
}

/* =====================================================
   GLOOM3D — EGMOND PAGE TRANSITION
===================================================== */

body.egmond-transition-ready::after {
    content: "";
    position: fixed;
    z-index: 1000;
    inset: 0;

    pointer-events: none;
    opacity: 0;
    background: rgba(5, 5, 6, 0.92);
    transition: opacity 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.egmond-transition-ready.egmond-transitioning::after {
    opacity: 1;
}

.egmond-project-page {
    animation: egmond-page-entry 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes egmond-page-entry {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.egmond-transition-ready::after {
        transition: none;
    }

    .egmond-project-page {
        animation: none;
    }
}

/* =====================================================
   GLOOM3D — ENERGY LANGUAGE
===================================================== */

.button {
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.site-header nav a.active::after,
.site-header .main-nav a.active::after {
    background: var(--energy-gradient);
    box-shadow: 0 0 5px var(--energy-green-glow), 0 0 7px var(--energy-purple-glow);
}

@media (hover: hover) and (pointer: fine) {
    .button-primary:hover {
        box-shadow: var(--energy-glow-subtle);
    }

    .button-secondary:hover {
        border-color: rgba(193, 123, 234, 0.38);
        box-shadow: var(--energy-glow-subtle);
    }

    .project-link:hover .portfolio-image {
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.44),
            var(--energy-glow-subtle);
    }

    .archive-project .project-link:hover .archive-project-image {
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.46),
            var(--energy-glow-subtle);
    }

    .showcase-arrow:hover {
        border-color: rgba(193, 123, 234, 0.68);
        box-shadow: var(--energy-glow-subtle);
    }

    .showcase-thumb:hover {
        border-color: rgba(193, 123, 234, 0.38);
        box-shadow: var(--energy-glow-subtle);
    }

    .showcase-thumb.active {
        border-color: var(--purple-light);
        box-shadow: var(--energy-glow-subtle);
    }

    .contact-detail a:hover,
    .site-header .social-links a:hover,
    .footer-socials a:hover {
        color: var(--green-light);
        text-shadow: 0 0 7px var(--energy-green-glow), 0 0 9px var(--energy-purple-glow);
    }
}

@media (hover: none) {
    .showcase-arrow:hover {
        background: rgba(0, 0, 0, 0.65);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: none;
    }

    .showcase-thumb:not(.active):hover {
        opacity: 0.45;
        transform: translateY(0);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }
}

/* =====================================================
   EGMOND — MINI EXHIBITION RHYTHM
===================================================== */

.project-exhibition-marker {
    display: flex;
    align-items: center;
    gap: 16px;

    color: var(--green-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.project-exhibition-marker::after {
    content: "";
    flex: 1;
    min-width: 36px;
    height: 1px;

    background: var(--energy-gradient);
    opacity: 0.32;
}

.egmond-project-page .project-story {
    margin: 0 auto;
    padding-top: 40px;
}

.egmond-project-page .project-story > .project-exhibition-marker {
    margin-bottom: 72px;
}

.egmond-project-page .project-story-row:last-child {
    margin-bottom: 110px;
}

.egmond-project-page .project-showcase {
    width: min(1320px, 92vw);
    margin: 0 auto 100px;
}

.egmond-project-page .project-showcase-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 32px;
}

.egmond-project-page .project-showcase-heading > span:last-child {
    color: var(--purple-light);
}

.egmond-project-page .egmond-story-caption {
    padding: 8px 10px;
    border-left: 1px solid var(--green-light);
    background: rgba(5, 5, 6, 0.58);
}

.project-technical-record {
    position: relative;
    padding: 72px 40px 110px;
    row-gap: 32px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-technical-record > .project-exhibition-marker {
    grid-column: 1 / -1;
}

.project-technical-record strong {
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 800px) {
    .egmond-project-page .project-story {
        padding-top: 0;
    }

    .egmond-project-page .project-story > .project-exhibition-marker {
        margin-bottom: 48px;
    }

    .egmond-project-page .project-story-row:last-child {
        margin-bottom: 72px;
    }

    .egmond-project-page .project-showcase {
        width: min(1200px, 88vw);
        margin-bottom: 70px;
    }

    .project-technical-record {
        padding: 64px 25px 80px;
        row-gap: 28px;
    }
}

/* =====================================================
   GLOOM3D — SIGNATURE / ARCHIVE STAMP
===================================================== */

.home-signature {
    display: flex;
    justify-content: center;
    padding: 84px 40px 34px;
}

.home-signature img {
    display: block;
    width: clamp(120px, 11vw, 160px);
    height: auto;

    filter:
        drop-shadow(0 0 3px var(--energy-green-glow))
        drop-shadow(0 0 4px var(--energy-purple-glow));
    transition: filter 0.38s ease;
}

.project-archive-stamp {
    width: min(1200px, 88vw);
    margin: 0 auto;
    padding: 84px 40px 130px;

    display: grid;
    justify-items: center;
    gap: 26px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.project-archive-stamp-logo {
    display: block;
    width: clamp(96px, 9vw, 118px);
    height: auto;
}

.project-logo-energize.reveal {
    opacity: 0.42;
    translate: none;
    filter: grayscale(0.9) saturate(0.35) brightness(0.7);
    transition:
        opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-logo-energize.reveal.visible {
    opacity: 1;
    filter:
        drop-shadow(0 0 4px var(--energy-green-glow-active))
        drop-shadow(0 0 6px var(--energy-purple-glow-active));
}

.project-archive-stamp-text {
    display: grid;
    justify-items: center;
    gap: 9px;
}

.project-archive-stamp-text::before {
    content: "";
    width: 42px;
    height: 1px;
    margin-bottom: 6px;

    background: var(--energy-gradient);
    opacity: 0.4;
}

.project-archive-stamp-text span,
.project-archive-stamp-text strong {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.project-archive-stamp-text span {
    color: var(--grey);
}

.project-archive-stamp-text strong {
    color: rgba(255, 255, 255, 0.72);
}

@media (hover: hover) and (pointer: fine) {
    .home-signature:hover img {
        filter:
            brightness(1.06)
            drop-shadow(0 0 4px var(--energy-green-glow-active))
            drop-shadow(0 0 6px var(--energy-purple-glow-active));
    }

    .project-logo-energize.reveal.visible:hover {
        filter:
            brightness(1.04)
            drop-shadow(0 0 5px var(--energy-green-glow-active))
            drop-shadow(0 0 7px var(--energy-purple-glow-active));
    }
}

@media (max-width: 800px) {
    .home-signature {
        padding: 64px 25px 24px;
    }

    .home-signature img {
        width: 120px;
    }

    .project-archive-stamp {
        padding: 64px 25px 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-logo-energize.reveal,
    .project-logo-energize.reveal.visible {
        opacity: 1;
        translate: none;
        filter:
            drop-shadow(0 0 4px var(--energy-green-glow-active))
            drop-shadow(0 0 6px var(--energy-purple-glow-active));
        transition: none;
    }
}

/* =====================================================
   GLOOM3D — TITLE COLOUR SYSTEM
===================================================== */

.title-outline {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}

.title-primary {
    color: var(--white);
}

.hero h1 .title-primary {
    color: var(--white);
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
}

.title-accent {
    color: transparent;
    background: var(--energy-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
}

.hero h1 .title-accent {
    -webkit-text-stroke: 0;
}

.portfolio-title h1 .title-primary {
    display: block;
}

.portfolio-title h1 .title-primary.title-inline,
.portfolio-title h1 .title-accent {
    display: inline;
}

.contact-title-payoff {
    display: block;
}

.contact-title .contact-title-payoff .title-primary,
.contact-title .contact-title-payoff .title-accent {
    display: inline;
}

/* Final polish — isolated overrides, November 2026 */
:root { --grey: #b4afb9; --grey-dark: #89838f; }
.site-header nav a, .site-header .main-nav a { color: #b4afb9; font-size: 12px; }
.site-header .social-links a, .footer-socials a, .site-footer p { color: #aaa5af; font-size: 11px; }
.site-header .site-logo img, .site-header .nav-logo img, .home-signature img { filter: brightness(1.25) drop-shadow(0 0 3px var(--energy-green-glow)); }
.contact-cta h2 .title-accent, .portfolio-end h2 .title-accent { background: var(--energy-gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0; line-height: 1; }
.project-info > p, .archive-project-type, .archive-project .portfolio-project-info p { color: #aaa5af; font-size: 11px; }
.project-info h3 { text-transform: uppercase; font-weight: 650; }
.archive-project-primary { font-size: 11px; }
.archive-project .portfolio-project-info h2 { font-size: clamp(20px, 2vw, 28px); }
.project-view { font-size: 12px; }
.portfolio-empty { text-align: center; padding: 65px 15px; border-bottom: 1px solid var(--border); }
.portfolio-empty[hidden] { display: none; }
.portfolio-empty h2 { font-size: clamp(25px, 4vw, 48px); margin: 15px 0; }
.portfolio-empty p:not(.section-label) { color: var(--grey); margin-bottom: 24px; }
.contact-detail span, .contact-field label { color: #b4afb9; font-size: 12px; }
.contact-detail p, .contact-detail a { font-size: 17px; }
.contact-form { background: rgba(12, 11, 15, .92); border-color: #34303a; }
.contact-field input, .contact-field textarea { border-bottom-color: #77717e; }
.contact-field input:focus, .contact-field textarea:focus { border-bottom-color: var(--purple-light); }
.contact-form-note { color: var(--grey); font-size: 14px; line-height: 1.5; }
.contact-submit:disabled { opacity: .55; cursor: not-allowed; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green-light); outline-offset: 4px; }
@media (min-width: 801px) {
 .intro.section { padding-bottom: 115px; }
 .featured.section { padding-top: 125px; }
 .portfolio-hero { min-height: 56vh; padding-top: 120px; padding-bottom: 55px; }
 .portfolio-mascot { bottom: 65px; right: 0; }
 .portfolio-section { padding-top: 55px; }
 .contact-mascot { width: min(53vw, 690px); max-width: 55%; }
}
@media (min-width: 701px) {
 .site-header .site-logo, .site-header .nav-logo { width: 125px; }
 .site-header .site-logo img, .site-header .nav-logo img { max-width: 125px; }
}
@media (max-width: 700px) {
 .site-header nav a, .site-header .main-nav a { font-size: 11px; }
 .contact-cta h2, .portfolio-end h2 { font-size: clamp(34px, 10vw, 65px); }
 .contact-title { font-size: clamp(32px, 9vw, 52px); }
}

/* Refined project framing and compact homepage */
.project-image,
.archive-project-image,
.dynamic-project-page .project-hero-image,
.dynamic-project-page .project-story-image,
.dynamic-project-page .showcase-frame,
.dynamic-project-page .showcase-image-wrap,
.dynamic-project-page .showcase-thumb,
.dynamic-project-page .showcase-arrow,
.project-view {
    border-color: rgba(255, 255, 255, 0.06);
}

.project-image,
.archive-project-image,
.dynamic-project-page .project-hero-image,
.dynamic-project-page .project-story-image,
.dynamic-project-page .showcase-frame,
.dynamic-project-page .showcase-image-wrap,
.dynamic-project-page .showcase-thumb {
    background: #09090b;
}

.dynamic-project-page .project-hero-image::before {
    opacity: 0;
}

.archive-project .project-overlay {
    background: transparent;
}

.dynamic-project-page .showcase-thumb.active {
    border-color: rgba(155, 67, 209, 0.62);
}

.featured.section {
    padding-top: 88px;
    padding-bottom: 76px;
}

.intro.section {
    padding-top: 52px;
    padding-bottom: 66px;
}

.intro-content {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    max-width: 1080px;
}

.intro-symbol {
    width: 78px;
}

.intro h2 {
    margin-bottom: 16px;
    font-size: clamp(36px, 4vw, 56px);
}

.intro .body-text {
    max-width: 680px;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.7;
}

.contact-cta.section {
    padding-top: 68px;
    padding-bottom: 62px;
}

.contact-cta .cta-description {
    margin-top: 18px;
    margin-bottom: 20px;
}

.home-signature {
    padding-top: 54px;
    padding-bottom: 26px;
}

.featured .section-heading {
    align-items: flex-end;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 32px;
}

.featured .section-label {
    margin-bottom: 12px;
}

.featured h2 {
    margin-bottom: 0;
    font-size: 62px;
    line-height: 0.94;
}

.featured .text-link {
    margin-bottom: 5px;
    white-space: nowrap;
}

.home-page .featured .project-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    align-items: stretch;
    gap: 22px 26px;
}

.home-page .featured .project-grid[data-project-count="1"] {
    grid-template-columns: minmax(0, 1fr);
}

.home-page .featured .project-grid[data-project-count="2"] {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.home-page .featured .project-card {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.home-page .featured .project-card-primary {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-page .featured .project-grid[data-project-count="1"] .project-card-primary,
.home-page .featured .project-grid[data-project-count="2"] .project-card-primary {
    grid-row: auto;
}

.home-page .featured .project-grid[data-project-count="3"] .project-card-primary {
    grid-row: span 2;
}

.home-page .featured .project-grid[data-project-count="4"] .project-card-primary {
    grid-row: span 3;
}

.home-page .featured .project-card .project-image {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #09090b;
    transform: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-page .featured .project-card .project-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-page .featured .project-card-primary .project-image {
    flex: 1 1 auto;
    min-height: 300px;
    aspect-ratio: 1.18 / 1;
}

.home-page .featured .project-grid[data-project-count="1"] .project-card-primary .project-image {
    min-height: 0;
    aspect-ratio: 2 / 1;
}

.home-page .featured .project-grid[data-project-count="2"] .project-card-primary .project-image {
    min-height: 0;
    aspect-ratio: 1.2 / 1;
}

.home-page .featured .project-card:not(.project-card-primary) .project-image {
    aspect-ratio: 2.1 / 1;
}

.home-page .featured .project-grid[data-project-count="2"] .project-card:not(.project-card-primary) .project-image {
    aspect-ratio: 1.45 / 1;
}

.home-page .featured .project-image::after {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    content: "";
    background: linear-gradient(90deg, var(--green-light), var(--purple-light));
    transition: width 0.3s ease;
    pointer-events: none;
}

.project-view-indicator {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 7, 9, 0.88);
    color: rgba(255, 255, 255, 0.86);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.13em;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.featured .project-info {
    min-width: 0;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0 2px;
}

.featured .project-info > div {
    min-width: 0;
}

.featured .project-info h3 {
    font-size: 18px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.featured .project-number {
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.featured .project-info > p {
    max-width: 44%;
    white-space: normal;
    text-align: right;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.home-page .featured .project-card:focus-visible .project-image {
    border-color: var(--green-light);
}

@media (hover: hover) and (pointer: fine) {
    .home-page .featured .project-card:hover .project-image {
        border-color: rgba(37, 201, 154, 0.42);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    }

    .home-page .featured .project-card:hover .project-image > img[data-home-image-fit="cover"] {
        transform: scale(1.035);
    }

    .home-page .featured .project-card:hover .project-image::after,
    .home-page .featured .project-card:focus-visible .project-image::after {
        width: 100%;
    }

    .home-page .featured .project-card:hover .project-view-indicator,
    .home-page .featured .project-card:focus-visible .project-view-indicator {
        border-color: rgba(37, 201, 154, 0.38);
        color: #ffffff;
    }

    .home-page .featured .project-card:hover .project-info h3 {
        color: #d9fff1;
    }

    .home-page .featured .project-card:hover .project-number {
        color: var(--purple-light);
    }

    .home-page .featured .project-card:hover .project-info > p {
        color: var(--grey);
    }

    .archive-project .project-link:hover .archive-project-image {
        border-color: rgba(37, 201, 154, 0.34);
    }

    .archive-project .project-link:hover .archive-project-image img {
        transform: scale(1.012);
    }

    .dynamic-project-page .project-story-image:hover,
    .dynamic-project-page .showcase-frame:hover {
        border-color: rgba(37, 201, 154, 0.28);
    }
}

.archive-project .project-link .archive-project-image {
    border-color: rgba(255, 255, 255, 0.06);
    background: #09090b;
}

.dynamic-project-page .project-story-image,
.dynamic-project-page .project-hero-image,
.dynamic-project-page .showcase-frame,
.dynamic-project-page .showcase-image-wrap,
.dynamic-project-page .showcase-thumb,
.dynamic-project-page .showcase-arrow {
    border-color: rgba(255, 255, 255, 0.06);
}

.dynamic-project-page .project-story-image:hover img {
    filter: none;
}

@media (min-width: 701px) and (max-width: 900px) {
    .home-page .featured .project-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 18px;
    }

    .home-page .featured .project-grid[data-project-count="2"] {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    }

    .featured.section {
        padding-top: 68px;
        padding-bottom: 62px;
    }

    .intro.section {
        padding-top: 52px;
        padding-bottom: 58px;
    }

    .contact-cta.section {
        padding-top: 58px;
        padding-bottom: 52px;
    }

    .featured h2 {
        font-size: 48px;
    }

    .featured .section-heading {
        margin-bottom: 26px;
    }

    .home-page .featured .project-card-primary .project-image {
        min-height: 250px;
    }

    .intro-content {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 26px;
        align-items: center;
    }

    .intro-symbol {
        width: 68px;
    }

    .intro h2 {
        font-size: 40px;
    }
}

@media (max-width: 700px) {
    .featured.section {
        padding-top: 54px;
        padding-bottom: 48px;
    }

    .intro.section {
        padding-top: 48px;
        padding-bottom: 54px;
    }

    .contact-cta.section {
        padding-top: 54px;
        padding-bottom: 48px;
    }

    .home-signature {
        padding-top: 42px;
        padding-bottom: 22px;
    }

    .featured .section-heading {
        gap: 14px;
        margin-bottom: 22px;
    }

    .featured h2 {
        font-size: 36px;
    }

    .featured .section-label {
        font-size: 9px;
    }

    .featured .text-link {
        max-width: 128px;
        white-space: normal;
        text-align: right;
        font-size: 9px;
        line-height: 1.5;
    }

    .home-page .featured .project-grid,
    .home-page .featured .project-grid[data-project-count="2"] {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .home-page .featured .project-grid .project-card-primary {
        display: block;
        grid-row: auto;
    }

    .home-page .featured .project-card-primary .project-image,
    .home-page .featured .project-grid[data-project-count="1"] .project-card-primary .project-image,
    .home-page .featured .project-grid[data-project-count="2"] .project-card-primary .project-image {
        min-height: 0;
        aspect-ratio: 1.3 / 1;
    }

    .home-page .featured .project-card:not(.project-card-primary) .project-image,
    .home-page .featured .project-grid[data-project-count="2"] .project-card:not(.project-card-primary) .project-image {
        aspect-ratio: 1.5 / 1;
    }

    .featured .project-info {
        flex-direction: row;
        gap: 12px;
        padding-top: 10px;
    }

    .featured .project-info h3 {
        font-size: 16px;
    }

    .featured .project-info > p {
        max-width: 45%;
        font-size: 9px;
    }

    .intro-content {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 18px;
        align-items: start;
    }

    .intro-symbol {
        width: 48px;
    }

    .intro .section-number {
        margin-bottom: 16px;
    }

    .intro h2 {
        margin-bottom: 12px;
        font-size: 30px;
        line-height: 1;
    }

    .intro .body-text {
        font-size: 14px;
        line-height: 1.65;
    }
}

@media (max-width: 390px) {
    .featured .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .featured .text-link {
        max-width: none;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .featured .project-card .project-image,
    .home-page .featured .project-card .project-image > img,
    .home-page .featured .project-image::after,
    .project-view-indicator,
    .featured .project-info h3,
    .featured .project-number,
    .featured .project-info > p {
        transition: none;
    }

    .home-page .featured .project-card:hover .project-image > img[data-home-image-fit="cover"],
    .archive-project .project-link:hover .archive-project-image img {
        transform: none;
    }
}

html.home-page {
    overflow-x: clip;
}

.contact-form-status {
    margin: 0;
    color: var(--grey);
    font-size: 14px;
    line-height: 1.55;
}

.contact-form-status strong {
    display: block;
    margin-bottom: 5px;
    color: var(--green-light);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.contact-form-status[data-state="error"] {
    color: #e4c4ef;
}

.contact-form-status a {
    color: var(--green-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-form-note {
    margin: 0;
    color: var(--grey-dark);
    font-size: 12px;
    line-height: 1.55;
}
