/*
 * GRYX revamp / phase five
 * A minimal service ledger using the supplied DotGrid, ScrollExpand and
 * ShapeBlur ideas without introducing another carousel or WebGL context.
 */

/* Services ledger ------------------------------------------------------- */

.services-ledger {
    --services-edge: clamp(22px, 4.6vw, 86px);
    position: relative;
    z-index: 8;
    padding: clamp(72px, 7vw, 108px) var(--services-edge) clamp(116px, 14vw, 210px);
    isolation: isolate;
    color: var(--revamp-ink);
    background: var(--revamp-paper);
    border-top: 1px solid var(--revamp-light-line);
    border-bottom: 1px solid var(--revamp-light-line);
}

.services-ledger::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 17px 17px, rgba(15,20,17,.1) 0 .72px, transparent .92px) 0 0 / 34px 34px,
        linear-gradient(90deg, transparent calc(25% - .5px), rgba(15,20,17,.04) 25%, transparent calc(25% + .5px)),
        linear-gradient(90deg, transparent calc(75% - .5px), rgba(15,20,17,.04) 75%, transparent calc(75% + .5px));
    pointer-events: none;
}

.services-ledger::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(241,239,231,.2), transparent 26%, rgba(241,239,231,.74));
    pointer-events: none;
}

.services-dot-grid {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    display: block;
    width: 380px;
    height: 380px;
    opacity: 0;
    transition: opacity .18s ease;
    will-change: transform, opacity;
    pointer-events: none;
}

.services-ledger__header {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 28px);
    align-items: end;
    margin-bottom: clamp(70px, 8vw, 126px);
}

.services-ledger__eyebrow {
    grid-column: 1 / -1;
    margin-bottom: clamp(26px, 3.4vw, 48px);
    color: var(--revamp-orange-deep);
    font-family: var(--font-mono);
    font-size: .69rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .18em;
}

.services-ledger__header h2 {
    grid-column: 1 / span 8;
    max-width: 1100px;
    margin: 0;
    color: var(--revamp-ink);
    font-family: var(--font-sans);
    font-size: clamp(3.1rem, 5.25vw, 6.4rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.064em;
}

.services-ledger__header h2 span {
    color: var(--revamp-orange);
}

.services-ledger__header > p {
    grid-column: 10 / -1;
    margin: 0 0 6px;
    padding: 20px 0 4px clamp(20px, 2.2vw, 38px);
    border-left: 1px solid var(--revamp-light-line);
    color: var(--revamp-muted);
    font-family: var(--font-sans);
    font-size: clamp(.96rem, 1.08vw, 1.1rem);
    line-height: 1.65;
}

.services-morph {
    --service-track-progress: 0;
    position: relative;
    z-index: 2;
    width: 100%;
}

.services-morph__track {
    position: relative;
    min-height: 390vh;
}

.service-ledger-card {
    --service-media-inset-x: 21%;
    --service-media-inset-y: 16%;
    --service-media-radius: 28px;
    --service-media-zoom: .58;
    --service-shape-opacity: .14;
    --service-expand-progress: 0;
    position: sticky;
    top: 88px;
    display: grid;
    grid-template-columns: clamp(56px, 5vw, 82px) minmax(240px, 1fr) minmax(360px, 1.08fr);
    width: 100%;
    height: clamp(590px, calc(100vh - 112px), 760px);
    min-height: 0;
    margin: 0;
    overflow: hidden;
    color: var(--revamp-ink);
    background: rgba(248,246,239,.975);
    border: 1px solid rgba(15,20,17,.18);
    border-radius: clamp(18px, 1.7vw, 28px);
    box-shadow: 0 18px 70px rgba(30,27,22,.06);
    transform: translateZ(0);
    transition:
        border-color .35s ease,
        box-shadow .45s ease,
        background-color .35s ease;
}

.service-ledger-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    opacity: 0;
    background: linear-gradient(105deg, transparent 34%, color-mix(in srgb, var(--service-accent) 15%, transparent), transparent 66%);
    transform: translateX(-70%);
    pointer-events: none;
}

.service-ledger-card.is-service-morphing::after {
    animation: serviceCardSweep .82s cubic-bezier(.22,.78,.2,1);
}

.service-ledger-card.is-active,
.service-ledger-card:focus-visible {
    border-color: color-mix(in srgb, var(--service-accent) 54%, rgba(15,20,17,.2));
    background: rgba(248,246,239,.995);
    box-shadow:
        0 28px 90px rgba(30,27,22,.11),
        0 0 0 1px color-mix(in srgb, var(--service-accent) 9%, transparent);
}

.service-ledger-card:focus-visible {
    outline: 2px solid var(--service-accent);
    outline-offset: 5px;
}

.service-card__index {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    justify-items: center;
    gap: 14px;
    padding: clamp(25px, 2.7vw, 42px) 8px;
    border-right: 1px solid var(--revamp-light-line);
    color: var(--service-accent);
    font-family: var(--font-mono);
}

.service-card__index span {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.service-card__index i {
    width: 1px;
    height: 100%;
    min-height: 80px;
    background: linear-gradient(to bottom, var(--service-accent), rgba(15,20,17,.09));
}

.service-card__index b {
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .14em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.service-card__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(32px, 3.2vw, 54px) clamp(26px, 3vw, 52px) 94px;
}

.service-card__kicker {
    display: block;
    margin-bottom: 0;
    padding-bottom: clamp(22px, 2.2vw, 34px);
    color: var(--service-accent);
    font-family: var(--font-mono);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .14em;
}

.service-card__copy h3 {
    max-width: 620px;
    margin: 0;
    color: var(--revamp-ink);
    font-family: var(--font-sans);
    font-size: clamp(2.15rem, 3.25vw, 4rem);
    font-weight: 600;
    line-height: .95;
    letter-spacing: -.057em;
}

.service-card__copy p {
    max-width: 550px;
    margin: clamp(18px, 2vw, 28px) 0 0;
    color: rgba(8,10,9,.78);
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.12vw, 1.18rem);
    line-height: 1.58;
}

.service-card__copy ul {
    display: grid;
    gap: 0;
    margin: clamp(20px, 2.2vw, 30px) 0 0;
    padding: 0;
    list-style: none;
}

.service-card__copy li {
    position: relative;
    padding: 9px 0 9px 20px;
    color: rgba(8,10,9,.84);
    border-top: 1px solid rgba(15,20,17,.1);
    font-family: var(--font-mono);
    font-size: clamp(.68rem, .76vw, .8rem);
    font-weight: 600;
    line-height: 1.42;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.service-card__copy li::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 1px;
    width: 5px;
    height: 5px;
    background: var(--service-accent);
    border-radius: 50%;
}

.service-card__media {
    position: relative;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    overflow: visible;
    background: transparent;
    cursor: ns-resize;
    outline: none;
}

.service-card__media[data-media-state="collapsed"] {
    cursor: s-resize;
}

.service-card__media[data-media-state="expanded"] {
    cursor: n-resize;
}

.service-card__media:focus-visible {
    outline: 2px solid var(--service-accent);
    outline-offset: -5px;
}

.service-card__picture {
    position: absolute;
    inset: clamp(10px, 1.1vw, 18px);
    overflow: hidden;
    color: var(--service-accent);
    background:
        radial-gradient(circle at 70% 26%, color-mix(in srgb, var(--service-accent) 19%, transparent), transparent 31%),
        linear-gradient(145deg, #070a09 0%, #0a0e0d 58%, #050706 100%);
    border: 1px solid rgba(248,246,239,.14);
    border-radius: var(--service-media-radius);
    clip-path: inset(var(--service-media-inset-y) var(--service-media-inset-x) round var(--service-media-radius));
    transform: translateZ(0);
    transition: border-radius .22s linear;
    will-change: clip-path, border-radius;
}

.service-card__picture::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: .22;
    background-image:
        linear-gradient(rgba(248,246,239,.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248,246,239,.075) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
    pointer-events: none;
}

.service-card__picture::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: .19;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.06) 4px);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.service-card__shape {
    position: absolute;
    inset: clamp(8px, .9vw, 15px);
    z-index: 4;
    overflow: hidden;
    opacity: var(--service-shape-opacity);
    border-radius: calc(var(--service-media-radius) + 3px);
    filter: blur(2.4px);
    pointer-events: none;
    transition: opacity .3s ease;
}

.service-card__shape::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background:
        radial-gradient(circle at var(--shape-x, 72%) var(--shape-y, 28%), rgba(248,246,239,.95) 0 2%, transparent 20%),
        conic-gradient(from 145deg,
            transparent 0 9%,
            color-mix(in srgb, var(--service-accent) 86%, white) 18%,
            transparent 32% 55%,
            color-mix(in srgb, var(--service-accent) 68%, transparent) 72%,
            transparent 87% 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: serviceShapeDrift 7s ease-in-out infinite alternate;
}

.service-card__media::after {
    content: "";
    position: absolute;
    inset: clamp(10px, 1.1vw, 18px);
    z-index: 5;
    border: 1px solid color-mix(in srgb, var(--service-accent) 42%, rgba(248,246,239,.18));
    border-radius: var(--service-media-radius);
    clip-path: inset(var(--service-media-inset-y) var(--service-media-inset-x) round var(--service-media-radius));
    pointer-events: none;
}

@keyframes serviceShapeDrift {
    from { transform: translate3d(-.7%, .4%, 0) scale(1.004); }
    to { transform: translate3d(.7%, -.4%, 0) scale(1.012); }
}

.service-card__media-label {
    position: absolute;
    top: clamp(22px, 2vw, 34px);
    left: clamp(22px, 2vw, 34px);
    right: clamp(22px, 2vw, 34px);
    z-index: 4;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(248,246,239,.56);
    font-family: var(--font-mono);
    font-size: .54rem;
    font-weight: 600;
    letter-spacing: .11em;
}

.service-card__media-label b {
    color: var(--service-accent);
    font-weight: 600;
}

.service-card__video-frame,
.service-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.service-card__video-frame {
    z-index: 1;
    overflow: hidden;
    background: #080a09;
}

.service-card__video {
    z-index: 0;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: scale(var(--service-media-zoom));
    transform-origin: center;
    filter: saturate(.82) contrast(1.06) brightness(.72);
    will-change: opacity, transform, filter, clip-path;
}

.service-card__morph-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(var(--service-media-zoom));
    transform-origin: center;
    filter: saturate(.82) contrast(1.06) brightness(.72);
    pointer-events: none;
    will-change: opacity, transform;
}

.service-card__morph-canvas.is-active {
    opacity: 1;
}

.service-ledger-card:not(.is-canvas-morphing).is-service-morphing .service-card__video {
    animation: serviceVideoMorph .82s cubic-bezier(.22,.78,.2,1) both;
}

.service-ledger-card.is-service-morphing .service-card__copy > *,
.service-ledger-card.is-service-morphing .service-card__index span,
.service-ledger-card.is-service-morphing .service-card__index b,
.service-ledger-card.is-service-morphing .service-card__media-label,
.service-ledger-card.is-service-morphing .service-card__pixel-caption {
    animation: serviceTextMorph .82s cubic-bezier(.22,.78,.2,1) both;
}

.service-card__pixel-caption {
    position: absolute;
    right: clamp(22px, 2vw, 34px);
    bottom: clamp(22px, 2vw, 34px);
    left: clamp(22px, 2vw, 34px);
    z-index: 4;
    padding-top: 12px;
    color: rgba(248,246,239,.7);
    border-top: 1px solid rgba(248,246,239,.16);
    font-family: var(--font-mono);
    font-size: .54rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .1em;
}

.service-morph__nav {
    position: absolute;
    right: calc(50% + 24px);
    bottom: 24px;
    left: calc(clamp(56px, 5vw, 82px) + clamp(26px, 3vw, 52px));
    z-index: 7;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(15,20,17,.13);
}

.service-morph__nav::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: calc(var(--service-track-progress) * 100%);
    height: 1px;
    background: var(--service-accent);
    transition: width .16s linear;
}

.service-morph__nav button {
    display: grid;
    gap: 5px;
    padding: 13px 8px 0 0;
    color: rgba(8,10,9,.38);
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: color .25s ease;
}

.service-morph__nav button.is-active { color: var(--service-accent); }
.service-morph__nav button:focus-visible { outline: 1px solid var(--service-accent); outline-offset: 4px; }
.service-morph__nav span { font-size: .62rem; font-weight: 700; letter-spacing: .1em; }
.service-morph__nav small { font-size: .48rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }

@keyframes serviceTextMorph {
    0%, 100% { opacity: 1; filter: blur(0); transform: translate3d(0,0,0); }
    40% { opacity: 0; filter: blur(11px); transform: translate3d(0,-16px,0); }
    50% { opacity: 0; filter: blur(11px); transform: translate3d(0,16px,0); }
}

@keyframes serviceVideoMorph {
    0% { opacity: 1; clip-path: inset(0); filter: saturate(.82) contrast(1.06) brightness(.72) blur(0); transform: scale(var(--service-media-zoom)); }
    38%, 52% { opacity: 0; clip-path: inset(42% 48%); filter: saturate(.5) contrast(1.2) brightness(.5) blur(10px); transform: scale(var(--service-media-zoom)); }
    100% { opacity: 1; clip-path: inset(0); filter: saturate(.82) contrast(1.06) brightness(.72) blur(0); transform: scale(var(--service-media-zoom)); }
}

@keyframes serviceCardSweep {
    0% { opacity: 0; transform: translateX(-70%); }
    42% { opacity: .8; }
    100% { opacity: 0; transform: translateX(70%); }
}

@media (max-width: 1100px) {
    .services-ledger__header h2 {
        grid-column: 1 / span 9;
    }

    .services-ledger__header > p {
        grid-column: 9 / -1;
    }

    .service-ledger-card {
        grid-template-columns: 58px minmax(210px, .92fr) minmax(330px, 1.08fr);
    }

    .service-card__copy {
        padding-right: 28px;
        padding-left: 28px;
    }

    .service-card__copy h3 {
        font-size: clamp(2.1rem, 4vw, 3.55rem);
    }
}

@media (max-width: 820px) {
    .services-ledger {
        --services-edge: 18px;
        padding-top: 72px;
        padding-bottom: 112px;
    }

    .services-ledger__header {
        display: block;
        margin-bottom: 56px;
    }

    .services-ledger__eyebrow {
        margin-bottom: 34px;
    }

    .services-ledger__header h2 {
        font-size: clamp(2.8rem, 11.5vw, 4.8rem);
    }

    .services-ledger__header > p {
        max-width: 620px;
        margin-top: 34px;
        padding: 19px 0 0;
        border-top: 1px solid var(--revamp-light-line);
        border-left: 0;
    }

    .services-morph__track {
        min-height: auto;
    }

    .service-ledger-card,
    .service-ledger-card:nth-child(n) {
        position: relative;
        top: auto;
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        height: auto;
        min-height: 0;
        margin: 0;
        border-radius: 18px;
    }

    .service-card__index {
        grid-row: 1 / span 3;
        padding: 25px 7px;
    }

    .service-card__copy {
        min-height: 540px;
        padding: 32px 24px 34px;
    }

    .service-card__kicker {
        padding-bottom: 42px;
    }

    .service-card__copy h3 {
        font-size: clamp(2.35rem, 9.5vw, 4.1rem);
    }

    .service-card__media {
        grid-column: 2;
        min-height: min(88vw, 520px);
    }

    .service-card__picture,
    .service-card__media::after {
        inset: 0 12px 12px;
    }

    .service-card__shape {
        inset: -2px 9px 9px;
    }

    .service-morph__nav {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        grid-column: 2;
        margin: 10px 24px 30px;
    }
}

@media (max-width: 520px) {
    .service-card__copy {
        min-height: 360px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .service-card__copy ul {
        gap: 6px;
    }

    .service-card__copy li {
        padding: 7px 0 7px 16px;
        font-size: .49rem;
    }

    .service-card__media-label {
        display: block;
    }

    .service-card__media-label b {
        display: block;
        margin-top: 6px;
    }

    .service-morph__nav small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .service-card__shape::before {
        animation: none;
    }

    .service-ledger-card.is-service-morphing::after,
    .service-ledger-card.is-service-morphing .service-card__video,
    .service-ledger-card.is-service-morphing .service-card__copy > *,
    .service-ledger-card.is-service-morphing .service-card__index span,
    .service-ledger-card.is-service-morphing .service-card__index b,
    .service-ledger-card.is-service-morphing .service-card__media-label,
    .service-ledger-card.is-service-morphing .service-card__pixel-caption {
        animation: none;
        transition: none;
    }
}

/* Why Choose Us / horizontal proof strip -------------------------------- */

.why-choose {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: clamp(86px, 9vw, 142px) clamp(18px, 3.5vw, 58px) clamp(94px, 10vw, 154px);
    color: var(--revamp-ink);
    background: var(--revamp-soft);
    border-top: 1px solid var(--revamp-light-line);
    border-bottom: 1px solid var(--revamp-light-line);
}

.why-choose::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .72;
    background:
        linear-gradient(90deg, transparent calc(25% - .5px), rgba(15,20,17,.045) 25%, transparent calc(25% + .5px)),
        linear-gradient(90deg, transparent calc(75% - .5px), rgba(15,20,17,.045) 75%, transparent calc(75% + .5px));
    pointer-events: none;
}

.why-choose__inner {
    width: min(100%, 1440px);
    margin: 0 auto;
}

.why-choose__header {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 clamp(14px, 1.5vw, 24px);
    align-items: end;
}

.why-choose__eyebrow {
    grid-column: 1 / span 3;
    color: var(--revamp-orange);
    font-family: var(--font-mono);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.why-choose__header h2 {
    grid-column: 1 / span 8;
    margin: clamp(34px, 5vw, 72px) 0 0;
    color: var(--revamp-ink);
    font-family: var(--font-sans);
    font-size: clamp(3.6rem, 7vw, 7.7rem);
    font-weight: 600;
    line-height: .86;
    letter-spacing: -.065em;
}

.why-choose__header h2 span {
    color: var(--revamp-orange);
}

.why-choose__header > p {
    grid-column: 9 / -1;
    margin: 0;
    padding: 4px 0 5px clamp(18px, 2vw, 32px);
    color: var(--revamp-muted);
    border-left: 1px solid var(--revamp-light-line);
    font-size: clamp(.82rem, .95vw, 1rem);
    line-height: 1.62;
}

.why-choose__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(54px, 6vw, 86px);
    overflow: hidden;
    background: rgba(15,20,17,.13);
    border: 1px solid rgba(15,20,17,.13);
    border-radius: clamp(18px, 1.8vw, 28px);
    box-shadow: 0 22px 70px rgba(30,27,22,.075);
}

.why-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: clamp(226px, 20vw, 286px);
    padding: clamp(22px, 2vw, 32px);
    overflow: hidden;
    color: var(--revamp-ink);
    background: #F7F5EE;
    transition: color .35s ease, background-color .35s ease;
}

.why-choice::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--revamp-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .42s cubic-bezier(.16,1,.3,1);
}

.why-choice__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: .54rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.why-choice__meta span {
    color: var(--revamp-orange);
}

.why-choice__meta b {
    color: rgba(15,20,17,.48);
    font: inherit;
    transition: color .35s ease;
}

.why-choice--engineering .why-choice__meta,
.why-choice--engineering h3 {
    position: relative;
    z-index: 2;
}

.why-choice__rig {
    position: absolute;
    top: clamp(58px, 4.8vw, 74px);
    right: 6px;
    z-index: 1;
    display: block;
    width: clamp(154px, 10.8vw, 190px);
    height: auto;
    pointer-events: none;
    user-select: none;
    filter: saturate(.94) contrast(1.03);
    transform: translateY(0);
    transform-origin: center;
    transition: filter .35s ease, transform .45s cubic-bezier(.16,1,.3,1);
}

.why-choice__signal {
    position: relative;
    display: block;
    width: 50px;
    height: 36px;
    margin-top: clamp(34px, 4vw, 58px);
    color: var(--revamp-ink);
    transition: color .35s ease, transform .45s cubic-bezier(.16,1,.3,1);
}

.why-choice__mesh {
    display: block;
    width: min(100%, 168px);
    height: auto;
    aspect-ratio: 2 / 1;
    margin-top: clamp(24px, 2.8vw, 40px);
    pointer-events: none;
    user-select: none;
    opacity: .86;
    mix-blend-mode: difference;
    transform: translateY(0);
    transform-origin: left center;
    will-change: opacity, filter;
    transition: opacity .35s ease, transform .45s cubic-bezier(.16,1,.3,1);
}

@keyframes why-mesh-pulse {
    0%, 100% {
        opacity: .72;
        filter: contrast(.96);
    }
    50% {
        opacity: 1;
        filter: contrast(1.28);
    }
}

.why-choice__mesh.is-animating {
    animation: why-mesh-pulse 2.8s ease-in-out infinite;
}

.why-choice__partnership {
    display: block;
    width: min(100%, 132px);
    height: auto;
    margin-top: clamp(24px, 2.4vw, 34px);
    pointer-events: none;
    user-select: none;
    opacity: .92;
    filter: grayscale(1) contrast(1.85) invert(1) brightness(1.08);
    mix-blend-mode: multiply;
    transform: translateY(0);
    transform-origin: center;
    transition: filter .35s ease, opacity .35s ease, transform .45s cubic-bezier(.16,1,.3,1);
}

.why-choice__lock-dither {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: clamp(24px, 2.8vw, 40px) 0 0;
    overflow: visible;
    color: currentColor;
    font-family: var(--font-mono);
    font-size: clamp(.42rem, .48vw, .54rem);
    font-weight: 700;
    line-height: .94;
    letter-spacing: -.045em;
    white-space: pre;
    user-select: none;
    transform-origin: left center;
    transition: color .35s ease, transform .45s cubic-bezier(.16,1,.3,1);
}

.why-choice__map-frame {
    position: relative;
    width: min(100%, 184px);
    aspect-ratio: 16 / 9;
    margin-top: clamp(26px, 3vw, 42px);
    overflow: visible;
    background: transparent;
    transition: transform .45s cubic-bezier(.16,1,.3,1);
}

.why-choice__map-frame::before,
.why-choice__map-frame::after {
    content: none;
}

.why-choice__dither {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: filter .35s ease;
}

.why-choice--delivery::before {
    background: #080a09;
}

.why-choice--delivery .why-choice__meta span {
    color: #080a09;
}

.why-choice--delivery h3 {
    max-width: 15ch;
}

.why-choice--delivery h3 span {
    display: block;
}

.why-choice__signal::before,
.why-choice__signal::after {
    content: "";
    position: absolute;
}

.why-choice__signal::before {
    inset: 0;
    background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px);
    clip-path: polygon(0 72%, 18% 46%, 36% 62%, 56% 12%, 76% 40%, 100% 0, 100% 100%, 0 100%);
}

.why-choice__signal::after {
    right: -3px;
    bottom: -3px;
    width: 7px;
    height: 7px;
    background: var(--revamp-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(240,74,36,.11);
}

.why-choice:nth-child(3) .why-choice__signal::before {
    inset: 2px 7px 4px 3px;
    background: none;
    border: 2px solid currentColor;
    border-radius: 8px;
    box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px currentColor;
    clip-path: none;
}

.why-choice:nth-child(4) .why-choice__signal::before {
    background: repeating-linear-gradient(-45deg, currentColor 0 2px, transparent 2px 7px);
    clip-path: polygon(0 28%, 100% 0, 100% 72%, 0 100%);
}

.why-choice h3 {
    max-width: 12ch;
    margin: auto 0 0;
    color: inherit;
    font-family: var(--font-sans);
    font-size: clamp(1.15rem, 1.45vw, 1.55rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.035em;
}

@media (hover: hover) {
    .why-choice:hover {
        color: var(--revamp-panel);
        background: var(--revamp-ink);
    }

    .why-choice:hover::before {
        transform: scaleX(1);
    }

    .why-choice:hover .why-choice__meta b {
        color: rgba(248,246,239,.55);
    }

    .why-choice:hover .why-choice__signal {
        color: var(--revamp-orange);
        transform: translateY(-4px);
    }

    .why-choice:hover .why-choice__mesh {
        opacity: .96;
        transform: translateY(-4px);
    }

    .why-choice:hover .why-choice__lock-dither {
        transform: translateY(-4px);
    }

    .why-choice--partnership:hover .why-choice__partnership {
        filter: grayscale(1) contrast(1.85);
        opacity: 1;
        mix-blend-mode: screen;
        transform: translateY(-4px);
    }

    .why-choice:hover .why-choice__map-frame {
        transform: translateY(-4px);
    }

    .why-choice--delivery:hover .why-choice__dither {
        filter: invert(1);
    }

    .why-choice:hover .why-choice__rig {
        filter: saturate(1.02) brightness(1.06) contrast(1.04);
        transform: translateY(-4px) scale(1.015);
    }

    .why-choice--delivery:hover .why-choice__meta span {
        color: #f8f6ef;
    }
}

@media (max-width: 900px) {
    .why-choose__header {
        display: block;
    }

    .why-choose__header h2 {
        margin-top: 36px;
    }

    .why-choose__header > p {
        max-width: 620px;
        margin-top: 32px;
        padding: 18px 0 0;
        border-top: 1px solid var(--revamp-light-line);
        border-left: 0;
    }

    .why-choose__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-choice {
        min-height: 220px;
    }

    .why-choice__rig {
        top: 52px;
        right: 6px;
        width: 136px;
    }

    .why-choice:last-child {
        grid-column: 1 / -1;
        min-height: 190px;
    }
}

@media (max-width: 560px) {
    .why-choose__header h2 {
        font-size: clamp(3.35rem, 18vw, 5.2rem);
    }

    .why-choose__grid {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .why-choice,
    .why-choice:last-child {
        grid-column: auto;
        min-height: 190px;
        padding: 24px;
    }

    .why-choice__signal {
        margin-top: 30px;
    }

    .why-choice__rig {
        top: 50px;
        right: 6px;
        width: 118px;
    }

    .why-choice__map-frame {
        width: 176px;
        margin-top: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .why-choice,
    .why-choice::before,
    .why-choice__meta b,
    .why-choice__signal,
    .why-choice__mesh,
    .why-choice__lock-dither,
    .why-choice__partnership,
    .why-choice__map-frame,
    .why-choice__dither,
    .why-choice__rig {
        transition: none;
    }
}
