:root {
    --ink: #193f3a;
    --leaf: #2e7a58;
    --pollen: #f0aa33;
    --butter: #fff6d8;
    --paper: #fcfaf1;
    --coral: #e86d4f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Manrope", sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.entry-screen {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 42px 7vw;
    background: var(--paper);
    color: var(--ink);
    transition: opacity 500ms ease, visibility 500ms ease;
}

.entry-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 300px) minmax(280px, 520px);
    align-items: center;
    width: min(940px, 100%);
    gap: clamp(38px, 8vw, 110px);
}

.entry-content::before {
    position: absolute;
    top: 50%;
    left: 42%;
    width: 66vw;
    height: 66vw;
    max-width: 720px;
    max-height: 720px;
    border: 1px solid #dce6cf;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.entry-logo {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(300px, 66vw);
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: white;
    box-shadow: 16px 16px 0 var(--coral);
}

.entry-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.entry-eyebrow {
    margin: 0 0 14px;
    color: var(--coral);
    font-family: "DM Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.entry-copy {
    position: relative;
    z-index: 1;
}

.entry-copy h1 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(3.2rem, 8vw, 6.2rem);
    line-height: 0.95;
}

.entry-name {
    margin: 15px 0 0;
    color: var(--leaf);
    font-family: "Caveat", cursive;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
}

.entry-message {
    max-width: 360px;
    margin: 18px 0 28px;
    line-height: 1.6;
}

.entry-button {
    min-width: 150px;
    padding: 13px 28px;
    border: 2px solid var(--ink);
    border-radius: 4px;
    background: var(--coral);
    color: white;
    font: 700 0.8rem "DM Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.entry-button:hover {
    background: var(--leaf);
    transform: translateY(-3px);
}

.entry-butterfly {
    position: absolute;
    right: -2%;
    bottom: -8%;
    z-index: 1;
    width: clamp(72px, 12vw, 125px);
    transform: rotate(16deg);
}

body.has-entered .entry-screen {
    opacity: 0;
    visibility: hidden;
}

body:not(.has-entered) {
    overflow: hidden;
}

@media (max-width: 680px) {
    .entry-screen {
        padding: 32px 24px;
    }

    .entry-content {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 30px;
        text-align: center;
    }

    .entry-copy {
        display: grid;
        justify-items: center;
    }

    .entry-message {
        margin-bottom: 24px;
    }

    .entry-butterfly {
        right: 2%;
        bottom: -4%;
        width: 78px;
    }
}

.site-header {
    position: relative;
    z-index: 2;
    padding: 0 6vw;
    background: var(--paper);
}

.navigation {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 96px repeat(3, 1fr);
    align-items: center;
    width: min(1180px, 100%);
    min-height: 92px;
    margin: auto;
    gap: 38px;
}

.navigation .nav-link:nth-child(2),
.navigation .nav-link:nth-child(3) {
    text-align: right;
}

.navigation .nav-link:nth-child(5) {
    text-align: left;
}

.navigation .nav-link:nth-child(6) {
    text-align: right;
}

.navigation .nav-link:nth-child(7) {
    text-align: right;
}

.navigation .nav-link[href="project.html"] {
    justify-self: center;
    width: max-content;
    text-align: center;
}

.navigation .brand {
    grid-column: 4;
}

.nav-link {
    color: var(--ink);
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--coral);
}

.nav-link[href="project.html"] {
    padding: 10px 12px;
    background: var(--coral);
    color: white;
    text-align: center;
    border-radius: 999px;
}

.nav-link[href="project.html"]:hover {
    background: var(--ink);
    color: white;
}

.brand {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: white;
    text-decoration: none;
}

.brand-mark {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.wave-line {
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'%3E%3Cpath d='M0 10 C6 2 19 2 25 10 C31 18 44 18 50 10 C56 2 69 2 75 10 C81 18 94 18 100 10' fill='none' stroke='%23193f3a' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center;
    background-size: 100px 20px;
    opacity: 0.85;
}

.wave-top {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'%3E%3Cpath d='M0 10 C6 2 19 2 25 10 C31 18 44 18 50 10 C56 2 69 2 75 10 C81 18 94 18 100 10 V20 H0 Z' fill='%23fff6d8'/%3E%3Cpath d='M0 10 C6 2 19 2 25 10 C31 18 44 18 50 10 C56 2 69 2 75 10 C81 18 94 18 100 10' fill='none' stroke='%23193f3a' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.wave-carousel-bottom {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'%3E%3Cpath d='M0 10 C6 2 19 2 25 10 C31 18 44 18 50 10 C56 2 69 2 75 10 C81 18 94 18 100 10 V0 H0 Z' fill='%23fff6d8'/%3E%3Cpath d='M0 10 C6 2 19 2 25 10 C31 18 44 18 50 10 C56 2 69 2 75 10 C81 18 94 18 100 10' fill='none' stroke='%23193f3a' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    opacity: 1;
}

.carousel {
    position: relative;
    min-height: 490px;
    overflow: hidden;
    background: var(--butter);
}

.slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1100px;
    padding: 52px 7% 72px;
    margin: auto;
    gap: clamp(30px, 7vw, 95px);
    opacity: 0;
    pointer-events: none;
    transform: translateX(4%);
    transition: opacity 700ms ease, transform 700ms ease;
}

.slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.welcome-slide {
    overflow: hidden;
    background: var(--butter);
    color: var(--ink);
}

.welcome-slide::before {
    display: none;
}

.welcome-slide::after {
    display: none;
}

.welcome-copy h1 {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.welcome-copy h1 span {
    color: var(--coral);
    font-family: "Fraunces", serif;
    font-size: clamp(2.6rem, 10vw, 5.2rem);
    letter-spacing: 0;
    line-height: 0.9;
}

.welcome-copy h1 em {
    color: var(--leaf);
    font-family: "Caveat", cursive;
    font-size: clamp(2.2rem, 8vw, 4.2rem);
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0;
    line-height: 0.95;
}

.welcome-copy .eyebrow {
    position: relative;
    z-index: 1;
    color: var(--coral);
}

.welcome-copy p:not(.eyebrow) {
    position: relative;
    z-index: 1;
    color: var(--ink);
}

.welcome-mark {
    display: grid;
    z-index: 1;
    width: min(330px, 100%);
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: #fff;
    box-shadow: 15px 15px 0 var(--coral);
}

.welcome-mark img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.slide-copy h1,
h2 {
    margin: 0;
    font-family: "Fraunces", serif;
    line-height: 1;
    letter-spacing: 0;
}

.slide-copy h1 {
    max-width: 500px;
    font-size: clamp(2.7rem, 5.5vw, 5rem);
}

.slide-copy p:not(.eyebrow) {
    max-width: 390px;
    margin: 23px 0 0;
    line-height: 1.7;
    font-size: 0.98rem;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--coral);
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.slide-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    border: 2px solid var(--ink);
    border-radius: 48% 52% 44% 56% / 55% 44% 56% 45%;
    box-shadow: 12px 12px 0 var(--pollen);
}

.butterfly-visual {
    background: #a8d5bd;
}

.wing,
.butterfly-body,
.sensor {
    position: absolute;
    display: block;
}

.wing {
    width: 34%;
    height: 40%;
    border: 8px solid var(--ink);
    background: var(--coral);
}

.wing-left-top {
    top: 13%;
    left: 17%;
    border-radius: 75% 25% 70% 30%;
    transform: rotate(-19deg);
}

.wing-right-top {
    top: 13%;
    right: 17%;
    border-radius: 25% 75% 30% 70%;
    transform: rotate(19deg);
}

.wing-left-bottom {
    bottom: 16%;
    left: 18%;
    border-radius: 65% 30% 75% 35%;
    transform: rotate(25deg);
}

.wing-right-bottom {
    right: 18%;
    bottom: 16%;
    border-radius: 30% 65% 35% 75%;
    transform: rotate(-25deg);
}

.butterfly-body {
    z-index: 1;
    top: 21%;
    left: 47%;
    width: 6%;
    height: 60%;
    border-radius: 50%;
    background: var(--ink);
}

.sensor {
    z-index: 2;
    top: 43%;
    left: 42%;
    width: 16%;
    padding: 5px 0;
    border: 2px solid var(--ink);
    border-radius: 3px;
    background: var(--butter);
    text-align: center;
    font-family: "DM Mono", monospace;
    font-size: 0.8rem;
}

.caterpillar-visual {
    background: #c7df95;
}

.sun {
    position: absolute;
    top: 12%;
    right: 15%;
    width: 23%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--pollen);
    box-shadow: 0 0 0 13px #f8db77;
}

.plant-stem {
    position: absolute;
    bottom: -7%;
    left: 49%;
    width: 9px;
    height: 73%;
    background: var(--leaf);
    transform: rotate(-17deg);
}

.leaf {
    position: absolute;
    width: 36%;
    height: 21%;
    background: var(--leaf);
}

.leaf-one {
    top: 36%;
    left: 22%;
    border-radius: 100% 0 100% 0;
    transform: rotate(-22deg);
}

.leaf-two {
    right: 16%;
    bottom: 25%;
    border-radius: 0 100% 0 100%;
    transform: rotate(24deg);
}

.caterpillar {
    position: absolute;
    z-index: 1;
    bottom: 19%;
    left: 27%;
    display: flex;
    align-items: center;
}

.caterpillar i {
    display: block;
    width: clamp(23px, 5vw, 45px);
    aspect-ratio: 1;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--coral);
}

.caterpillar i+i {
    margin-left: -8px;
    background: #f0c84e;
}

.hands-visual {
    background: #b7dce1;
}

.hand {
    position: absolute;
    bottom: -10%;
    width: 49%;
    height: 77%;
    border: 5px solid var(--ink);
    background: #f2bda5;
}

.hand-left {
    left: 7%;
    border-radius: 75% 42% 35% 43%;
    transform: rotate(19deg);
}

.hand-right {
    right: 7%;
    border-radius: 42% 75% 43% 35%;
    transform: rotate(-19deg);
}

.tiny-butterfly {
    position: absolute;
    z-index: 1;
    top: 29%;
    left: 40%;
    width: 22%;
    height: 23%;
}

.tiny-butterfly i {
    position: absolute;
    width: 48%;
    height: 56%;
    border: 3px solid var(--ink);
    background: var(--coral);
}

.tiny-butterfly i:nth-child(1) {
    left: 0;
    top: 0;
    border-radius: 80% 20% 75% 25%;
}

.tiny-butterfly i:nth-child(2) {
    right: 0;
    top: 0;
    border-radius: 20% 80% 25% 75%;
}

.tiny-butterfly i:nth-child(3) {
    bottom: 0;
    left: 4%;
    border-radius: 70% 25% 70% 30%;
}

.tiny-butterfly i:nth-child(4) {
    right: 4%;
    bottom: 0;
    border-radius: 25% 70% 30% 70%;
}

.carousel-controls {
    position: absolute;
    z-index: 1;
    bottom: 28px;
    left: 50%;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.carousel-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.carousel-dot.is-active {
    background: var(--coral);
}

.station-section {
    width: min(1100px, 88%);
    padding: 110px 0 100px;
    margin: auto;
}

.section-intro {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    column-gap: 70px;
    align-items: end;
}

.section-intro .eyebrow {
    grid-column: 1 / -1;
}

.section-intro h2,
.team-section h2 {
    font-size: clamp(2.3rem, 4.5vw, 4rem);
}

.definition {
    max-width: 355px;
    margin: 0 0 4px;
    font-size: 1.08rem;
    line-height: 1.65;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 55px;
}

.fact-card {
    min-height: 330px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    perspective: 1000px;
    cursor: pointer;
    text-align: left;
}

.fact-card-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 330px;
    transition: transform 650ms;
    transform-style: preserve-3d;
}

.fact-card:hover .fact-card-inner,
.fact-card.is-flipped .fact-card-inner {
    transform: rotateY(180deg);
}

.fact-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1.5px solid var(--ink);
    border-radius: 7px;
    backface-visibility: hidden;
}

.fact-card-front {
    background: var(--butter);
}

.fact-card-back {
    justify-content: center;
    background: var(--leaf);
    color: white;
    font-family: "Fraunces", serif;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.3;
    transform: rotateY(180deg);
}

.fact-card-content {
    display: grid;
    gap: 10px;
    width: 100%;
}

.fact-card-content>span {
    display: block;
}

.card-number,
.card-prompt {
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
}

.fact-card strong {
    font-family: "Fraunces", serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.05;
}

.card-prompt {
    color: var(--coral);
}

.wave-bottom {
    transform: rotate(180deg);
}

.team-section {
    width: min(1100px, 88%);
    padding: 95px 0 105px;
    margin: auto;
    text-align: center;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    margin-top: 50px;
}

.member {
    min-width: 0;
}

.member-photo {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    color: var(--ink);
    font-family: "Fraunces", serif;
    font-size: 2.8rem;
}

.member-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-ana {
    background: #f7c5b3;
}

.photo-lucia {
    background: #b6d9b4;
}

.photo-violeta {
    background: #f4d87f;
}

.photo-luna {
    background: #b4dce0;
}

.photo-cristina {
    background: #e0bdd4;
}

.member h3 {
    margin: 14px 0 0;
    font-family: "DM Mono", monospace;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.55;
}

footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: var(--ink);
    color: white;
    font-family: "DM Mono", monospace;
    font-size: 0.76rem;
}

footer p {
    margin: 0;
}

footer a {
    color: var(--pollen);
    text-decoration: none;
}

@media (max-width: 680px) {
    .site-header {
        padding: 0 4vw;
    }

    .navigation {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-height: 150px;
        gap: 8px;
    }

    .nav-link {
        font-size: 0.58rem;
    }

    .brand {
        width: 70px;
        height: 70px;
    }

    .navigation .brand {
        grid-column: 2 / 4;
        justify-self: center;
    }

    .navigation .nav-link:nth-child(1) {
        text-align: left;
    }

    .navigation .nav-link:nth-child(6) {
        grid-column: 4;
        grid-row: 1;
        text-align: right;
    }

    .navigation .nav-link:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
    }

    .navigation .nav-link:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        text-align: center;
    }

    .navigation .nav-link:nth-child(5) {
        grid-column: 3;
        grid-row: 2;
        text-align: right;
    }

    .navigation .nav-link:nth-child(7) {
        grid-column: 4;
        grid-row: 2;
        text-align: right;
    }

    .carousel {
        min-height: 650px;
    }

    .slide {
        grid-template-columns: 1fr;
        padding-top: 45px;
        padding-bottom: 66px;
        gap: 28px;
    }

    .slide-copy h1 {
        font-size: clamp(2.7rem, 12vw, 4rem);
    }

    .welcome-slide {
        align-content: center;
        gap: 25px;
    }

    .welcome-copy {
        text-align: center;
    }

    .welcome-copy h1 {
        align-items: center;
    }

    .welcome-copy h1 em {
        font-size: clamp(2.2rem, 8vw, 4.2rem);
    }

    .welcome-copy p:not(.eyebrow) {
        margin-right: auto;
        margin-left: auto;
    }

    .slide-visual {
        width: min(310px, 80vw);
        justify-self: center;
    }

    .station-section {
        padding: 76px 0;
    }

    .section-intro {
        display: block;
    }

    .definition {
        margin-top: 25px;
    }

    .question-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .team-list {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 36px;
    }

    .team-list .member:nth-child(4) {
        grid-column: 1 / 2;
    }

    footer {
        flex-direction: column;
        align-items: center;
    }
}