@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../Resources/fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../Resources/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../Resources/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../Resources/fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Turret Road'; font-style: normal; font-weight: 500; font-display: swap; src: url('../Resources/fonts/turret-road-500.woff2') format('woff2'); }
@font-face { font-family: 'Turret Road'; font-style: normal; font-weight: 700; font-display: swap; src: url('../Resources/fonts/turret-road-700.woff2') format('woff2'); }

/* =========================
   ROOT VARIABLES
========================= */

:root {
    --accent: #8b8c0e;
    --accent2: #a7a812;

    --bg: #08080d;
    --surface: #101018;
    --surface2: #171720;

    --text: #b6b6c2;
    --title: #f7f7f8;

    --border: rgba(255, 255, 255, 0.09);

    --radius: 1.25rem;

    --shadow: 0 20px 55px rgba(0, 0, 0, 0.25);
}


/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    max-width: 100%;
    overflow-x: hidden;
}

body.lock {
    overflow: hidden;
}

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

img {
    display: block;
    width: 100%;
}

button {
    border: 0;
    font: inherit;
}

h1,
h2,
h3 {
    color: var(--title);
    line-height: 1.2;
}


/* =========================
   GENERAL
========================= */

.container {
    width: min(1140px, calc(100% - 2rem));
    margin-inline: auto;
}

.section {
    padding: 6rem 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;

    color: var(--accent);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.section-heading h2,
.projects-top h2,
.cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}


/* =========================
   HEADER
========================= */

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

    border-bottom: 1px solid transparent;

    background: rgba(8, 8, 13, 0.84);
    backdrop-filter: blur(16px);
}

.header.scrolled {
    border-color: var(--border);
}

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

    min-height: 4.5rem;
}

.brand {
    color: var(--title);

    font-size: 1.1rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-menu a:hover,
.nav-menu .active {
    color: var(--title);
}

.nav-toggle,
.nav-close {
    align-items: center;
    display: none;
    height: 44px;
    justify-content: center;
    min-width: 44px;

    cursor: pointer;

    background: transparent;
    color: var(--title);

    font-size: 1.5rem;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    overflow: hidden;

    padding-top: 8rem;
}

.hero::before {
    position: absolute;
    top: -16rem;
    right: -12rem;

    width: 36rem;
    height: 36rem;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(139, 140, 14, 0.22),
        transparent 65%
    );

    content: "";
}

.hero-content {
    position: relative;

    text-align: center;
}

.hero h1 {
    max-width: 1000px;
    margin-inline: auto;

    font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.hero-text {
    max-width: 790px;
    margin: 1.5rem auto 0;

    font-size: 1.08rem;
}


/* =========================
   STATS
========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;

    max-width: 760px;
    margin: 3rem auto 0;
}

.stats div {
    padding: 1.4rem;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: rgba(255, 255, 255, 0.025);
}

.stats strong {
    display: block;

    color: var(--title);

    font-size: 1.7rem;
}

.stats span {
    font-size: 0.9rem;
}


/* =========================
   DISCIPLINES
========================= */

.disciplines,
.projects {
    background: var(--surface);
}

.discipline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.discipline-grid article {
    padding: 1.7rem;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface2);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.discipline-grid article:hover {
    border-color: rgba(139, 140, 14, 0.5);

    transform: translateY(-5px);
}

.discipline-grid i {
    display: inline-block;

    margin-bottom: 1rem;

    color: var(--accent);

    font-size: 2rem;
}

.discipline-grid h3 {
    margin-bottom: 0.5rem;
}


/* =========================
   FEATURED PROJECT
========================= */

.featured {
    background: var(--bg);
}

.featured-header {
    max-width: 920px;
    margin-inline: auto;

    text-align: center;
}

.featured-header .project-category {
    display: block;

    margin-bottom: 1rem;
}

.featured-header h2 {
    margin-bottom: 1.25rem;

    font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.featured-intro {
    max-width: 760px;
    margin-inline: auto;

    color: var(--text);

    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.8;
}

.featured-image {
    width: 70%;

    overflow: hidden;

    margin: 4rem auto;

    border: 1px solid var(--border);
    border-radius: 2rem;

    background: #ffffff;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.featured-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}

.featured-description {
    max-width: 880px;
    margin-inline: auto;

    text-align: center;
}

.featured-description p {
    margin-bottom: 1.5rem;

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

.featured-description .tags {
    justify-content: center;

    margin: 2rem 0;
}

.featured-description .button {
    margin-top: 0.5rem;
}


/* =========================
   PROJECT CATEGORY
========================= */

.project-category {
    display: inline-block;

    margin-bottom: 0.8rem;

    color: var(--accent);

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


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

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    margin-bottom: 1.4rem;

    list-style: none;
}

.tags li {
    padding: 0.32rem 0.65rem;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.03);

    font-size: 0.75rem;
}


/* =========================
   BUTTONS
========================= */

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    padding: 0.85rem 1.25rem;

    border-radius: 999px;

    background: var(--accent);
    color: #ffffff;

    font-weight: 700;

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

.button:hover {
    background: var(--accent2);

    transform: translateY(-2px);
}


/* =========================
   PROJECTS HEADER
========================= */

.projects-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;

    margin-bottom: 2rem;
}

.projects-top p {
    max-width: 420px;

    text-align: right;
}


/* =========================
   FILTERS
========================= */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;

    margin-bottom: 2.5rem;
}

.filter {
    padding: 0.65rem 1rem;

    border: 1px solid var(--border);
    border-radius: 999px;

    cursor: pointer;

    background: transparent;
    color: var(--text);

    font-size: 0.88rem;
    font-weight: 600;

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

.filter:hover,
.filter.active {
    border-color: var(--accent);

    background: var(--accent);
    color: #ffffff;
}


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

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.project-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface2);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.project-card:hover {
    border-color: rgba(139, 140, 14, 0.5);

    transform: translateY(-6px);
}

.project-card.hide {
    display: none;
}

.image-wrap {
    display: block;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: #0d0d13;
}

.image-wrap img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}
.no-signal-cover img { object-position: center 18%; }

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


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

.card-copy {
    padding: 1.35rem;
}

.card-copy h3 {
    margin-bottom: 0.55rem;
}

.card-copy p {
    min-height: 3.4rem;
    margin-bottom: 1rem;

    font-size: 0.9rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    color: var(--title);

    font-size: 0.9rem;
    font-weight: 700;
}

.text-link i {
    color: var(--accent);

    transition: transform 0.2s ease;
}

.text-link:hover i {
    transform: translateX(4px);
}

.empty {
    margin-top: 2rem;

    text-align: center;
}


/* =========================
   CTA
========================= */

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    padding: clamp(2rem, 5vw, 4rem);

    border-radius: 2rem;

    background: var(--accent);
}

.cta .eyebrow,
.cta h2,
.cta p {
    color: #101105;
}

.button.dark {
    flex-shrink: 0;

    background: #11120a;
    color: #ffffff;
}

.button.dark:hover {
    background: #22230e;
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 4rem 0 1.5rem;

    border-top: 1px solid var(--border);
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-links a:hover {
    color: var(--title);
}

.copyright {
    margin-top: 2.5rem;

    color: #777783;

    font-size: 0.82rem;
    text-align: center;
}


/* =========================
   SCROLL PROGRESS BUTTON
========================= */

.scroll-progress {
    position: fixed;
    z-index: 999;
    right: 30px;
    bottom: 30px;

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

    width: 60px;
    height: 60px;

    border-radius: 50%;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease,
        transform 0.35s ease;
}

.scroll-progress.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.scroll-progress:hover {
    transform: translateY(-4px) scale(1.05);
}

.scroll-progress i {
    position: absolute;

    color: var(--accent2);

    font-size: 24px;
}

.scroll-progress svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;

    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 3;
}

.progress-circle {
    fill: none;

    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;

    stroke-dasharray: 163.4;
    stroke-dashoffset: 163.4;

    transition: stroke-dashoffset 0.1s linear;
}


/* =========================
   TABLET
========================= */

@media screen and (max-width: 960px) {

    .discipline-grid,
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-image {
        width: 85%;
        margin: 3rem auto;

        border-radius: 1.5rem;
    }
}


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

@media screen and (max-width: 800px) {

    .section {
        padding: 4.5rem 0;
    }

    .nav-toggle,
    .nav-close {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;

        display: flex;
        align-items: flex-start;
        flex-direction: column;

        width: min(82%, 320px);
        height: 100vh;

        padding: 5.5rem 2rem 2rem;

        border-left: 1px solid var(--border);

        background: #0e0e15;

        transition: right 0.3s ease;
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-close {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
    }

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

    .projects-top {
        display: block;
    }

    .projects-top p {
        margin-top: 1rem;

        text-align: left;
    }

    .filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        overflow: visible;
        padding-bottom: 0;
    }

    .filter {
        min-width: 0;
        width: 100%;
    }

    .cta-box,
    .footer-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-header {
        max-width: 100%;
    }

    .featured-image {
        width: 92%;
        margin: 2.5rem auto;
    }

    .featured-description {
        text-align: left;
    }

    .featured-description .tags {
        justify-content: flex-start;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media screen and (max-width: 560px) {

    .container {
        width: min(100% - 1.2rem, 1140px);
    }

    .hero {
        padding-top: 6.5rem;
    }

    .discipline-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .featured-header h2 {
        font-size: 2.2rem;
    }

    .featured-intro {
        font-size: 1rem;
    }

    .featured-image {
        width: 100%;
        margin: 2rem auto;

        border-radius: 1rem;
    }

    .featured-description p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .card-copy p {
        min-height: auto;
    }

    .scroll-progress {
        right: 16px;
        bottom: 16px;

        width: 54px;
        height: 54px;
    }
}
