:root {
    --color-orange: #eb9515;
    --color-purple: #5c2b7c;
    --color-green: #98bba7;
    --color-cream: #f5efe6;
    --color-white: #fff;
    --color-black: #000;
    --color-dark: #312f2f;
    --bg: var(--color-purple);
    --text: var(--color-cream);
    --link-hover: var(--color-green);
    --link-active: var(--color-green);
    --h1: var(--color-green);
    --h2: var(--color-green);
    --accent1: var(--color-white);
    --accent2: var(--color-dark);
    --accent3: var(--color-orange);

}

/* =========================
   Themes (override values)
   ========================= */


body[data-theme="theme-1"] {
    --bg: var(--color-purple);
    --text: var(--color-cream);
    --h1: var(--color-green);
    --h2: var(--color-green);
    --link-hover: var(--color-green);
    --link-active: var(--color-green);
    --accent1: var(--color-white);
    --accent2: var(--color-dark);
    --accent3: var(--color-orange);
    --navbar-color: var(--color-black);
}

body[data-theme="theme-2"] {
    --bg: var(--color-cream);
    --text: var(--color-black);
    --h1: var(--color-green);
    --h2: var(--color-black);
    --link-hover: var(--color-dark);
    --link-active: var(--color-green);
    --accent1: var(--color-white);
    --accent2: var(--color-dark);
    --accent3: var(--color-purple);
    --navbar-color: var(--color-black);
}

body[data-theme="theme-3"] {
    --bg: var(--color-dark);
    --text: var(--color-cream);
    --h1: var(--color-green);
    --h2: var(--color-cream);
    --link-hover: var(--color-orange);
    --link-active: var(--color-orange);
    --accent1: var(--color-white);
    --accent2: var(--color-dark);
    --accent3: var(--color-green);
    --navbar-color: var(--color-cream);
}

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

html,
body {
    height: 100%;
}

.home-page-body {
    overflow: hidden;
}

body {
    overflow-x: hidden;
    font-family: 'Fira Code', monospace;
    color: var(--text);
    background-color: var(--bg);
    transition: background-color .6s ease, color .6s ease;
}

h1 {
    font-family: 'Gasoek One', sans-serif;
    color: var(--h1);
}

h2 {
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    color: var(--h2);
}

h3 {
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

p {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

a.active {
    color: var(--link-active);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
}

/* ===== Scene ===== */
.scene {
    position: absolute;
    inset: 0;
    z-index: 10;
    height: 100vh;
}

.scene.hidden {
    display: none;
}

.img-bottom {
    position: fixed;
    width: 220px;
    height: 220px;
    left: 0;
    bottom: 0;
    object-fit: cover;
    z-index: 1;
}

@media (max-width: 520px) {
    .img-bottom {
        width: 180px;
        height: 180px;
        left: -px;
        bottom: 0;
    }
}

.img-top {
    position: fixed;
    width: 220px;
    height: 220px;
    left: 6rem;
    bottom: 6rem;
    object-fit: cover;
    z-index: 2;
    will-change: transform;
}

@media (max-width: 520px) {
    .img-top {
        width: 180px;
        height: 180px;
        left: 3rem;
        bottom: 6rem;
    }
}

.scene-copy {
    position: absolute;
    inset: 0;
    display: block;
}

.scene-copy a {
    text-decoration: none;
    color: inherit;
}

.subtitle {
    position: absolute;
    right: 10px;
    top: 60%;
    translate: -50% -50%;
    text-align: right;
    opacity: 1;
    will-change: opacity;
}

.subtitle p {
    font-size: 1.1rem;
}



@media (max-width: 520px) {
    .subtitle {
        right: 0px;
        top: 50%;
        translate: -20% -50%;
    }
}

.details {
    position: absolute;
    left: clamp(1rem, 4vw, 3rem);
    bottom: clamp(1rem, 10vw, 3rem);
    color: var(--accent3);
    opacity: 0;
    will-change: opacity;
    text-decoration: none;
}

.details.services-details {
    opacity: 1;
}

.quote {
    position: fixed;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    opacity: 0;
    will-change: opacity;
}

@media (max-width: 880px) {
    .quote {
        left: 50%;
        top: 55%;
    }
}

@media (max-width: 520px) {
    .quote {
        left: 50%;
        top: 50%;
    }
}

.quote2 {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: clamp(1rem, 4vw, 3rem);
    max-width: min(40ch, 45vw);
    text-align: right;
    opacity: 1;
    will-change: opacity;
    color: var(--text);
}

main {
    position: relative;
    z-index: 0;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero {
    justify-content: flex-start;
    padding-top: clamp(3rem, 12vh, 14rem);
}

.title-container {
    width: 100%;
}


.title-box {
    margin: 0 auto;
    padding: 2rem 1rem;
    container-type: inline-size;
}

/* =========================
   Navigation (header & menu)
   ========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    pointer-events: auto;
}

.nav-inner {
    height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 1rem clamp(12px, 3vw, 24px);
}

.brand .logo {
    height: 55px;
    width: 55px;
    fill: var(--navbar-color);

}

.brand svg path {
    fill: var(--navbar-color);
}

.lang-switch {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font: 600 0.95rem/1 system-ui;
    color: var(--navbar-color);
    user-select: none;
}

.lang-switch .lang {
    color: var(--navbar-color);
    text-decoration: none;
    opacity: .7;
    padding: .2rem .4rem;
    transition: opacity .15s ease;
}

.lang-switch .lang:hover {
    opacity: .95;
}

.lang-switch .lang.active {
    font-size: 1.1rem;
    opacity: 1;
    color: var(--color-green);
}


.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--navbar-color);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease;
}

.menu-toggle:active {
    transform: scale(0.96);
}

.menu-toggle .icon {
    display: block;
}

.menu-toggle .icon-close {
    display: none;
}

.site-header.open .menu-toggle .icon-menu {
    display: none;
}

.site-header.open .menu-toggle .icon-close {
    display: block;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(12, 12, 16, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform .28s ease;
}

.site-header.open .menu-overlay {
    transform: translateX(0);
    pointer-events: auto;
}

.menu-exit {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-exit:active {
    transform: scale(0.96);
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: grid;
    place-items: center;
    gap: clamp(12px, 2.8vh, 24px);
}

.menu-list a {
    display: inline-block;
    color: var(--color-cream);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: .02em;
    font-size: 1.2rem;
    transition: opacity .2s ease, transform .2s ease;
}

.menu-list a:hover {
    opacity: .65;
    transform: scale(1.3);
    color: var(--color-orange);
}

@media (max-width: 520px) {
    .nav-inner {
        height: 56px;
    }

    .brand img {
        height: 45px;
    }
}

/* ============ Main content (Flex, simple) ============ */

.content-container {
    max-width: 1100px;
    width: 75vw;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10rem;
}

.col-1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin: 10rem auto 0 auto;
}

.content-title {
    width: 75%;
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.land-img {
    width: 700px;
    max-width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.content-copy p {
    margin: 0 auto 1rem auto;
    max-width: 65ch;
}

.content-link {
    margin: 2rem 0;
    position: relative;
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.content-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1.5px;
    background-color: currentColor;
    transform-origin: left;
    transform: scaleX(1);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.content-link:hover {
    transform: scale(1.1);
}

.content-link:hover::after {
    transform: scaleX(0);
    opacity: 0;
}

.col-2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    margin: 0rem auto;
}


.alt-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: relative;
}

.left-image {
    flex-direction: row;
}


.port-img {
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    position: relative;
    z-index: 1;
}

.port-img.first {
    max-width: 350px;
    width: 100%;

    aspect-ratio: 1 / 1;

}

.port-img.middle {
    max-width: 400px;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.port-img.last {
    max-width: 300px;
    width: 100%;
    aspect-ratio: 3 / 4;
}

.left-image .alt-text {
    text-align: left;
}

.right-image .alt-text {
    text-align: right;
}

.alt-text h3 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.alt-text p {
    margin: 0;
    opacity: .9;
}

/* Responsive stack */
@media (max-width: 950px) {
    .col-2 {
        gap: 48px;
    }

    .alt-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .alt-row .alt-text {
        width: 100%;
        text-align: left;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    .alt-row.right-image {
        flex-direction: column-reverse;
    }

    .right-image .alt-text {
        text-align: left;
    }

    .alt-row+.alt-row {
        margin-top: 20px;
    }
}

/* ===== 3-col ===== */
.col-3 {
    display: flex;
    justify-content: center;
}

.title-clip {
    width: 100%;
    height: auto;
}


/* ===== features row ===== */
.features-row {
    margin: 0rem auto;
    display: flex;
    gap: 32px;
    min-width: 0;
    width: 100%;
}

.feature {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px;
    border-radius: 12px;

    min-width: 0;
}

.feature-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.feature-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.feature-text {
    margin: 0;
    line-height: 1.5;
    opacity: .9;
}

.features-link {
    padding: 0 24px;
}

@media (max-width: 900px) {
    .features-row {
        flex-direction: column;
        gap: 20px;
    }

    .feature {
        flex-direction: row;
        /* horizontal card */
        align-items: center;
        text-align: left;
        gap: 16px;
        padding: 12px;
        width: 100%;
    }

    .feature-logo {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .feature-body {
        gap: 4px;
        flex: 1 1 0;
        min-width: 0;
    }

    .feature-title {
        overflow-wrap: anywhere;
        word-break: break-word;
        max-width: 100%;
        font-size: clamp(1rem, 6.5vw, 1.25rem);
        line-height: 1.2;
    }
}


/* ===== Image left / text right row ===== */
.split-row {
    margin: 0rem auto 8rem auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.split-media {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.split-media img {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.split-text {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.split-text h3 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.split-text p {
    margin: 0;
    max-width: 60ch;
}

.split-text .content-link {
    display: block;
    width: max-content;
}

@media (max-width: 900px) {
    .split-row {
        flex-direction: column;
        gap: 30px;
    }

    .split-media img {
        width: 100%;
        max-width: 350px;
        height: auto;
    }

    .split-text {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .content-container {
        padding-inline: 12px;
    }

    .split-row {
        gap: 20px;
    }
}

/* ===== Footer ===== */

.footer-col.right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.footer-brand-icon {
    width: 125px;
}

.footer-main-title-icon {
    padding: 0 1rem;
}

.brand-line {
    margin: 0;
    opacity: .9;
}

/* socials */
.footer-social {
    display: flex;
    gap: 32px;
    font-size: 1.4rem;
    padding: 32px 0;
}

.footer-social a {
    color: inherit;
    text-decoration: none;
}

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

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.footer-links a+a::before {
    content: "•";
    margin: 0 10px;
    opacity: .7;
}



/* Bottom strip */
.footer-bottom {
    border-top: 1px solid rgba(245, 239, 230, .25);
    padding: 12px 24px;
    text-align: center;
    opacity: .9;
}

/* ===== Footer responsiveness ===== */
@media (max-width: 900px) {
    .footer-heading {
        font-size: clamp(3.5rem, 20vw, 8rem);
        text-align: center;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.05;
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }
}

@media (max-width: 560px) {

    .footer-brand-icon {
        width: 75px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-links a+a::before {
        content: none;
    }
}


/* ===== Cameo planes ===== */
.plane-cameo-marker {
    height: 1px;
    pointer-events: none;
}

.plane-cameo {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--plane-w, 220px);
    height: var(--plane-h, 220px);
    pointer-events: none;
    z-index: 40;
    opacity: 0;
    transform: translate(-9999px, -9999px);
    transition: opacity 180ms ease;
    will-change: transform, opacity;
}

.plane-cameo.visible {
    opacity: 1;
}

/* ===== Services hero image ===== */

.services-hero {
    width: 100%;
}

.img-services {
    position: absolute;
    max-width: 200px;
    height: auto;
    left: 20rem;
    bottom: 8rem;
}

.img-services img {
    width: 100%;
    height: auto;
}

@media (max-width: 990px) {
    .img-services {
        left: 18rem;
        bottom: 10rem;
    }
}

@media (max-width: 840px) {
    .img-services {
        left: 12rem;
        bottom: 12rem;
    }
}

@media (max-width: 660px) {
    .img-services {
        left: 4rem;
        bottom: 16rem;
    }
}

@media (max-width: 460px) {
    .img-services {
        left: 2rem;
        bottom: 22rem;
    }
}


/* ===== Services ===== */

.section-block {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 8rem auto;
    padding: 0 4rem;
}

@media (max-width: 540px) {
    .section-block {
        padding: 0 2rem;
    }
}

.services-header h1 {
    font-size: 3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
}

.services__intro {
    text-align: center;
    max-width: 65ch;
    margin-inline: auto;
}

.service-container {
    display: flex;
    flex-direction: column;
    margin-top: 5rem;
    gap: 12rem;
}

.services__intro p {
    margin-top: .75rem;
}

.services__band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.services__band--reverse {
    flex-direction: column;
}

/* .services__media {
    width: 90%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
} */

.services__media--grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "left rt"
        "left rb";
    width: 90%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
    gap: 4px;
}


.services__media--grid-3 .media-left {
    grid-area: left;
}

.services__media--grid-3 .media-rt {
    grid-area: rt;
}

.services__media--grid-3 .media-rb {
    grid-area: rb;
}

.services__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.services__media--grid-3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services__copy {
    width: 80%;
}

.services__copy h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.services__points {
    margin: .75rem 0 0;
    padding-left: 1.25rem;
}

.services__points li {
    margin: .25rem 0;
}

/* ===== Services Extras ===== */

.services__extras {
    margin-top: 10rem;
}

.services-extras-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.services-extras-intro h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.services-extras-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.services__extras-grid {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.services__extra {
    flex: 1 1 280px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    padding: 1.8rem;
    background: rgba(0, 0, 0, .02);
}

.services__extra-icon {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.services__extra-icon.one {
    color: var(--color-green);
}

.services__extra-icon.two {
    color: var(--color-orange);
}

.services__extra-icon.three {
    color: var(--color-purple);
}

.services__extra-icon.four {
    color: var(--color-dark);
}

.services__extra-icon.five {
    color: var(--color-green);
}

.services__extra-icon.six {
    color: var(--color-orange);
}

.services__extra-icon.seven {
    color: var(--color-purple);
}

.services__extra h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.services__extra p {
    margin: 0;
}

/* === Responsive === */
@media (max-width: 980px) {

    /* .services__band,
    .services__band--reverse {
        flex-direction: column;
    } */

    .services__media,
    .services__copy {
        /* flex-basis: auto; */
        width: 95%;
    }
}

@media (max-width: 560px) {
    .services__media {
        aspect-ratio: 4 / 3;
    }
}

/* ===== Projects ===== */

.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.projects__intro,
.projects__closing {
    text-align: center;
    max-width: 65ch;
    margin-inline: auto;
}

.projects__closing {
    margin-top: 5rem;
}

.projects__intro h2,
.projects__closing h2 {
    margin-bottom: 0.5rem;
}

.media-stacks {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.media-stack {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1/1;
    /* height: 450px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-item {
    position: absolute;
    width: 70%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
    outline: none;
    transform: rotate(var(--rot, 0deg)) translate(var(--x, 0), var(--y, 0));
}

.stack-item img,
.stack-item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-item:nth-child(1) {
    --rot: -10deg;
    --x: -25%;
    --y: 5%;
    z-index: 1;
}

.stack-item:nth-child(2) {
    --rot: 8deg;
    --x: 20%;
    --y: -5%;
    z-index: 2;
}

.stack-item:nth-child(3) {
    --rot: 15deg;
    --x: 5%;
    --y: 20%;
    z-index: 3;
}

.stack-item:nth-child(4) {
    --rot: -4deg;
    --x: 0%;
    --y: -15%;
    z-index: 4;
}

.stack-item:hover {
    z-index: 9;
}

.is-cycling-top {
    z-index: 9 !important;
}

.is-pinned-top {
    z-index: 10 !important;
}

.inactive-stack {
    pointer-events: none;
}

/* @media (max-width: 880px) {
    .media-stack {

        width:90%;
    }
}

@media (max-width: 660px) {
    .media-stack {

        width:100%;
    }

}

@media (max-width: 490px) {
    .media-stack {
        height: 50vh;
    }
} */




/* notes list */
.projects-notes {
    margin-top: 4rem;
    /* text-align: center; */
    max-width: 75ch;

}

.projects-notes__intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.projects-notes h3 {
    font-size: 1.6rem;
    margin: 0 0 8px;
}

.points-list {
    /* list-style: none; */
    padding: 0;
    margin: 0;
}

.points-list li {
    font-size: 1rem;
    margin: 6px 0;
}

/* ===== More From Us Section ===== */

.more-from-us {
    width: 100%;
    max-width: 1200px;
    margin: 8rem auto 16rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.more-from-us .section-header,
.more-from-us .section-footer {
    text-align: center;
    max-width: 75ch;
    margin: 0 auto;
}

.more-from-us .section-header h2 {
    margin-bottom: 0.5rem;
}

.more-from-us .subtitle {
    position: static;
    translate: none;
    text-align: center;
    opacity: 0.9;
}

.companies-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.company-card {
    /* background: rgba(255, 255, 255, 0.05); */
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.company-card-1 {
    background: rgba(12, 83, 214, 0.07);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.company-card-2 {
    background: rgba(35, 198, 172, 0.07);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.company-card-3 {
    background: rgba(211, 172, 16, 0.07);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.company-card-4 {
    background: rgba(212, 59, 24, 0.07);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.company-card:hover {
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.2);
    transform: translateZ(5px) rotateX(5deg) rotateY(0deg);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transform: translateZ(25px);
}

.company-logo {
    /* height: 40px; */
    width: 100px;
    max-width: 120px;
    margin-bottom: 0.5rem;
    filter: invert(var(--logo-filter, 0));
}

body[data-theme="theme-1"] .company-logo,
body[data-theme="theme-3"] .company-logo {
    --logo-filter: 1;
}

.company-card h3 {
    font-size: 1.3rem;
    margin: 0;
}

.company-card p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
}


@media (max-width: 580px) {

    .company-card {
        padding: 2rem 1rem
    }
}


/* ====== Modal====== */

/* ===== Overlay ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

/* ===== Modal ===== */
/* ===== Overlay ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 1000;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    aspect-ratio: 4 / 3;
    background: var(--color-cream);
    border-radius: 12px;
    padding: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 1001;

    --avatar: 15vw;
    --overlap: 0.56;
}

/* Overlapping avatar */
.modal-avatar {
    display: none;
    position: absolute;
    width: var(--avatar);
    height: var(--avatar);
    top: calc(-1 * var(--avatar) * var(--overlap));
    left: calc(-1 * var(--avatar) * var(--overlap));
    object-fit: cover;

}

@media (max-width: 700px) {
    .modal {
        width: 60%;
        --avatar: 20vw;
        --overlap: 0.56;
    }
}

@media (max-width: 460px) {
    .modal {
        width: 75%;
        aspect-ratio: 3 / 4;
        padding: 2rem;
        --avatar: 25vw;
        --overlap: 0.5;
    }
}


/* Close button */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal>div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.modal a {
    text-decoration: none;
    color: var(--color-dark);
}

.modal a:hover {
    text-decoration: underline;
}

.modal p {
    font-size: 1.1rem;
    color: var(--color-dark);
}

@media (max-width: 480px) {
    .modal p {
        font-size: 1rem;
    }
}

/* ===== Side tab trigger ===== */
.modal-tab {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--color-green);
    color: var(--color-white);
    padding: 12px 18px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 999;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal-tab:hover {
    background: var(--bg);
    color: var(--text);
}

/* Size (edit these numbers to resize) */
.arrow {
    width: 60px;
    display: inline-block;
    vertical-align: text-bottom;
}

/* Stroke style (edit stroke-width to change weight) */
.arrow use {
    stroke: var(--text);
    fill: none;
    stroke-width: 1;
}

.title-arrow {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 560px) {
    .arrow {
        width: 35px;
    }
}

/* ===== Legal ===== */

.legal-title {
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-dark);
    /* text-align: center;
    margin-bottom: 2rem; */
}

.legal-title-container {
    position: absolute;
    top: 66%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.legal-section {
    width: 100%;
    max-width: 1200px;
    margin: 8rem auto 16rem auto;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.cookies-div {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ===== 404 ===== */

.four-zero-four-title {
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-dark);
    /* text-align: center;
    margin-bottom: 2rem; */
}

.four-zero-four-title-container {
    position: absolute;
    top: 66%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== Cookies ===== */
/* Overlay */
.ck-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 2000;
}

.ck-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Bottom sheet modal */
.ck-modal {
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 50%;
    bottom: 0;
    padding: 2rem;
    gap: 2rem;
    transform: translate(-50%, 100%);
    box-sizing: border-box;
    background: var(--color-cream);
    color: var(--color-dark);
    border-radius: 4px;
    box-shadow: 0 -16px 60px rgba(0, 0, 0, .25);
    pointer-events: none;
    transition: transform .28s ease;
    z-index: 2001;
}

.ck-modal.open {
    transform: translate(-50%, 0);
    pointer-events: auto;
}

/* Close button */
.ck-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Header + text */
.ck-title {
    margin: 0 0 .5rem;
    text-align: center;
    color: var(--color-black, #111);
}

.ck-text {
    margin: 0;
    text-align: center;
    line-height: 1.4;
    color: var(--color-dark, #222);
}


.ck-actions {
    margin-top: auto;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
}

.ck-btn {
    border: 0;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    background: var(--color-green, #0066cc);
    color: var(--color-white, #fff);
    width: 50%;
}

.ck-btn--ghost {
    background: #f0d5d6;
    color: var(--color-dark, #222);
}

.ck-btn:hover {
    filter: brightness(.97);
}

/* Small screens */
@media (max-width: 560px) {
    .ck-modal {
        padding: 1rem 1rem 2rem 1rem;
    }
    .ck-btn {
        width: 90%
    }
}