/* =========================================================
   DOCTATECH
   ABOUT PREVIEW
   ========================================================= */

.about-preview {
    padding: 100px 0;
    background: var(--color-white);
}

.about-preview__container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);

    align-items: center;
    gap: 82px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.about-preview__content {
    max-width: 570px;
}

.about-preview__eyebrow {
    margin: 0 0 18px;

    color: var(--color-primary);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-preview__title {
    margin: 0;

    font-family: var(--font-display);

    font-size: clamp(46px, 5vw, 68px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.06em;

    color: var(--color-text);
}

.about-preview__title span {
    display: block;
    color: var(--color-primary);
}

.about-preview__text {
    max-width: 530px;

    margin: 25px 0 0;

    color: var(--color-text-muted);

    font-size: 16px;
    line-height: 1.75;
}

.about-preview__text + .about-preview__text {
    margin-top: 14px;
}

.about-preview__link {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-top: 28px;

    color: var(--color-primary);

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        gap 280ms cubic-bezier(0.16, 1, 0.3, 1),
        color 220ms ease;
}

.about-preview__link span {
    color: var(--color-accent);

    transition:
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-preview__link:hover {
    gap: 13px;
}

.about-preview__link:hover span {
    transform: translate(2px, -2px);
}


/* =========================================================
   VISUAL PANEL
   ========================================================= */

.about-preview__visual {
    position: relative;

    height: 400px;

    overflow: hidden;

    padding: 42px 46px;

    display: flex;
    flex-direction: column;

    background: var(--color-primary);

    border-radius: 18px;

    isolation: isolate;
}

.about-preview__visual::before {
    content: "";

    position: absolute;

    width: 245px;
    height: 245px;

    right: -70px;
    top: -80px;

    border-radius: 50%;

    background: rgba(255, 198, 0, 0.11);

    animation:
        aboutOrbOne
        9s
        ease-in-out
        infinite;

    pointer-events: none;
}

.about-preview__visual::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    left: -65px;
    bottom: -70px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);

    animation:
        aboutOrbTwo
        11s
        ease-in-out
        infinite;

    pointer-events: none;
}


/* =========================================================
   BRAND
   ========================================================= */

.about-preview__brand {
    position: relative;
    z-index: 4;

    display: flex;
    align-items: center;

    gap: 12px;
}

.about-preview__brand-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: var(--color-accent);
    color: var(--color-primary);

    border-radius: 9px;

    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;

    animation:
        aboutBrandMark
        700ms
        cubic-bezier(0.16, 1, 0.3, 1)
        both;

    animation-delay: 260ms;
}

.about-preview__brand span,
.about-preview__brand strong {
    display: block;
}

.about-preview__brand span {
    color: rgba(255, 255, 255, 0.65);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.about-preview__brand strong {
    margin-top: 2px;

    color: #ffffff;

    font-family: var(--font-display);
    font-size: 16px;
}


/* =========================================================
   MAIN STATEMENT
   ========================================================= */

.about-preview__statement {
    position: relative;
    z-index: 2;

    margin-top: 68px;

    max-width: 470px;

    font-family: var(--font-display);

    font-size: clamp(38px, 4vw, 56px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.05em;

    color: #ffffff;

    animation:
        aboutStatement
        800ms
        cubic-bezier(0.16, 1, 0.3, 1)
        both;

    animation-delay: 390ms;
}

.about-preview__statement span {
    display: block;

    color: var(--color-accent);
}


/* =========================================================
   CATEGORY LABELS
   ========================================================= */

.about-preview__pill {
    position: absolute;
    z-index: 5;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px 14px;

    background: rgba(255, 255, 255, 0.97);

    border-radius: 8px;

    color: var(--color-text);

    font-size: 12px;
    font-weight: 650;

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.13);

    transition:
        box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1),
        background-color 220ms ease;

    will-change: transform;
}

.about-preview__pill i {
    color: var(--color-primary);

    font-size: 13px;

    transition:
        transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-preview__pill:hover {
    background: #ffffff;

    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.18);
}

.about-preview__pill:hover i {
    transform: scale(1.12);
}


/* =========================================================
   TECHNOLOGY
   ========================================================= */

.about-preview__pill--one {
    top: 108px;
    right: 32px;

    animation:
        aboutPillOne
        6s
        ease-in-out
        infinite;

    animation-delay: 900ms;
}


/* =========================================================
   EDUCATION
   ========================================================= */

.about-preview__pill--two {
    left: 40px;
    bottom: 30px;

    animation:
        aboutPillTwo
        6.8s
        ease-in-out
        infinite;

    animation-delay: 1100ms;
}


/* =========================================================
   CREATIVITY
   ========================================================= */

.about-preview__pill--three {
    right: 40px;
    bottom: 30px;

    animation:
        aboutPillThree
        7.2s
        ease-in-out
        infinite;

    animation-delay: 1300ms;
}


/* =========================================================
   ABOUT MOTION
   ========================================================= */

@keyframes aboutBrandMark {

    from {
        opacity: 0;

        transform:
            scale(0.72)
            rotate(-8deg);
    }

    to {
        opacity: 1;

        transform:
            scale(1)
            rotate(0);
    }

}


@keyframes aboutStatement {

    from {
        opacity: 0;

        transform:
            translate3d(0, 22px, 0);
    }

    to {
        opacity: 1;

        transform:
            translate3d(0, 0, 0);
    }

}


@keyframes aboutPillOne {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0);
    }

    50% {
        transform:
            translate3d(0, -5px, 0);
    }

}


@keyframes aboutPillTwo {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0);
    }

    50% {
        transform:
            translate3d(0, 5px, 0);
    }

}


@keyframes aboutPillThree {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0);
    }

    50% {
        transform:
            translate3d(0, -4px, 0);
    }

}


@keyframes aboutOrbOne {

    0%,
    100% {
        opacity: 0.65;

        transform:
            scale(1)
            translate3d(0, 0, 0);
    }

    50% {
        opacity: 0.95;

        transform:
            scale(1.08)
            translate3d(-8px, 8px, 0);
    }

}


@keyframes aboutOrbTwo {

    0%,
    100% {
        transform:
            scale(1)
            translate3d(0, 0, 0);
    }

    50% {
        transform:
            scale(1.1)
            translate3d(8px, -6px, 0);
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .about-preview {
        padding: 85px 0;
    }

    .about-preview__container {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .about-preview__content {
        max-width: 700px;
    }

    .about-preview__visual {
        height: 390px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .about-preview {
        padding: 70px 0;
    }

    .about-preview__container {
        width: min(100% - 32px, 1200px);

        gap: 36px;
    }

    .about-preview__title {
        font-size: clamp(43px, 12vw, 58px);
    }

    .about-preview__text {
        font-size: 15px;
        line-height: 1.65;
    }

    .about-preview__visual {
        height: 360px;

        padding: 30px;

        border-radius: 14px;
    }

    .about-preview__statement {
        margin-top: 58px;

        font-size: 39px;
    }

    .about-preview__pill {
        padding: 9px 11px;

        font-size: 10px;
    }

    .about-preview__pill i {
        font-size: 11px;
    }

    .about-preview__pill--one {
        top: 92px;
        right: 18px;
    }

    .about-preview__pill--two {
        left: 20px;
        bottom: 22px;
    }

    .about-preview__pill--three {
        right: 20px;
        bottom: 22px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .about-preview__visual {
        height: 340px;

        padding: 26px;
    }

    .about-preview__statement {
        margin-top: 54px;

        font-size: 35px;
    }

    .about-preview__pill {
        padding: 8px 9px;

        font-size: 9px;
    }

    .about-preview__pill--one {
        top: 88px;
        right: 14px;
    }

    .about-preview__pill--two {
        left: 14px;
        bottom: 18px;
    }

    .about-preview__pill--three {
        right: 14px;
        bottom: 18px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    .about-preview__visual::before,
    .about-preview__visual::after,
    .about-preview__brand-mark,
    .about-preview__statement,
    .about-preview__pill--one,
    .about-preview__pill--two,
    .about-preview__pill--three {

        animation: none;
    }

}