.about {
    position: relative;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr minmax(8px, 15%) 1fr;
    align-items: stretch;
    padding: 4rem;

    @media only screen and (max-width: 1023px) {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 2rem;
    }
}

.about-wrapper .col-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.about-wrapper .col-left .title {
    color: var(--color-coconut-husk);
    text-transform: uppercase;
}

.about-wrapper .col-left .about-button {
    display: flex;
    align-items: center;
    gap: 1rem;

    @media only screen and (max-width: 1023px) {
        justify-content: space-between;
    }
}

.about-wrapper .col-left .about-button .about-text {
    display: flex;
    flex-direction: column;
}

.about-wrapper .col-left .about-button .about-overline {
    color: var(--color-coconut-husk);
    font-size: var(--font-size-2xs);
    text-transform: uppercase;
}

.about-wrapper .col-left .about-button .about-title {
    color: var(--color-palm-green);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
}

.about-wrapper .col-left .about-button .about-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 3.2rem;
    height: 3.2rem;
    background-color: var(--color-coconut-husk);
    mask-image: var(--arrow-very-long-right-icon);
    -webkit-mask-image: var(--arrow-very-long-right-icon);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.about-wrapper .col-left .about-button:hover .about-icon {
    animation: floatX 1s ease-in-out infinite;

    @media only screen and (max-width: 1023px) {
        animation: none;
        transform: translateX(0);
    }
}

.about-wrapper .col-mid {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    @media only screen and (max-width: 1023px) {
        flex-direction: row;
        width: 100%;
        height: auto;
    }
}

.about-wrapper .col-mid::before,
.about-wrapper .col-mid::after {
    content: "";
    width: 1px;
    background-color: var(--color-coconut-husk);
    flex: 1;

    @media only screen and (max-width: 1023px) {
        width: 100%;
        height: 1px;
    }
}

.about-wrapper .col-mid .logo {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    margin: 0.5rem 0;
    background-color: var(--color-coconut-husk);
    mask-image: var(--logo-url);
    -webkit-mask-image: var(--logo-url);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

.about-wrapper .col-right {
    position: relative;
    width: 480px;
    height: 320px;
    flex-shrink: 0;
    overflow: hidden;
    justify-content: center;
    border-radius: 0;
    transition: border-radius 0.6s ease;

    @media only screen and (max-width: 1023px) {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        margin-inline: 0;
    }
}

.about-wrapper .col-right .inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 1;
    transition: opacity .45s ease, transform .45s ease;
    will-change: opacity, transform;
}

.about-wrapper .col-right:hover .inner {
    opacity: 0;
    transform: scale(0.98);
}

.about-wrapper .col-right .inner .hint {
    margin: 0;
    color: white;
    font-size: var(--font-size-2xs);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-wrapper .col-right .inner .hint-hover {
    @media only screen and (max-width: 1023px) {
        display: none;
    }
}

.about-wrapper .col-right .inner .hint-tap {
    display: none;

    @media only screen and (max-width: 1023px) {
        display: block;
    }
}

.about-wrapper .col-right .inner .icon {
    display: inline-block;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background-color: white;
    mask-image: var(--sun-icon);
    -webkit-mask-image: var(--sun-icon);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    animation: sunSpin 12s linear infinite;
    will-change: transform;
}

.about-wrapper .col-right img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    filter: grayscale(50%) brightness(0.5) contrast(1.05);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 0.8s ease, filter 0.8s ease, box-shadow 0.8s ease;

    @media only screen and (max-width: 1023px) {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1);
    }
}

.about-wrapper .col-right:hover {
    border-radius: 1.5rem;
}

.about-wrapper .col-right:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.05) contrast(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .about-wrapper .col-left .about-button .about-icon,
    .about-wrapper .col-right .inner,
    .about-wrapper .col-right img {
        transform: none !important;
        filter: none !important;
        box-shadow: none !important;
    }
}