/* ============================================================
   ATRABYTE SEARCH
   Search results page
   ============================================================ */


/* ------------------------------------------------------------
   PAGE
   ------------------------------------------------------------ */

.search-results-page {
    background: #f7f8fc;
}

.search-results-page #landing {
    background: #f7f8fc;
    color: #0b0d18;
}

.search-results-page #foot {
    margin-top: 0;
}


.search-page {
    --search-ink: #0b0d18;
    --search-muted: #666a7d;
    --search-violet: #6044ec;
    --search-violet-soft: #e5e4ff;
    --search-violet-light: #f0efff;
    --search-rule: #d8dbe5;
    --search-bg: #f7f8fc;
    --search-white: #ffffff;
    --search-dark: #0c0e1a;

    width: 100%;
    overflow: hidden;

    background: var(--search-bg);
    color: var(--search-ink);

    font-family: inherit;
}


.search-container {
    width: min(1320px, calc(100% - 5rem));
    margin-inline: auto;
}


/* ------------------------------------------------------------
   ACCESSIBILITY
   ------------------------------------------------------------ */

.search-page a:focus-visible,
.search-page button:focus-visible,
.search-page input:focus-visible {
    outline: 2px solid var(--search-violet);
    outline-offset: 4px;
}


/* ============================================================
   HERO
   ============================================================ */

.search-hero {
    position: relative;

    padding:
        clamp(5.5rem, 9vw, 8rem)
        0
        clamp(5rem, 8vw, 7rem);

    overflow: hidden;
}


/* ------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------ */

.search-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;

    margin-bottom: clamp(3rem, 5vw, 4.5rem);

    color: var(--search-muted);

    font-size: 0.7rem;
    line-height: 1;
}


.search-breadcrumb a {
    color: inherit;
    text-decoration: none;

    transition: color 180ms ease;
}


.search-breadcrumb a:hover {
    color: var(--search-violet);
}


.search-breadcrumb > span:last-child {
    color: var(--search-ink);
    font-weight: 650;
}


/* ------------------------------------------------------------
   HERO GRID
   ------------------------------------------------------------ */

.search-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(22rem, 0.75fr);

    gap: clamp(4rem, 9vw, 9rem);

    align-items: center;

    direction: ltr;
}


.search-hero-grid > * {
    direction: ltr;
}


html[dir="rtl"] .search-hero-grid > * {
    direction: rtl;
}


/* ------------------------------------------------------------
   HERO COPY
   ------------------------------------------------------------ */

.search-hero-copy {
    position: relative;
    z-index: 2;
}


.search-eyebrow {
    display: block;

    margin-bottom: 1.25rem;

    color: var(--search-violet);

    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.4;
}


.search-hero h1 {
    max-width: 12ch;

    margin: 0;

    font-size: clamp(3.3rem, 5.5vw, 5.8rem);
    font-weight: 720;

    line-height: 1.06;

    letter-spacing: -0.045em;

    text-wrap: balance;
}


html[dir="rtl"] .search-hero h1 {
    max-width: 14ch;

    line-height: 1.35;

    letter-spacing: 0;
}


.search-hero h1 strong {
    display: block;

    color: var(--search-violet);

    font-weight: inherit;
}


.search-hero-description {
    max-width: 57ch;

    margin: 1.5rem 0 0;

    color: var(--search-muted);

    font-size: 0.9rem;
    line-height: 2;

    text-wrap: pretty;
}


/* ============================================================
   SEARCH FORM
   ============================================================ */

.search-form {
    max-width: 46rem;

    margin-top: clamp(2.5rem, 4vw, 3.5rem);
}


.search-input-wrap {
    min-height: 4.5rem;

    display: flex;
    align-items: center;

    gap: 0.5rem;

    padding: 0.4rem;

    border: 1px solid var(--search-rule);
    border-radius: 999px;

    background: #eceef5;

    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}


.search-input-wrap:focus-within {
    border-color: var(--search-violet);

    background: var(--search-white);

    box-shadow:
        0 0 0 4px rgba(96, 68, 236, 0.06);
}


.search-input-icon {
    width: 1.15rem;
    height: 1.15rem;

    margin-inline-start: 1rem;

    flex: 0 0 auto;

    fill: none;

    stroke: var(--search-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
}


.search-form input {
    min-width: 0;

    flex: 1;

    height: 3.6rem;

    padding-inline: 0.65rem;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--search-ink);

    font: inherit;
    font-size: 0.84rem;
    font-weight: 550;
}


.search-form input::placeholder {
    color: #777b8b;
    opacity: 1;
}


.search-form button {
    min-width: 7rem;
    height: 3.55rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 1rem;

    padding-inline: 1.3rem;

    border: 0;
    border-radius: 999px;

    background: var(--search-dark);
    color: #ffffff;

    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 180ms cubic-bezier(.16, 1, .3, 1),
        background-color 180ms ease;
}


.search-form button:hover {
    transform: translateY(-1px);

    background: var(--search-violet);
}


/* ============================================================
   HERO BRAND ART
   ============================================================ */

.search-hero-brand {
    position: relative;

    width: min(100%, 30rem);

    aspect-ratio: 1;

    justify-self: center;

    display: grid;
    place-items: center;
}


.search-hero-brand::before {
    content: "";

    position: absolute;

    width: 8rem;
    height: 8rem;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #ffffff 0%,
            #d7d8ff 28%,
            #795cff 55%,
            #3620a5 78%,
            #11152e 100%
        );

    box-shadow:
        0 1.5rem 5rem rgba(96, 68, 236, 0.18);

    z-index: 3;
}


.search-orbit {
    position: absolute;

    border: 1px solid rgba(96, 68, 236, 0.2);
    border-radius: 50%;
}


.search-orbit--one {
    width: 68%;
    height: 68%;
}


.search-orbit--two {
    width: 92%;
    height: 46%;

    transform: rotate(-20deg);
}


.search-orbit--three {
    width: 48%;
    height: 94%;

    transform: rotate(34deg);
}


.search-brand-copy {
    position: absolute;

    inset: auto 0 2rem;

    display: flex;
    justify-content: space-between;

    padding-inline: 1rem;

    color: var(--search-muted);

    font-family: Archivo, Arial, sans-serif;
    font-size: 0.58rem;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* ============================================================
   RESULTS
   ============================================================ */

.search-results {
    padding-bottom: clamp(7rem, 10vw, 10rem);
}


/* ------------------------------------------------------------
   RESULTS HEADER
   ------------------------------------------------------------ */

.search-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 3rem;

    padding-block: 2rem;

    border-block: 1px solid var(--search-rule);
}


.search-results-title > span {
    display: block;

    margin-bottom: 0.65rem;

    color: var(--search-violet);

    font-size: 0.62rem;
    font-weight: 700;
}


.search-results-title p {
    margin: 0;

    color: var(--search-muted);

    font-size: 0.75rem;
}


.search-results-title strong {
    display: inline-grid;

    min-width: 2rem;
    height: 2rem;

    place-items: center;

    margin-inline-end: 0.5rem;

    border-radius: 50%;

    background: var(--search-violet-soft);
    color: var(--search-violet);

    font-family: Archivo, Arial, sans-serif;
    font-size: 0.65rem;
}


/* ------------------------------------------------------------
   FILTERS
   ------------------------------------------------------------ */

.search-filter {
    display: flex;
    align-items: center;

    gap: 0.35rem;
}


.search-filter button {
    display: inline-flex;
    align-items: center;

    gap: 0.55rem;

    min-height: 2.4rem;

    padding-inline: 0.9rem;

    border: 1px solid transparent;
    border-radius: 999px;

    background: transparent;

    color: var(--search-muted);

    font: inherit;
    font-size: 0.66rem;
    font-weight: 650;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}


.search-filter button span {
    color: var(--search-violet);

    font-family: Archivo, Arial, sans-serif;
    font-size: 0.58rem;
}


.search-filter button:hover {
    color: var(--search-ink);

    background: #eceef5;
}


.search-filter button.is-active {
    border-color: var(--search-rule);

    background: var(--search-white);
    color: var(--search-ink);
}


/* ============================================================
   GROUPS
   ============================================================ */

.search-group {
    padding-block: clamp(5.5rem, 8vw, 8rem);
}


.search-group + .search-group {
    border-top: 1px solid var(--search-rule);
}


.search-group-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 2rem;

    margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}


.search-group-heading > div {
    display: flex;
    align-items: baseline;

    gap: 1.25rem;
}


.search-group-heading > div > span {
    color: var(--search-violet);

    font-family: Archivo, Arial, sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
}


.search-group-heading h2 {
    max-width: 15ch;

    margin: 0;

    font-size: clamp(2.4rem, 4.2vw, 4rem);
    font-weight: 650;

    line-height: 1.15;

    letter-spacing: -0.035em;

    text-wrap: balance;
}


html[dir="rtl"] .search-group-heading h2 {
    line-height: 1.4;

    letter-spacing: 0;
}


.search-group-heading > p {
    margin: 0;

    color: var(--search-muted);

    font-size: 0.67rem;
}


/* ============================================================
   PROJECTS
   ============================================================ */

.search-project-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.25rem;
}


.search-project-card {
    overflow: hidden;

    border: 1px solid var(--search-rule);
    border-radius: 16px;

    background: var(--search-white);

    transition:
        transform 280ms cubic-bezier(.16, 1, .3, 1),
        border-color 180ms ease,
        box-shadow 280ms ease;
}


.search-project-card:hover {
    transform: translateY(-4px);

    border-color: #c6c4ef;

    box-shadow:
        0 1.5rem 4rem rgba(20, 23, 44, 0.06);
}


.search-project-image {
    position: relative;

    display: block;

    height: clamp(19rem, 29vw, 28rem);

    overflow: hidden;

    background: var(--search-dark);
}


.search-project-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 600ms cubic-bezier(.16, 1, .3, 1);
}


.search-project-card:hover .search-project-image img {
    transform: scale(1.025);
}


.search-project-content {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}


.search-card-meta {
    display: flex;
    align-items: center;

    gap: 0.75rem;

    margin-bottom: 1.5rem;

    font-size: 0.62rem;
}


.search-card-meta > span {
    color: var(--search-violet);

    font-weight: 700;
}


.search-card-meta small {
    color: var(--search-muted);

    font-size: inherit;
}


.search-project-content h3,
.search-article-content h3 {
    margin: 0;
}


.search-project-content h3 a {
    color: var(--search-ink);

    font-size: clamp(1.55rem, 2.5vw, 2.4rem);
    font-weight: 650;

    line-height: 1.35;

    text-decoration: none;

    text-wrap: balance;
}


.search-project-content > p {
    max-width: 55ch;

    margin: 1rem 0 0;

    color: var(--search-muted);

    font-size: 0.75rem;
    line-height: 1.9;
}


.search-card-link {
    display: inline-flex;
    align-items: center;

    gap: 2rem;

    margin-top: 1.75rem;

    padding-bottom: 0.35rem;

    border-bottom: 1px solid currentColor;

    color: var(--search-ink);

    font-size: 0.67rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 180ms ease,
        gap 280ms cubic-bezier(.16, 1, .3, 1);
}


.search-card-link:hover {
    gap: 2.4rem;

    color: var(--search-violet);
}


/* ============================================================
   SERVICES
   ============================================================ */

.search-service-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-top: 1px solid var(--search-rule);
}


.search-service-card {
    min-height: 15rem;

    display: grid;

    grid-template-columns: 2.5rem 1fr auto;

    align-items: center;

    gap: 1rem;

    padding: 2rem;

    border-bottom: 1px solid var(--search-rule);

    color: var(--search-ink);

    text-decoration: none;

    transition:
        background-color 220ms ease,
        padding 280ms cubic-bezier(.16, 1, .3, 1);
}


.search-service-card:nth-child(odd) {
    border-inline-end: 1px solid var(--search-rule);
}


.search-service-card:hover {
    background: var(--search-violet-light);
}


.search-service-number {
    align-self: start;

    color: var(--search-violet);

    font-family: Archivo, Arial, sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
}


.search-service-card small {
    display: block;

    margin-bottom: 0.7rem;

    color: var(--search-violet);

    font-size: 0.61rem;
}


.search-service-card h3 {
    max-width: 18ch;

    margin: 0;

    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 650;

    line-height: 1.45;

    text-wrap: balance;
}


.search-service-card p {
    max-width: 48ch;

    margin: 0.8rem 0 0;

    color: var(--search-muted);

    font-size: 0.7rem;
    line-height: 1.85;
}


.search-service-arrow {
    color: var(--search-violet);

    font-size: 1.15rem;

    transition:
        transform 220ms cubic-bezier(.16, 1, .3, 1);
}


.search-service-card:hover .search-service-arrow {
    transform: translate(3px, -3px);
}


html[dir="rtl"]
.search-service-card:hover
.search-service-arrow {
    transform: translate(-3px, -3px);
}


/* ============================================================
   ARTICLES
   ============================================================ */

.search-article-list {
    border-top: 1px solid var(--search-rule);
}


.search-article-card {
    display: grid;

    grid-template-columns:
        minmax(14rem, 0.35fr)
        minmax(0, 1fr);

    min-height: 18rem;

    border-bottom: 1px solid var(--search-rule);
}


.search-article-image {
    display: block;

    min-height: 18rem;

    overflow: hidden;

    background: #e7e8ef;
}


.search-article-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 500ms cubic-bezier(.16, 1, .3, 1);
}


.search-article-card:hover .search-article-image img {
    transform: scale(1.025);
}


.search-article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(2rem, 4vw, 4rem);
}


.search-article-content h3 a {
    max-width: 22ch;

    display: block;

    color: var(--search-ink);

    font-size: clamp(1.45rem, 2.5vw, 2.3rem);
    font-weight: 650;

    line-height: 1.4;

    text-decoration: none;

    text-wrap: balance;
}


.search-article-content > p {
    max-width: 60ch;

    margin: 1rem 0 0;

    color: var(--search-muted);

    font-size: 0.73rem;
    line-height: 1.9;
}


/* ============================================================
   CTA
   ============================================================ */

.search-cta {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(18rem, 0.55fr);

    min-height: 31rem;

    margin-top: clamp(3rem, 6vw, 6rem);

    overflow: hidden;

    border-radius: 18px;

    background: var(--search-dark);
    color: #ffffff;
}


.search-cta-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(2.5rem, 6vw, 6rem);
}


.search-cta-copy > span {
    margin-bottom: 1rem;

    color: #9685ff;

    font-size: 0.67rem;
    font-weight: 700;
}


.search-cta h2 {
    max-width: 13ch;

    margin: 0;

    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    font-weight: 650;

    line-height: 1.15;

    letter-spacing: -0.04em;

    text-wrap: balance;
}


html[dir="rtl"] .search-cta h2 {
    line-height: 1.4;

    letter-spacing: 0;
}


.search-cta p {
    max-width: 52ch;

    margin: 1.5rem 0 0;

    color: #a9adbc;

    font-size: 0.76rem;
    line-height: 2;
}


.search-cta-copy > a {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 2rem;

    margin-top: 2rem;

    padding-bottom: 0.4rem;

    border-bottom: 1px solid #ffffff;

    color: #ffffff;

    font-size: 0.7rem;
    font-weight: 700;

    text-decoration: none;
}


.search-cta-art {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(96, 68, 236, 0.28),
            transparent 55%
        );
}


.search-cta-art::before,
.search-cta-art::after,
.search-cta-art span {
    content: "";

    position: absolute;

    inset: 50% auto auto 50%;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}


.search-cta-art::before {
    width: 25rem;
    height: 25rem;
}


.search-cta-art::after {
    width: 16rem;
    height: 16rem;
}


.search-cta-art span:first-child {
    width: 9rem;
    height: 9rem;

    background: var(--search-violet);
}


.search-cta-art span:nth-child(2) {
    width: 1px;
    height: 100%;

    border: 0;
    border-radius: 0;

    background: rgba(255, 255, 255, 0.13);
}


.search-cta-art i {
    position: absolute;

    inset: 50% auto auto 50%;

    transform: translate(-50%, -50%);

    z-index: 2;

    color: #ffffff;

    font-family: Archivo, Arial, sans-serif;
    font-size: 2rem;
    font-style: normal;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.search-empty,
.search-start {
    max-width: 55rem;

    padding-block: clamp(6rem, 10vw, 10rem);
}


.search-empty-code,
.search-start > .search-container > span {
    display: block;

    margin-bottom: 1rem;

    color: var(--search-violet);

    font-family: Archivo, Arial, sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
}


.search-empty h2,
.search-start h2 {
    max-width: 13ch;

    margin: 0;

    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 650;

    line-height: 1.15;

    letter-spacing: -0.04em;

    text-wrap: balance;
}


html[dir="rtl"] .search-empty h2,
html[dir="rtl"] .search-start h2 {
    line-height: 1.4;

    letter-spacing: 0;
}


.search-empty p,
.search-start p {
    max-width: 55ch;

    margin: 1.5rem 0 0;

    color: var(--search-muted);

    font-size: 0.8rem;
    line-height: 2;
}


.search-empty > a {
    display: inline-flex;
    align-items: center;

    gap: 2rem;

    margin-top: 2rem;

    padding-bottom: 0.4rem;

    border-bottom: 1px solid currentColor;

    color: var(--search-ink);

    font-size: 0.7rem;
    font-weight: 700;

    text-decoration: none;
}


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

@media (max-width: 1000px) {

    .search-container {
        width: calc(100% - 3rem);
    }


    .search-hero-grid {
        grid-template-columns: minmax(0, 1fr) 20rem;

        gap: 3rem;
    }


    .search-project-grid {
        grid-template-columns: 1fr;
    }


    .search-service-grid {
        grid-template-columns: 1fr;
    }


    .search-service-card:nth-child(odd) {
        border-inline-end: 0;
    }


    .search-cta {
        grid-template-columns: 1fr 18rem;
    }

}


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

@media (max-width: 760px) {

    .search-container {
        width: calc(100% - 2rem);
    }


    /* Hero */

    .search-hero {
        padding-block: 4.5rem 4rem;
    }


    .search-breadcrumb {
        margin-bottom: 3rem;
    }


    .search-hero-grid {
        grid-template-columns: 1fr;

        gap: 3rem;
    }


    .search-hero h1 {
        font-size: clamp(2.7rem, 12vw, 4rem);
    }


    .search-hero-brand {
        width: min(20rem, 80vw);

        order: -1;
    }


    /* Search */

    .search-input-wrap {
        min-height: 4rem;
    }


    .search-form button {
        min-width: 3.3rem;
        width: 3.3rem;

        padding: 0;

        font-size: 0;
    }


    .search-form button span {
        font-size: 1rem;
    }


    /* Results header */

    .search-results-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 1.5rem;
    }


    .search-filter {
        width: 100%;

        overflow-x: auto;

        padding-bottom: 0.35rem;

        scrollbar-width: none;
    }


    .search-filter::-webkit-scrollbar {
        display: none;
    }


    .search-filter button {
        flex: 0 0 auto;
    }


    /* Groups */

    .search-group {
        padding-block: 5rem;
    }


    .search-group-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 1rem;

        margin-bottom: 2.5rem;
    }


    .search-group-heading h2 {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }


    /* Projects */

    .search-project-image {
        height: 20rem;
    }


    /* Articles */

    .search-article-card {
        grid-template-columns: 1fr;
    }


    .search-article-image {
        min-height: 17rem;
    }


    .search-article-content {
        padding: 1.75rem 1rem 2.5rem;
    }


    /* CTA */

    .search-cta {
        grid-template-columns: 1fr;

        min-height: auto;
    }


    .search-cta-copy {
        padding: 3rem 1.5rem;
    }


    .search-cta-art {
        min-height: 18rem;
    }

}


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

@media (max-width: 480px) {

    .search-hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.3rem);
    }


    .search-hero-description {
        font-size: 0.82rem;
    }


    .search-hero-brand {
        width: 16rem;
    }


    .search-brand-copy {
        display: none;
    }


    .search-project-image {
        height: 16rem;
    }


    .search-project-content {
        padding: 1.35rem;
    }


    .search-service-card {
        grid-template-columns: 2rem 1fr auto;

        min-height: 12rem;

        padding: 1.4rem 0.5rem;
    }


    .search-service-card p {
        font-size: 0.68rem;
    }


    .search-article-image {
        min-height: 14rem;
    }


    .search-cta h2 {
        font-size: 2.5rem;
    }

}


/* ============================================================
   GERMAN TEXT SAFETY
   ============================================================ */

@media (max-width: 420px) {

    html[lang="de"] .search-hero h1,
    html[lang="de"] .search-group-heading h2,
    html[lang="de"] .search-cta h2 {
        hyphens: auto;
        overflow-wrap: anywhere;
    }

}


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

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

    .search-page *,
    .search-page *::before,
    .search-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

}


