/*
 * The Hive - About The Hive sections
 * Vision & benefits, "A building with purpose".
 * Sizes follow the 1440px Figma frame through --u (see app.css).
 */

/* ------------------------------------------------------------------ Vision */

.vision {
    padding: max(56px, calc(71 * var(--u))) 0 max(72px, calc(121 * var(--u)));
}

/* Unequal columns, as drawn: each starts at its hairline */
.vision__grid {
    display: grid;
    grid-template-columns: 330fr 377fr 348fr 263fr;
    margin-top: max(56px, calc(106 * var(--u)));
}

.vision__item {
    position: relative;
    min-height: max(200px, calc(240 * var(--u)));
    padding: max(104px, calc(111 * var(--u))) 16px 0 28px;
}

/* Hairline, solid at the top and fading out */
.vision__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, #fff 62%, rgba(255, 255, 255, 0));
}

/* Icon above the title; its Figma artboard (padding included) is placed by
   the offsets in inc/site-content.php */
.vision__title {
    position: relative;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: max(18px, calc(20 * var(--u)));
    line-height: 25px;
}

.vision__icon {
    position: absolute;
    top: var(--y);
    left: var(--x);
    max-width: none;
    pointer-events: none;
}

.vision__text {
    margin-top: 17px;
    font-size: max(16px, calc(18 * var(--u)));
    line-height: 1.1667;
}

/* Figma text box widths, so the lines break as designed */
@media (min-width: 1200px) {
    .vision__title {
        white-space: nowrap;
    }

    .vision__item:nth-child(1) .vision__text { max-width: 13.5em; }
    .vision__item:nth-child(2) .vision__text { max-width: 16.45em; }
    .vision__item:nth-child(3) .vision__text { max-width: 16.1em; }
    .vision__item:nth-child(4) .vision__text { max-width: 13.6em; }
}

/* ------------------------------------------------------------------ Purpose */

.purpose {
    padding: max(40px, calc(60 * var(--u))) 0 max(40px, calc(59 * var(--u)));
    background: #fff;
    color: var(--ink);
}

/* Card starts 722px into the 1318px row, as drawn, and keeps that share as the row narrows */
.purpose__inner {
    display: grid;
    grid-template-columns: minmax(0, 722fr) minmax(0, 596fr);
    align-items: center;
}

.purpose__copy {
    padding: max(16px, calc(14 * var(--u))) 32px 0 calc(75 * var(--u));
}

.purpose__title {
    font-weight: 600;
    font-size: max(22px, calc(26 * var(--u)));
    line-height: 0.962;
    text-transform: uppercase;
}

.purpose__text {
    max-width: 23.65em;
    margin-top: 20px;
    font-size: max(17px, calc(20 * var(--u)));
    line-height: 1.15;
    opacity: 0.5;
}

.purpose .btn {
    min-width: 276px;
    margin-top: max(32px, calc(57 * var(--u)));
}

/* Grey card; the lockup's artboard is a touch wider than the card, as drawn */
.purpose__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 603 / 381;
    border-radius: var(--radius);
    background: rgba(31, 23, 79, 0.06);
}

.purpose__logos img {
    width: 102.8%;
    max-width: none;
}

/* ------------------------------------------------------------------ Tablet */

@media (max-width: 1023px) {
    .vision__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 56px;
    }
}

/* ------------------------------------------------------------------ Phone */

@media (max-width: 767px) {
    /* Two across, to save scrolling */
    .vision__grid {
        row-gap: 40px;
    }

    .vision__item {
        min-height: 0;
        padding: 104px 8px 24px 20px;
    }

    .purpose__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .purpose__copy {
        padding: 16px 0 0;
    }
}
