.hero {
    --hero-progress: 0;
    --hero-shift: 0px;
    --hero-reveal: clamp(0, (var(--hero-progress) - 0.45) * 2.2, 1);
    height: 230vh;
    height: 230svh;
    padding: var(--page-gutter);
}

.hero__card {
    position: sticky;
    top: var(--page-gutter);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--page-gutter) * 2);
    height: calc(100svh - var(--page-gutter) * 2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-indigo);
}

.hero__art {
    --art-h: 0px;
    --hero-overflow: 0px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 115%;
    overflow: hidden;
    background-color: var(--color-indigo);
    transform: translate3d(0, calc(var(--hero-progress) * -13.04%), 0);
    will-change: transform;
}

.hero__layer {
    --layer-sink: 0;
    position: absolute;
    top: 0;
    left: 50%;
    width: max(100%, calc(var(--art-h) * 1535 / 1090));
    aspect-ratio: 1535 / 1090;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: translate3d(-50%, calc(var(--hero-progress) * (var(--layer-sink) * var(--art-h) - var(--hero-overflow))), 0);
    backface-visibility: hidden;
    will-change: transform;
}

.hero__layer--far {
    --layer-sink: 0.24;
}

.hero__layer--mid {
    --layer-sink: 0.15;
}

.hero__layer--near {
    --layer-sink: 0.08;
}

.hero__layer--ridge {
    --layer-sink: 0.03;
}

.hero__layer--sky {
    background-image: url("../../images/art/hero-layers/sky.webp");
}

.hero__layer--far {
    background-image: url("../../images/art/hero-layers/mountains-far.webp");
}

.hero__layer--mid {
    background-image: url("../../images/art/hero-layers/mountains-mid.webp");
}

.hero__layer--near {
    background-image: url("../../images/art/hero-layers/mountains-near.webp");
}

.hero__layer--ridge {
    background-image: url("../../images/art/hero-layers/mountains-ridge.webp");
}

.hero__layer--front {
    background-image: url("../../images/art/hero-layers/front.webp");
}

.hero__content {
    --hero-title-size: var(--display-size);
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 var(--container-padding) 22vh;
    color: var(--color-white);
    text-align: center;
}

.hero__eyebrow {
    font-size: var(--eyebrow-size);
    white-space: nowrap;
    letter-spacing: 0.205em;
    margin-right: -0.205em;
    transform: translateX(calc(var(--hero-shift) * var(--hero-progress) * -1));
}

.hero__title {
    font-size: var(--hero-title-size);
    margin-top: -0.13em;
    transform: translateX(calc(var(--hero-shift) * var(--hero-progress)));
}

.hero__intro {
    position: absolute;
    z-index: 1;
    left: var(--container-padding);
    right: var(--container-padding);
    bottom: clamp(24px, 4vw, 48px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    color: var(--color-white);
    opacity: var(--hero-reveal);
    transform: translateY(calc((1 - var(--hero-reveal)) * 24px));
    pointer-events: none;
}

.hero__more {
    display: none;
}

.hero__link {
    --card-link-bg: var(--color-white);
    --card-link-ink: var(--color-indigo);
    --card-link-badge-inset: auto var(--container-padding) clamp(24px, 4vw, 48px) auto;
}

.hero__link .card-link__badge {
    opacity: var(--hero-reveal);
}

.hero:not(.is-revealed) .hero__link {
    pointer-events: none;
}

body:has(.hero:not(.is-revealed)) .cursor-badge {
    visibility: hidden;
}

@media (max-width: 760px) {
    .hero {
        height: 170vh;
        height: 170svh;
    }

    .hero__content {
        padding-bottom: 28vh;
    }

    .hero__eyebrow,
    .hero__title {
        transform: none;
    }

    .hero__intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero__link {
        display: none;
    }

    .hero__more {
        display: inline-flex;
        padding: 14px 24px;
        pointer-events: auto;
    }

    .hero:not(.is-revealed) .hero__more {
        pointer-events: none;
    }
}

.needs {
    --needs-reveal: 0;
    --needs-split: 0;
    --needs-pan: 0px;
    --needs-art-pan: 0px;
    --needs-pan-progress: 0;
    --needs-track-width: 100%;
    --needs-stage-width: 100%;
    --needs-eyebrow-shift: 0px;
    --needs-title-shift: 0px;
    --art-drop: 33svh;
    --canyon-line: calc(63svh - var(--art-drop));
    position: relative;
    height: 300vh;
    margin-top: clamp(80px, 16vh, 200px);
    --fade-depth: 24svh;
    margin-bottom: var(--fade-depth);
}

.needs__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow-x: clip;
    overflow-y: visible;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-petal) 16%, var(--color-blush) 34%, var(--color-rose) 48%, var(--color-flamingo) 58%, var(--color-coral-pink) 80%, var(--color-coral-pink) 100%);
}

.needs__stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: calc(var(--fade-depth) + 2px);
    background: linear-gradient(180deg, rgba(35, 33, 79, 0) 0%, var(--color-midnight) 100%);
    pointer-events: none;
}

.needs__sky,
.needs__dusk {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
}

.needs__sky {
    width: 250%;
    background:
        radial-gradient(ellipse 24% 44% at 12% 58%, rgba(250, 206, 196, 0.55), transparent 72%),
        radial-gradient(ellipse 26% 50% at 38% 42%, rgba(236, 160, 190, 0.35), transparent 72%),
        radial-gradient(ellipse 26% 46% at 63% 54%, rgba(248, 190, 200, 0.4), transparent 72%),
        radial-gradient(ellipse 28% 52% at 88% 44%, rgba(226, 150, 186, 0.35), transparent 72%);
    transform: translate3d(calc(var(--needs-pan-progress) * -60%), 0, 0);
    will-change: transform;
}

.needs__dusk {
    right: 0;
    background: linear-gradient(180deg, rgba(214, 132, 168, 0.28) 18%, rgba(214, 132, 168, 0.13) 40%, transparent 62%);
    opacity: var(--needs-pan-progress);
}

.needs__track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--needs-track-width);
    transform: translate3d(calc(var(--needs-pan) * -1), 0, 0);
    will-change: transform;
}

.needs__art {
    position: absolute;
    left: 0;
    bottom: calc(var(--art-drop) * -1);
    height: 100vh;
    height: 100svh;
    width: auto;
    max-width: none;
    transform: translate3d(calc(var(--needs-art-pan) * -1), 0, 0);
    will-change: transform;
    user-select: none;
    pointer-events: none;
}

.needs__content {
    --needs-title-size: clamp(64px, 14vw, 220px);
    position: absolute;
    bottom: calc(var(--canyon-line) + 5vh + 36px);
    left: 0;
    width: var(--needs-stage-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--container-padding);
    color: var(--color-violet);
    text-align: center;
    opacity: var(--needs-reveal);
    transform: translateY(calc((1 - var(--needs-reveal)) * 60px));
}

.needs__eyebrow {
    font-size: var(--eyebrow-size);
    white-space: nowrap;
    letter-spacing: 0.205em;
    margin-right: calc(var(--needs-title-size) * 1.7 - 0.205em);
    transform: translateX(calc(var(--needs-eyebrow-shift) * var(--needs-split) * -1));
}

.needs__title {
    font-size: var(--needs-title-size);
    white-space: nowrap;
    margin-top: -0.2em;
    transform: translateX(calc(var(--needs-title-shift) * var(--needs-split)));
}

@media (max-width: 760px) {
    .needs__content {
        bottom: calc(var(--canyon-line) + 8vh);
    }

    .needs__eyebrow {
        margin-right: -0.205em;
    }

    .needs__title {
        margin-top: -0.08em;
    }
}

.needs__cards {
    position: absolute;
    bottom: calc(var(--canyon-line) + 2vh + 14px);
    left: var(--needs-stage-width);
    display: flex;
    align-items: stretch;
    gap: 5vw;
}

.needs__cards .need-card {
    --drop: 0;
    --drop-opacity: 0;
    --rest-y: 0vh;
    --rest-rotate: 0deg;
    opacity: var(--drop-opacity);
    transform: translateY(calc((1 - var(--drop)) * -62vh + var(--rest-y))) rotate(calc((1 - var(--drop)) * -7deg + var(--rest-rotate)));
    transform-origin: 50% 0;
    will-change: transform, opacity;
}

.needs__cards .need-card:nth-child(5n + 1) {
    --card-color: var(--color-iris);
    --rest-y: 1.5vh;
    --rest-rotate: -1deg;
}

.needs__cards .need-card:nth-child(5n + 2) {
    --card-color: var(--color-berry);
    --rest-y: -2vh;
    --rest-rotate: 0.8deg;
}

.needs__cards .need-card:nth-child(5n + 3) {
    --card-color: var(--color-cornflower);
    --rest-y: 3vh;
    --rest-rotate: -0.6deg;
}

.needs__cards .need-card:nth-child(5n + 4) {
    --card-color: var(--color-orchid);
    --rest-y: -0.5vh;
    --rest-rotate: 1.2deg;
}

.needs__cards .need-card:nth-child(5n + 5) {
    --card-color: var(--color-brick);
    --rest-y: 2vh;
    --rest-rotate: -1.2deg;
}

@media (max-width: 760px) {
    .needs {
        height: auto;
        margin-top: 0;
        margin-bottom: 0;
    }

    .needs__stage::after {
        top: auto;
        bottom: 0;
        z-index: 1;
        height: 140px;
    }

    .needs__stage {
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: clip;
    }

    .needs__sky,
    .needs__dusk {
        display: none;
    }

    .needs__track {
        position: relative;
        width: auto;
        transform: none;
    }

    .needs__content {
        position: relative;
        bottom: auto;
        width: auto;
        padding: 112px var(--container-padding) 40px;
        opacity: 1;
        transform: none;
    }

    .needs__cards {
        position: relative;
        bottom: auto;
        left: auto;
        flex-direction: column;
        gap: 20px;
        padding: 0 var(--container-padding);
    }

    .needs__cards .need-card {
        opacity: 1;
        transform: none;
        will-change: auto;
    }

    .needs__art {
        position: relative;
        bottom: auto;
        order: 1;
        width: 100%;
        height: 300px;
        margin-top: -40px;
        object-fit: cover;
        object-position: 12% bottom;
        transform: none;
    }
}

main {
    padding-bottom: clamp(48px, 8vh, 96px);
}

.has-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.has-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.journey {
    --journey-shift: 0px;
    --journey-progress: 0;
    position: relative;
    z-index: 1;
}

.journey__panel {
    position: relative;
    overflow: clip;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(96px, 12vw, 180px) var(--container-padding) var(--container-padding);
    background:
        radial-gradient(ellipse 60% 30% at 50% 22%, rgba(88, 73, 180, 0.45), transparent 70%),
        linear-gradient(180deg, var(--color-midnight) 0%, var(--color-midnight) 10%, var(--color-indigo-dark) 100%);
    color: var(--color-white);
}

.journey__intro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    margin-bottom: clamp(120px, 14vw, 240px);
    text-align: center;
}

.journey__title {
    --journey-word-size: var(--display-size);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: inherit;
}

.journey__kicker {
    font-size: calc(var(--journey-word-size) * 0.4678);
    white-space: nowrap;
    letter-spacing: 0.205em;
    margin-right: -0.205em;
    transform: translateX(calc(var(--journey-shift) * var(--journey-progress) * -1));
}

.journey__word {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: var(--journey-word-size);
    line-height: 0.8;
    letter-spacing: -0.02em;
    margin-top: -0.22em;
    padding-bottom: 0.24em;
    transform: translateX(calc(var(--journey-shift) * var(--journey-progress)));
}

.journey-badge {
    z-index: 2;
    align-self: flex-end;
    margin: calc(var(--badge-size) * -0.9) clamp(0px, 3vw, 64px) calc(var(--badge-size) * -0.5) 0;
}

.stack {
    --stack-top: 92px;
    --stack-step: 0px;
    position: relative;
    width: 100%;
    max-width: 1720px;
    padding-bottom: clamp(24px, 3vw, 48px);
}

.stack__item {
    position: sticky;
    top: calc(var(--stack-top) + var(--stack-index) * var(--stack-step));
    height: calc(100vh - var(--stack-top) - 4 * var(--stack-step) - 24px);
    height: calc(100svh - var(--stack-top) - 4 * var(--stack-step) - 24px);
    min-height: 520px;
}

.stack__item + .stack__item {
    margin-top: 10vh;
}

.stack__item:nth-child(1) {
    --stack-index: 0;
    --fly-dir: -1;
}

.stack__item:nth-child(2) {
    --stack-index: 1;
    --fly-dir: 1;
}

.stack__item:nth-child(3) {
    --stack-index: 2;
    --fly-dir: -1;
}

.stack__item:nth-child(4) {
    --stack-index: 3;
    --fly-dir: 1;
}

.stack__item .stack-card {
    --enter: 1;
    --fly: 0;
    transform-origin: 50% 100%;
    transform:
        translate3d(calc(var(--fly-dir) * var(--fly) * 75vw), calc(var(--fly) * -60vh + (1 - var(--enter)) * 10vh), 0)
        rotate(calc(var(--fly-dir) * (var(--fly) * 32deg - (1 - var(--enter)) * 6deg)))
        scale(calc(1 - var(--fly) * 0.3 - (1 - var(--enter)) * 0.08));
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .stack__item .stack-card {
        transform: none;
    }
}

@media (max-width: 760px) {
    .journey__panel {
        padding-top: 72px;
    }

    .journey__intro {
        margin-bottom: 72px;
    }

    .stack {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 8px;
    }

    .stack__item {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
    }

    .stack__item + .stack__item {
        margin-top: 0;
    }

    .stack__item .stack-card {
        height: auto;
        transform: none;
        will-change: auto;
    }
}

.stack__item:nth-child(2) .stack-card {
    --mountain-image: url("../../images/art/7.png");
    --mountain-ratio: 1222 / 346;
    --card-bg: var(--color-petal);
    --card-ink: var(--color-violet);
}

.stack__item:nth-child(3) .stack-card {
    --mountain-image: url("../../images/art/8.png");
    --mountain-ratio: 2103 / 515;
    --card-bg: var(--color-orchid);
}

.stack__item:nth-child(4) .stack-card {
    --mountain-image: url("../../images/art/9.png");
    --mountain-ratio: 2102 / 481;
    --mountain-width: 108%;
    --mountain-offset: -14%;
    --card-bg: var(--color-blush);
    --card-ink: var(--color-violet);
}


.grove__panel {
    position: relative;
    overflow: clip;
    display: flex;
    flex-direction: column;
    gap: clamp(96px, 12vw, 180px);
    padding: clamp(80px, 10vw, 160px) var(--container-padding) clamp(64px, 8vw, 120px);
    background:
        linear-gradient(180deg, var(--color-indigo-dark) 0px, rgba(47, 47, 128, 0.82) 90px, rgba(47, 47, 128, 0.5) 190px, rgba(47, 47, 128, 0.2) 290px, rgba(47, 47, 128, 0) 380px),
        linear-gradient(180deg, rgba(13, 48, 43, 0.45) 0%, rgba(13, 48, 43, 0.15) 18%, rgba(13, 48, 43, 0.1) 40%, rgba(13, 48, 43, 0) calc(100% - 1050px), var(--color-forest-night) calc(100% - 560px)),
        url("../../images/art/4.png") center top / 100% auto repeat-y,
        var(--color-forest-night);
    color: var(--color-white);
}

.grove__contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(40px, 6vw, 96px);
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
}

.grove__intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grove__title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(56px, 7.4vw, 128px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 30px rgba(6, 26, 22, 0.35);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 2.4vw, 40px);
    width: 100%;
    max-width: 1560px;
    margin-inline: auto;
}

.offer-grid {
    --offer-stagger: clamp(80px, 12vw, 200px);
    row-gap: clamp(20px, 2.4vw, 40px);
    padding-bottom: var(--offer-stagger);
}

.offer-grid > li:nth-child(odd) {
    translate: 0 var(--offer-stagger);
}

.offer-grid > li:nth-child(5) {
    grid-column: 2;
    translate: none;
}

.offer-grid > li:nth-child(1) .offer-card {
    rotate: -1deg;
}

.offer-grid > li:nth-child(2) .offer-card {
    --offer-bg: var(--color-sage);
    --offer-ink: var(--color-pine);
    rotate: 1.2deg;
}

.offer-grid > li:nth-child(3) .offer-card {
    --offer-bg: var(--color-wheat);
    --offer-ink: var(--color-pine);
    rotate: 0.6deg;
}

.offer-grid > li:nth-child(4) .offer-card {
    --offer-bg: var(--color-spruce);
    rotate: -0.6deg;
}

.offer-grid > li:nth-child(5) .offer-card {
    --offer-bg: var(--color-moss);
    rotate: 1deg;
}

.grove .testimonials {
    width: 100%;
    max-width: 1500px;
    margin-inline: auto;
}

.about-teaser {
    --hills-crop: 0.2;
    position: relative;
    overflow: clip;
    display: flex;
    min-height: calc(100vw * 1057 / 1488 * (1 - var(--hills-crop) - 0.2));
    margin-top: -1px;
    padding: clamp(32px, 3vw, 56px) var(--container-padding) clamp(64px, 7vw, 120px);
    background:
        linear-gradient(0deg, var(--color-cream) 0%, rgba(247, 243, 234, 0) clamp(80px, 9vw, 160px)),
        linear-gradient(0deg, rgba(13, 48, 43, 0.6) 0%, rgba(13, 48, 43, 0.25) 35%, rgba(13, 48, 43, 0) 60%),
        url("../../images/art/5.png") center bottom calc(max(100vw, 900px) * 1057 / 1488 * var(--hills-crop) * -1) / max(100%, 900px) auto no-repeat,
        var(--color-forest-night);
    color: var(--color-white);
}

.about-teaser__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: clamp(28px, 3vw, 48px);
    width: 100%;
    max-width: 1560px;
    margin-inline: auto;
}

.about-teaser__founders {
    margin-top: auto;
    display: flex;
    align-items: flex-start;
    gap: clamp(8px, 1vw, 20px);
}

.founder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.founder--second {
    margin-top: clamp(40px, 4vw, 72px);
}

.founder__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(18px, 1.5vw, 24px);
    rotate: -6deg;
}

.founder--second .founder__label {
    rotate: 8deg;
}

.founder__arrow {
    width: 22px;
    height: 34px;
}

.founder--second .founder__arrow {
    scale: -1 1;
}

.founder__photo {
    overflow: hidden;
    width: clamp(120px, 12vw, 200px);
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--color-amethyst);
    box-shadow: 0 20px 40px rgba(6, 26, 22, 0.35);
}

.founder__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.founder--second .founder__photo {
    width: clamp(96px, 9vw, 156px);
    background-color: var(--color-salmon);
}

.about-teaser__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(20px, 2vw, 32px);
    max-width: 980px;
}

.about-teaser__title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(52px, 6.6vw, 116px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 30px rgba(6, 26, 22, 0.55);
}

.about-teaser .text-lead {
    text-shadow: 0 1px 18px rgba(6, 26, 22, 0.7), 0 1px 3px rgba(6, 26, 22, 0.5);
}


@media (max-width: 900px) {
    .grove__contact,
    .offer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .offer-grid {
        row-gap: 24px;
        padding-bottom: 0;
    }

    .offer-grid > li:nth-child(odd) {
        translate: none;
    }

    .offer-grid > li:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .journey-badge {
        --badge-size: 96px;
        margin: calc(var(--badge-size) * -0.35) 4px calc(var(--badge-size) * -0.25) 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .has-reveal [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
