:root {
    --ink: #07110f;
    --paper: #eef1ea;
    --paper-warm: #e5e8df;
    --acid: #d8ff4f;
    --mint: #7ee2c8;
    --white: #f8faf5;
    --muted: #aeb8b1;
    --line: rgba(255, 255, 255, .16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
    color: var(--white);
    background: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--acid), var(--mint));
}

a,
a:hover,
a:focus {
    color: inherit;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    color: var(--ink);
    background: var(--acid);
    border-radius: 999px;
    transform: translateY(-150%);
}

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

/* Navigation */
.navbar-custom,
.navbar-custom.top-nav-collapse {
    top: 18px;
    right: 24px;
    left: 24px;
    width: auto;
    min-height: 68px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(7, 17, 15, .78);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.navbar-custom .container {
    width: 100%;
    max-width: 1320px;
}

.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 7px 10px;
    color: var(--white);
    font-family: Manrope, Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.03em;
    text-transform: none;
}

.navbar-custom .navbar-brand img {
    width: 23px;
    height: auto;
    margin-right: 11px;
    opacity: .9;
}

.navbar-custom .nav {
    padding: 3px 0;
}

.navbar-custom .nav li.active {
    background: transparent;
}

.navbar-custom .nav > li > a {
    margin: 0 3px;
    padding: 12px 17px;
    border-radius: 999px;
    color: rgba(248, 250, 245, .74);
    font-family: Manrope, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.navbar-custom .nav > li > a:hover,
.navbar-custom .nav > li > a:focus,
.navbar-custom .nav > li.active > a {
    color: var(--white);
    background: rgba(255, 255, 255, .08);
}

.navbar-custom .nav > li > a.nav-contact {
    color: var(--ink);
    background: var(--acid);
}

.navbar-custom .nav > li > a.nav-contact:hover,
.navbar-custom .nav > li > a.nav-contact:focus {
    background: #e5ff86;
}

/* Hero */
#introtext {
    position: relative;
}

.intro {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    padding: 150px 0 70px;
    text-align: left;
    background-position: center center;
    background-attachment: scroll;
}

.intro::before,
.intro::after {
    position: absolute;
    z-index: -1;
    content: "";
    inset: 0;
}

.intro::before {
    background:
        linear-gradient(90deg, rgba(4, 14, 12, .96) 0%, rgba(4, 14, 12, .78) 47%, rgba(4, 14, 12, .25) 100%),
        linear-gradient(0deg, rgba(4, 14, 12, .9) 0%, transparent 42%);
}

.intro::after {
    opacity: .16;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.intro .intro-body {
    display: block;
}

.hero-content {
    float: none;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 34px;
    color: rgba(248, 250, 245, .7);
    font-family: Manrope, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.eyebrow span {
    width: 34px;
    height: 2px;
    background: var(--acid);
}

.intro .intro-body .brand-heading {
    max-width: 980px;
    margin: 0;
    color: var(--white);
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(52px, 7.3vw, 108px);
    font-weight: 700;
    letter-spacing: -.075em;
    line-height: .94;
    text-transform: none;
}

.brand-heading em,
#contact h2 em {
    color: var(--acid);
    font-style: normal;
}

.intro .intro-body .intro-text {
    max-width: 720px;
    margin: 40px 0 0;
    color: rgba(248, 250, 245, .74);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.hero-button,
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 220px;
    padding: 17px 20px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: var(--white);
    font-family: Manrope, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.hero-button:hover,
.hero-button:focus {
    color: var(--white);
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .08);
}

.hero-button-primary,
.hero-button-primary:hover,
.hero-button-primary:focus {
    color: var(--ink);
    border-color: var(--acid);
    background: var(--acid);
}

.hero-button span,
.contact-button span {
    font-size: 18px;
}

.hero-facts {
    display: flex;
    gap: clamp(28px, 5vw, 72px);
    margin-top: 72px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.hero-facts div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hero-facts strong {
    color: var(--white);
    font-family: Manrope, Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.05em;
    line-height: 1;
}

.hero-facts span {
    color: rgba(248, 250, 245, .52);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.35;
    text-transform: uppercase;
}

/* Project timeline */
.project-timeline {
    counter-reset: project;
    padding: 84px 24px;
    color: var(--white);
    background: var(--paper);
}

.project-timeline > section {
    counter-increment: project;
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 0;
    scroll-margin-top: 92px;
}

.project-timeline > section > .row {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(780px, 84vh);
    margin: 0;
    padding: clamp(30px, 5vw, 76px);
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(16, 30, 25, .12);
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
}

.project-timeline > section > .row::before {
    position: absolute;
    z-index: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(5, 15, 13, .86) 0%, rgba(5, 15, 13, .53) 54%, rgba(5, 15, 13, .14) 100%),
        linear-gradient(0deg, rgba(5, 15, 13, .68), transparent 50%);
    inset: 0;
}

.project-timeline > section:nth-child(even) > .row::before {
    background:
        linear-gradient(270deg, rgba(5, 15, 13, .86) 0%, rgba(5, 15, 13, .53) 54%, rgba(5, 15, 13, .14) 100%),
        linear-gradient(0deg, rgba(5, 15, 13, .68), transparent 50%);
}

.project-timeline > section > .row::after {
    position: absolute;
    z-index: 1;
    top: 30px;
    right: 34px;
    content: counter(project, decimal-leading-zero) " / 24";
    color: rgba(255, 255, 255, .6);
    font-family: Manrope, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
}

.project-timeline .bg_infera {
    background-image: url(../img/bg_infera.jpg);
}

.project-timeline .item {
    position: relative;
    z-index: 2;
    float: none;
    width: min(680px, 62%);
    margin: 0;
    padding: clamp(28px, 4vw, 56px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 24px;
    background: rgba(5, 15, 13, .62);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.project-timeline > section:nth-child(even) .item {
    margin-left: auto;
}

.project-timeline .item h1 {
    display: flow-root;
    margin: 0 0 28px;
    color: var(--white);
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1;
    text-transform: none;
}

.project-timeline .item h1 small {
    display: inline-block;
    margin-bottom: 13px;
    padding: 7px 10px;
    color: var(--acid);
    border: 1px solid rgba(216, 255, 79, .45);
    border-radius: 999px;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
}

.project-timeline .item p,
.project-timeline .item li {
    color: rgba(248, 250, 245, .76);
    font-size: 16px;
    line-height: 1.7;
}

.project-timeline .item p {
    margin-bottom: 20px;
}

.project-timeline .item p:first-of-type {
    color: var(--white);
    font-size: 19px;
    line-height: 1.5;
}

.project-timeline .item ul {
    margin: -8px 0 24px;
    padding-left: 20px;
}

.project-timeline .item a:not(.btn) {
    color: var(--acid);
    text-decoration: underline;
    text-decoration-color: rgba(216, 255, 79, .35);
    text-underline-offset: 3px;
}

.project-timeline .item h1 .btn {
    float: right !important;
    margin: 1px 0 10px 18px;
    padding: 11px 15px;
    color: var(--ink);
    border: 0;
    border-radius: 999px;
    background: var(--acid);
    font-family: Manrope, Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.project-timeline .item h1 .btn:hover,
.project-timeline .item h1 .btn:focus {
    color: var(--ink);
    background: #e7ff91;
    transform: translateY(-2px);
}

.project-timeline .btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 8px 0 0;
    padding: 0;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    font-size: 15px;
}

.project-timeline .btn-circle:hover,
.project-timeline .btn-circle:focus {
    color: var(--ink);
    border-color: var(--acid);
    background: var(--acid);
}

.project-timeline .item .text-center {
    text-align: left;
}

/* Contact and footer */
#contact {
    width: 100%;
    margin: 0;
    padding: clamp(110px, 14vw, 210px) 24px;
    color: var(--white);
    background: var(--ink);
}

#contact .row {
    max-width: 1320px;
    margin: 0 auto;
}

.contact-shell {
    float: none;
    margin: 0 auto;
    text-align: left;
}

#contact h2 {
    max-width: 980px;
    margin: 0;
    color: var(--white);
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(48px, 7vw, 98px);
    font-weight: 700;
    letter-spacing: -.07em;
    line-height: .98;
    text-transform: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9vw;
    margin-top: 70px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.contact-grid > p {
    max-width: 570px;
    color: rgba(248, 250, 245, .66);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.6;
}

.contact-button {
    width: 100%;
    color: var(--ink);
    border-color: var(--acid);
    background: var(--acid);
}

.contact-button:hover,
.contact-button:focus {
    color: var(--ink);
    background: #e7ff91;
}

.contact-grid small {
    display: block;
    margin-top: 25px;
    color: rgba(248, 250, 245, .46);
    font-size: 12px;
    line-height: 1.7;
}

footer {
    padding: 0 24px 30px;
    color: rgba(248, 250, 245, .5);
    background: var(--ink);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 28px;
    max-width: 1320px;
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
}

footer p {
    margin: 0;
    font-size: 12px;
}

.footer-brand {
    color: var(--white);
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.03em;
}

/* Progressive motion */
.enhanced .project-timeline .item,
.enhanced .contact-shell {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.enhanced .project-timeline .item.is-visible,
.enhanced .contact-shell.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 991px) {
    .intro {
        padding-top: 140px;
    }

    .hero-content {
        width: 100%;
        margin: 0;
    }

    .project-timeline .item {
        width: min(760px, 82%);
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 82px;
    }

    .navbar-custom,
    .navbar-custom.top-nav-collapse {
        top: 10px;
        right: 10px;
        left: 10px;
        min-height: 60px;
        padding: 5px 8px;
        border-radius: 15px;
    }

    .navbar-custom .navbar-header {
        min-height: 48px;
    }

    .navbar-custom .navbar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        margin: 2px 0 0;
        padding: 10px;
        border: 0;
    }

    .navbar-custom .navbar-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--white);
    }

    .navbar-custom .navbar-collapse {
        max-height: none;
        margin: 5px -8px -5px;
        padding: 8px;
        border: 0;
        border-radius: 0 0 14px 14px;
        background: rgba(7, 17, 15, .97);
        box-shadow: none;
    }

    .navbar-custom .nav {
        margin: 0;
    }

    .navbar-custom .nav > li > a {
        margin: 3px 0;
        padding: 13px 14px;
        color: rgba(248, 250, 245, .78);
        background: transparent;
    }

    .intro {
        min-height: auto;
        padding: 132px 0 58px;
    }

    .intro::before {
        background: linear-gradient(90deg, rgba(4, 14, 12, .94), rgba(4, 14, 12, .67));
    }

    .intro .intro-body .brand-heading {
        font-size: clamp(45px, 14vw, 66px);
    }

    .intro .intro-body .intro-text {
        margin-top: 28px;
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-button {
        width: 100%;
    }

    .hero-facts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 50px;
    }

    .hero-facts div {
        display: block;
    }

    .hero-facts strong,
    .hero-facts span {
        display: block;
    }

    .hero-facts strong {
        margin-bottom: 8px;
        font-size: 25px;
    }

    .project-timeline {
        padding: 46px 10px;
    }

    .project-timeline > section {
        padding: 7px 0;
    }

    .project-timeline > section > .row {
        min-height: 660px;
        padding: 72px 14px 18px;
        border-radius: 20px;
        align-items: flex-end;
    }

    .project-timeline > section > .row::before,
    .project-timeline > section:nth-child(even) > .row::before {
        background: linear-gradient(0deg, rgba(5, 15, 13, .96) 0%, rgba(5, 15, 13, .64) 67%, rgba(5, 15, 13, .15) 100%);
    }

    .project-timeline > section > .row::after {
        top: 24px;
        right: 24px;
    }

    .project-timeline .item,
    .project-timeline > section:nth-child(even) .item {
        width: 100%;
        margin: 0;
        padding: 25px 22px;
        border-radius: 17px;
        background: rgba(5, 15, 13, .72);
    }

    .project-timeline .item h1 {
        margin-bottom: 22px;
        font-size: 34px;
    }

    .project-timeline .item h1 .btn {
        float: none !important;
        display: flex;
        width: max-content;
        margin: 17px 0 0;
    }

    .project-timeline .item p,
    .project-timeline .item li {
        font-size: 15px;
        line-height: 1.62;
    }

    .project-timeline .item p:first-of-type {
        font-size: 17px;
    }

    #contact {
        padding-right: 20px;
        padding-left: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 48px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
