:root {
    --ink: #013737;
    --ink-2: #0cd380;
    --lime: #a8f144;
    --lime-soft: #d8ff8d;
    --paper: #f4f6f0;
    --white: #fff;
    --muted: #6a7c79;
    --line: rgba(4, 59, 60, .17);
    --display: 'Manrope', sans-serif;
    --mono: 'DM Mono', monospace
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--display);
    overflow-x: hidden
}

.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    left: -175px;
    top: -175px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 251, 49, .11), transparent 66%);
    pointer-events: none;
    z-index: 30;
    mix-blend-mode: multiply;
    transition: transform .18s ease
}

.site-header {
    height: 80px;
    position: absolute;
    z-index: 10;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 5vw, 78px);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    color: white
}

.brand img {
    display: block;
    width: 250px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    filter: brightness(0) invert(1)
}

.navigation {
    display: flex;
    align-items: center;
    gap: 30px
}

.navigation a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em
}

.navigation a:not(.nav-cta) {
    opacity: .82;
    transition: opacity .2s
}

.navigation a:hover {
    opacity: 1
}

.nav-cta {
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 99px;
    padding: 12px 17px;
    margin-left: 10px
}

.nav-cta span {
    color: var(--lime);
    margin-left: 6px
}

.menu-button {
    display: none
}

.hero {
    min-height: 760px;
    height: 100vh;
    max-height: 980px;
    position: relative;
    background-color: var(--ink);
    background-image: 
        radial-gradient(circle at 85% 30%, rgba(168, 241, 68, 0.08), transparent 45%),
        linear-gradient(90deg, rgba(1, 55, 55, 0.94) 0%, rgba(1, 55, 55, 0.78) 45%, rgba(1, 55, 55, 0.45) 100%),
        url('/assets/hero-bg.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
    color: white;
    padding: clamp(140px, 20vh, 220px) clamp(24px, 9vw, 145px) 75px
}

.hero-grid {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}


.hero-copy {
    position: relative;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 25%;
    z-index: 2
}


.section-label {
    font: 500 16px var(--mono);
    letter-spacing: .14em
}


.hero h1 {
    font-size: clamp(42px, 5.6vw, 82px);
    line-height: 1.04;
    letter-spacing: -.06em;
    margin: 21px 0 24px;
    text-align: center;
    max-width: 100%
}

.hero h1 em,
h2 em {
    font-weight: 500;
    color: var(--lime);
    font-style: normal
}

.hero-text {
    max-width: 475px;
    font-size: 16px;
    line-height: 1.7;
    color: #d3e0dd
}

.button-row {
    display: flex;
    gap: 26px;
    align-items: center;
    margin-top: 38px
}

.button {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-decoration: none;
    cursor: pointer;
    font: 700 12px var(--display);
    letter-spacing: .01em;
    transition: transform .25s, box-shadow .25s
}

.button-primary {
    background: var(--lime);
    color: var(--ink);
    padding: 17px 21px;
    border-radius: 3px;
    box-shadow: 0 12px 35px rgba(167, 251, 49, .15)
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(167, 251, 49, .3)
}

.button span {
    font-size: 17px
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font: 700 12px var(--display);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 6px;
    transition: color .2s
}

.text-link:hover {
    color: var(--lime)
}

.hero-object {
    position: absolute;
    z-index: 1;
    width: min(42vw, 570px);
    height: min(42vw, 570px);
    right: 7vw;
    top: 15%;
    display: grid;
    place-items: center
}

.n-mark {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    width: 300px;
    height: 340px;
    right: -15%;
    transform: skewY(-3deg);
    background-color: var(--white);
    border-radius: 25px;
}


.hero-object p {
    text-transform: uppercase;
    font: 500 clamp(18px, 5vw, 32px) var(--mono);
    line-height: 1.8;
    color: var(--ink);
    letter-spacing: .07em
}

.hero-object p b {
    color: var(--lime);
    font-weight: 500
}

.hero-foot {
    position: absolute;
    bottom: 32px;
    left: clamp(24px, 5vw, 78px);
    right: clamp(24px, 5vw, 78px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font: 500 9px var(--mono);
    letter-spacing: .1em;
    color: #c7d4d1
}

.hero-foot a {
    color: var(--lime);
    font-size: 21px;
    text-decoration: none
}

.section {
    padding: clamp(80px, 11vw, 160px) clamp(24px, 9vw, 145px)
}

.section-label {
    color: #69817e
}

.intro {
    background: #e9ede5
}

.intro-content {
    display: grid;
    grid-template-columns: 1.55fr .7fr;
    gap: 9vw;
    min-height: 45vh;
    margin-top: 85px
}

.section h2,
.contact h2 {
    font-size: clamp(33px, 4.6vw, 66px);
    letter-spacing: -.06em;
    word-spacing: 10px;
    line-height: 1.08;
    margin: 0;
    font-weight: 700
}

.section h2 em {
    color: #55a32e
}

.intro-body {
    font-size: 14px;
    line-height: 1.8;
    color: #3e5955;
    padding-top: 6px
}

.intro-body p {
    margin: 0 0 18px
}

.intro-body .text-link {
    margin-top: 26px;
    color: var(--ink)
}

.services {
    background: var(--ink);
    color: #f4f6f0
}

.section-top {
    display: grid;
    grid-template-columns: .8fr 1.6fr;
    gap: 4vw;
    align-items: start
}

.services .section-label {
    color: var(--lime)
}

.process .section-label {
    color: var(--ink)
}

.service-list {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, .19)
}

.service-card {
    display: grid;
    grid-template-columns: 70px 1.15fr 1fr 45px;
    gap: 20px;
    align-items: start;
    padding: 31px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .19);
    transition: padding .25s, background .25s
}

.service-card:hover {
    padding-left: 16px;
    padding-right: 16px;
    background: rgba(255, 255, 255, .04)
}

.service-card>span {
    font: 400 10px var(--mono);
    color: var(--lime);
    padding-top: 6px
}

.service-card h3 {
    font-size: clamp(20px, 2.2vw, 30px);
    letter-spacing: -.055em;
    line-height: 1.08;
    margin: 0
}

.service-card p {
    margin: 3px 0;
    color: #b6c8c5;
    line-height: 1.6;
    font-size: 15px;
    max-width: 330px
}

.service-card a {
    color: var(--lime);
    text-decoration: none;
    font-size: 25px;
    justify-self: end
}

.process {
    background: var(--lime);
    position: relative;
    overflow: hidden
}

.process:after {
    content: 'Nest';
    position: absolute;
    left: 0;
    bottom: -17vw;
    font-weight: 800;
    font-size: 44vw;
    color: rgba(4, 59, 60, .08);
    line-height: 1
}

.process-intro {
    position: relative;
    z-index: 1;
    max-width: 760px
}

.process h2 {
    margin: 45px 0 22px;
    color: var(--ink)
}

.process h2 em {
    color: var(--white);
    opacity: .7
}

.process-intro>p {
    max-width: 495px;
    font-size: 15px;
    line-height: 1.7
}

.steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 80px
}

.step {
    padding-top: 15px;
    border-top: 1px solid rgba(4, 59, 60, .45)
}

.step b {
    font: 500 10px var(--mono)
}

.step h3 {
    font-size: 20px;
    letter-spacing: -.04em;
    margin: 42px 0 8px
}

.step p {
    font-size: 12px;
    line-height: 1.65;
    margin: 0;
    max-width: 190px
}

.reasons {
    background: #eef0ea;
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 8vw;
    align-items: center
}

.reason-visual {
    height: 500px;
    position: relative;
    overflow: visible;
}

.reason-card {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(12, 211, 128, 0.15), transparent 70%), var(--ink);
    border-radius: 25px;
    overflow: hidden;
    display: grid;
    place-items: center;
    box-shadow: 0 20px 45px rgba(1, 55, 55, 0.15);
}

.reason-bg-logo {
    position: relative;
    z-index: 1;
    width: 150%;
    max-width: none;
    height: 100%;
    margin-right: -40px;
    object-fit: cover;
    object-position: center;
    opacity: 0.14;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.reason-person {
    position: absolute;
    bottom: 0;
    left: -2%;
    width: 125%;
    max-width: none;
    height: 100%;
    object-fit: contain;
    object-position: bottom left;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.38));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reason-visual:hover .reason-person {
    transform: translateY(-4px) scale(1.02);
}

.pulse {
    position: absolute;
    border: 1px solid var(--lime);
    border-radius: 50%;
    animation: pulse-ring 3.5s infinite
}

.pulse-a {
    width: 180px;
    height: 180px
}

.pulse-b {
    width: 300px;
    height: 300px;
    animation-delay: 1.1s
}

.reason-content .section-label {
    margin-bottom: 44px
}

.reason-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 45px;
    margin-top: 50px
}

.reason-grid b {
    font-size: 14px
}

.reason-grid p {
    color: #57706c;
    font-size: 12px;
    line-height: 1.7;
    margin: 10px 0 0
}

.projects {
    background: var(--paper)
}

.projects-header {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: flex-end
}

.projects-header h2 {
    margin-top: 45px
}

.projects-header>p {
    max-width: 330px;
    color: #57706c;
    font-size: 15px;
    line-height: 1.8
}

.project-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 24px;
    margin-top: 70px
}

.project-art {
    height: 380px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--ink);
    box-shadow: 0 14px 35px rgba(1, 55, 55, 0.08);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.project:hover .project-img {
    transform: scale(1.04);
}

.project-meta {
    padding: 19px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 11px 20px;
    align-items: baseline
}

.project-meta span {
    font: 500 9px var(--mono);
    letter-spacing: .09em;
    color: #758b87
}

.project-meta b {
    font-size: 16px;
    letter-spacing: -.03em
}

.project-meta a {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    margin-left: auto
}

.contact {
    position: relative;
    background: var(--ink);
    color: white;
    padding: clamp(80px, 10vw, 145px);
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 10vw;
    overflow: hidden
}

.contact-glow {
    position: absolute;
    width: 65vw;
    height: 65vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 251, 49, .27), rgba(9, 101, 96, .28) 30%, transparent 69%);
    right: -31vw;
    top: -25vw;
    animation: float 11s ease-in-out infinite
}

.contact-copy,
.contact-form {
    position: relative;
    z-index: 1
}

.contact .section-label {
    color: var(--lime);
    margin-bottom: 44px
}

.contact h2 {
    max-width: 610px
}

.contact h2 em {
    color: var(--lime)
}

.contact-copy>p {
    max-width: 460px;
    font-size: 14px;
    color: #bed0cd;
    line-height: 1.8;
    margin: 24px 0 35px
}

.email-link {
    color: var(--lime);
    font-size: clamp(17px, 2vw, 26px);
    font-weight: 600;
    letter-spacing: -.04em;
    text-decoration: none;
    border-bottom: 1px solid rgba(167, 251, 49, .6);
    padding-bottom: 8px
}

.email-link span {
    font-size: .8em;
    margin-left: 14px
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 23px
}

.contact-form label {
    display: block;
    font: 500 9px var(--mono);
    letter-spacing: .1em;
    color: var(--lime)
}

.contact-form label:nth-of-type(3),
.contact-form label:nth-of-type(5),
.contact-form button,
.form-status {
    grid-column: span 2
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    appearance: none;
    outline: 0;
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .33);
    border-radius: 0;
    color: white;
    padding: 12px 0 11px;
    font: 400 13px var(--display);
    transition: border .2s
}

.contact-form select {
    color: #c1d0cd
}

.contact-form option {
    color: var(--ink)
}

.contact-form textarea {
    height: 69px;
    resize: vertical
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--lime)
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ab0ac
}

.contact-form .button {
    justify-self: start;
    margin-top: 4px;
    max-height: 50px;
}

.form-status {
    margin: 0;
    font-size: 12px;
    color: var(--lime);
    min-height: 17px
}

footer {
    background: #022c2e;
    color: #d7e3e0;
    padding: 48px clamp(24px, 9vw, 145px) 27px;
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1fr;
    gap: 35px;
    align-items: start
}

footer img {
    width: 250px;
    height: 70px;
    object-fit: cover;
    filter: brightness(0) invert(1)
}

footer p {
    font-size: 11px;
    line-height: 1.7;
    margin: 0;
    max-width: 250px
}

footer div {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

footer a,
footer small {
    color: #d7e3e0;
    text-decoration: none;
    font-size: 10px
}

footer small {
    grid-column: 1/-1;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: #86a3a0
}


.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg);
  transition: var(--transition);
  text-decoration: none;
  font-size: 1rem;
}

.footer-social a:hover {
  opacity: 0.9;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.2, .8, .2, 1)
}

.reveal.in-view {
    opacity: 1;
    transform: none
}

.delay-1 {
    transition-delay: .12s
}

.delay-2 {
    transition-delay: .22s
}

.delay-3 {
    transition-delay: .32s
}

@keyframes float {
    50% {
        transform: translate3d(0, 25px, 0) scale(1.04)
    }
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 17px rgba(167, 251, 49, 0)
    }
}

@keyframes pulse-ring {

    0%,
    100% {
        opacity: .15;
        transform: scale(.85)
    }

    50% {
        opacity: .6;
        transform: scale(1.05)
    }
}

@media(max-width:800px) {
    .cursor-glow {
        display: none
    }

    .site-header {
        height: 74px;
        padding: 0 22px
    }

 
    .menu-button {
        display: flex;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255, 255, 255, .4);
        background: none;
        border-radius: 50%;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center
    }

    .menu-button i {
        display: block;
        width: 15px;
        height: 1px;
        background: var(--lime);
        transition: transform .2s
    }

    .menu-button.is-open i:first-child {
        transform: translateY(3px) rotate(45deg)
    }

    .menu-button.is-open i:last-child {
        transform: translateY(-3px) rotate(-45deg)
    }

    .navigation {
        position: fixed;
        inset: 74px 0 auto;
        background: var(--ink);
        padding: 28px 24px 34px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, .2)
    }

    .navigation.is-open {
        display: flex
    }

    .navigation a {
        font-size: 14px
    }

    .nav-cta {
        margin: 6px 0 0
    }

    .hero {
        height: 80vh;
        padding: 137px 24px 80px
    }

    .hero h1 {
        font-size: 47px
    }

    .hero-object {
        opacity: .55;
        width: 420px;
        height: 420px;
        right: -135px;
        top: 43%
    }

    .hero-foot {
        left: 24px;
        right: 24px
    }

    .intro-content,
    .section-top,
    .reasons,
    .contact {
        grid-template-columns: 1fr
    }

    .intro-content {
        gap: 30px;
        margin-top: 45px
    }

    .section {
        min-height: 100vh;
        padding: 85px 24px
    }

    .section-top h2 {
        margin-top: 41px
    }

    .service-list {
        margin-top: 48px
    }

    .service-card {
        grid-template-columns: 35px 1fr 26px;
        gap: 12px;
        padding: 25px 0
    }

    .service-card p {
        grid-column: 2/3;
        margin-top: 9px
    }

    .service-card a {
        grid-column: 3;
        grid-row: 1
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        margin-top: 50px;
        gap: 35px 20px
    }

    .step h3 {
        margin-top: 25px
    }

    .reason-visual {
        height: 310px;
        order: 2;
        overflow: hidden;
    }

    .reason-person {
        display: none;
    }

    .reason-bg-logo {
        opacity: 1;
        width: 160%;
        margin-right: -60px;
    }

    .reason-content {
        order: 1
    }

    .reason-grid {
        gap: 28px 20px;
        margin-top: 38px
    }

    .projects-header {
        display: block
    }

    .projects-header>p {
        margin-top: 25px
    }

    .project-grid {
        grid-template-columns: 1fr;
        margin-top: 42px
    }

    .project-art {
        height: 300px
    }

    .contact {
        padding: 85px 24px;
        gap: 55px
    }

    .contact-form {
        gap: 20px
    }

    .contact h2 {
        font-size: 42px
    }

    footer {
        padding: 40px 24px 23px;
        grid-template-columns: 1fr;
        gap: 24px
    }
}

@media(max-width:430px) {
    .hero h1 {
        font-size: 41px
    }

    .button-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px
    }

    .steps {
        grid-template-columns: 1fr
    }

    .contact-form {
        grid-template-columns: 1fr
    }

    .contact-form label,
    .contact-form label:nth-of-type(3),
    .contact-form label:nth-of-type(5),
    .contact-form button,
    .form-status {
        grid-column: 1
    }

    .reason-grid {
        grid-template-columns: 1fr
    }

    .hero-foot span:nth-child(2) {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {

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

    .reveal {
        opacity: 1;
        transform: none
    }
}

/* Os ficheiros 21 e 22 já são as variantes branca e verde do logótipo. */
.brand img,
.reason-visual img,
footer img {
    filter: none
}

@font-face {
    font-family: 'Acid Grotesk';
    src: url('/fonts/Acid%20Grotesk%20TRIAL/TRIAL%20TTF%20%28Variable%20format%29/FFFAcidGroteskVariableTRIALVF.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --display: 'Acid Grotesk', Arial, sans-serif;
    --mono: 'Acid Grotesk', Arial, sans-serif;
}

/* Mobile: mantém os controlos nas extremidades e evita que o cartão decorativo
   se sobreponha ao conteúdo principal do hero. */
@media (max-width: 800px) {
    .site-header {
        width: 100%;
        justify-content: space-between;
        padding-inline: 20px;
    }

    .brand {
        display: flex;
        align-items: center;
        width: 98px;
        height: 100%;
        overflow: visible;
    }

    .brand img {
        width: 250px;
        height: 90px;
        max-width: none;
        transform: translateX(-38px);
    }

    .menu-button {
        flex: 0 0 42px;
        margin-left: auto;
    }

    .hero {
        padding: 118px 20px 56px;
    }

    .hero-copy {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        max-width: 320px;
        font-size: clamp(38px, 11vw, 44px);
        line-height: .97;
        margin: 8px auto 24px;
    }

    .hero-text {
        max-width: 290px;
        font-size: 15px;
        line-height: 1.5;
        margin-inline: auto;
    }

    .button-row {
        margin-top: 32px;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 14px;
        width: 100%;
    }

    .button-row .button-primary {
        padding: 15px 16px;
        gap: 14px;
        white-space: nowrap;
    }

    .button-row .text-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hero-object,
    .hero-foot {
        display: none;
    }

    footer {
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: center;
        gap: 20px;
        padding: 40px 24px 22px;
        text-align: center;
    }

    footer img {
        justify-self: center;
    }

    footer p {
        margin-inline: auto;
    }

    footer div {
        width: 100%;
        justify-content: center;
        align-items: center;
        row-gap: 16px;
    }

    .footer-social {
        flex: 0 0 100%;
        width: 100%;
        margin: 4px 0 0;
        padding: 0;
    }

    .footer-social p {
        margin: 0;
        max-width: none;
    }

    footer small {
        width: 100%;
        padding-top: 18px;
        text-align: center;
    }
}
