.edge-pillars {
    --edge-pillars-bg: #f2f3f0;
    --edge-pillars-text: #1f2321;
    --edge-pillars-muted: #6f746f;
    --edge-pillars-line: #d7dad5;
    --edge-pillars-mobile-card: 86%;
    width: 100%;
    min-width: 0;
    padding: 88px 48px 92px;
    background: var(--edge-pillars-bg);
    color: var(--edge-pillars-text);
    box-sizing: border-box;
    overflow: hidden;
}

.edge-pillars *,
.edge-pillars *::before,
.edge-pillars *::after {
    box-sizing: border-box;
}

.edge-pillars__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.edge-pillars__intro {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(340px, .62fr);
    gap: clamp(42px, 8vw, 132px);
    align-items: end;
    margin-bottom: clamp(42px, 5vw, 74px);
}

.edge-pillars__eyebrow {
    margin: 0 0 14px;
    color: var(--edge-pillars-muted);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.edge-pillars__heading {
    max-width: 13ch;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 4.5vw, 72px);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.edge-pillars__intro-copy {
    max-width: 46ch;
    margin: 0 0 4px;
    color: var(--edge-pillars-muted);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.58;
}

/* Product Pills-style expanding row */
.edge-pillars__cards {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.edge-pillars__card {
    position: relative;
    flex: .78 1 0;
    min-width: 0;
    min-height: 630px;
    overflow: hidden;
    background: var(--pillar-accent);
    color: var(--pillar-ink);
    transition:
        flex .72s cubic-bezier(.22,.61,.36,1),
        transform .38s cubic-bezier(.22,.61,.36,1),
        box-shadow .35s ease;
    isolation: isolate;
}

.edge-pillars__card.is-active {
    flex: 1.8 1 0;
}

.edge-pillars__card-trigger,
.edge-pillars__card-trigger:hover,
.edge-pillars__card-trigger:focus,
.edge-pillars__card-trigger:active {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100%;
    min-height: inherit;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 0;
    border: 0 !important;
    border-radius: inherit !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.edge-pillars__media {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background: color-mix(in srgb, var(--pillar-accent) 86%, #222);
}

.edge-pillars__image,
.edge-pillars img.edge-pillars__image {
    position: absolute !important;
    inset: 0 !important;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    transform: scale(1.001);
    transition:
        transform .85s cubic-bezier(.22,.61,.36,1),
        filter .5s ease;
}

.edge-pillars__media-placeholder {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--pillar-accent) 80%, #fff), var(--pillar-accent));
}

.edge-pillars__media-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,.02) 56%),
        linear-gradient(120deg, color-mix(in srgb, var(--pillar-accent) 18%, transparent), transparent 55%);
    pointer-events: none;
}

.edge-pillars__number {
    position: absolute;
    z-index: 3;
    top: 20px;
    left: 22px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 999px;
    background: rgba(17,19,18,.16);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: .11em;
}

.edge-pillars__open-arrow {
    position: absolute;
    z-index: 3;
    right: 20px;
    bottom: 19px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #1d211f;
    transform: translateY(10px) scale(.9);
    opacity: 0;
    transition: opacity .3s ease, transform .45s cubic-bezier(.22,.61,.36,1);
}

.edge-pillars__open-arrow svg {
    width: 24px;
    height: auto;
}

.edge-pillars__card.is-active .edge-pillars__open-arrow {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.edge-pillars__body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    min-height: 220px;
    padding: 22px 22px 24px;
    background: var(--pillar-accent);
    color: var(--pillar-ink);
    overflow: hidden;
}

.edge-pillars__meta {
    display: block;
    margin-bottom: 11px;
    color: color-mix(in srgb, var(--pillar-ink) 72%, transparent);
    font-size: 9px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.edge-pillars__card-title {
    display: block;
    max-width: 12ch;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 2.7vw, 46px);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.04em;
    text-wrap: balance;
    transition: font-size .6s cubic-bezier(.22,.61,.36,1);
}

.edge-pillars__rule {
    display: block;
    width: 30px;
    height: 1.5px;
    margin: 18px 0 0;
    background: currentColor;
    opacity: .78;
    transition: width .55s cubic-bezier(.22,.61,.36,1);
}

.edge-pillars__content {
    display: block;
    max-width: 54ch;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    color: color-mix(in srgb, var(--pillar-ink) 80%, transparent);
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.55;
    transform: translateY(14px);
    transition:
        max-height .7s cubic-bezier(.22,.61,.36,1),
        margin-top .55s ease,
        opacity .32s ease,
        transform .55s cubic-bezier(.22,.61,.36,1);
}

.edge-pillars__content p {
    margin: 0 0 .9em;
}

.edge-pillars__content p:last-child {
    margin-bottom: 0;
}

.edge-pillars__card.is-active .edge-pillars__rule {
    width: 48px;
}

.edge-pillars__card.is-active .edge-pillars__content {
    max-height: 260px;
    margin-top: 20px;
    opacity: 1;
    transform: translateY(0);
}

/* Inactive cards remain clean and compact */
.edge-pillars__card:not(.is-active) .edge-pillars__card-title {
    font-size: clamp(26px, 2vw, 34px);
}

.edge-pillars__card:not(.is-active) .edge-pillars__body {
    min-height: 190px;
}

.edge-pillars__mobile-nav {
    display: none;
}

/* Real mouse hover only */
@media (hover: hover) and (pointer: fine) {
    .edge-pillars__card:hover {
        transform: translateY(-3px);
    }

    .edge-pillars__card:hover .edge-pillars__image {
        transform: scale(1.035);
    }

    .edge-pillars__card:not(.is-active):hover .edge-pillars__image {
        filter: saturate(.82);
    }
}

.edge-pillars__card-trigger:focus-visible,
.edge-pillars__nav:focus-visible {
    outline: 2px solid var(--pillar-ink, var(--edge-pillars-text)) !important;
    outline-offset: -4px;
}

/* Compact / Process Approach-style touch swiper.
   JS toggles .is-compact using ResizeObserver, based on actual widget width. */
.edge-pillars.is-compact .edge-pillars__intro {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 42px;
}

.edge-pillars.is-compact .edge-pillars__intro-copy {
    max-width: 58ch;
}

.edge-pillars.is-compact .edge-pillars__cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--edge-pillars-mobile-card);
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    padding: 0 1px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.edge-pillars.is-compact .edge-pillars__cards::-webkit-scrollbar {
    display: none;
}

.edge-pillars.is-compact .edge-pillars__card,
.edge-pillars.is-compact .edge-pillars__card.is-active {
    flex: none;
    min-height: 0 !important;
    scroll-snap-align: start;
    transform: none !important;
}

.edge-pillars.is-compact .edge-pillars__card-trigger {
    min-height: 0;
}

.edge-pillars.is-compact .edge-pillars__media {
    aspect-ratio: 4 / 3;
    min-height: 0;
}

.edge-pillars.is-compact .edge-pillars__body,
.edge-pillars.is-compact .edge-pillars__card:not(.is-active) .edge-pillars__body {
    min-height: 260px;
    padding: 21px 20px 23px;
}

.edge-pillars.is-compact .edge-pillars__card-title,
.edge-pillars.is-compact .edge-pillars__card:not(.is-active) .edge-pillars__card-title {
    font-size: clamp(32px, 8vw, 44px);
}

.edge-pillars.is-compact .edge-pillars__content,
.edge-pillars.is-compact .edge-pillars__card.is-active .edge-pillars__content {
    max-height: 320px;
    margin-top: 18px;
    opacity: 1;
    transform: none;
}

.edge-pillars.is-compact .edge-pillars__open-arrow {
    opacity: 1;
    transform: none;
    width: 42px;
    height: 42px;
}

.edge-pillars.is-compact .edge-pillars__mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 16px;
}

.edge-pillars__counter {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: var(--edge-pillars-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
}

.edge-pillars__counter [data-pillar-current] {
    color: var(--edge-pillars-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: -.04em;
}

.edge-pillars__counter-sep {
    opacity: .42;
}

.edge-pillars__nav-buttons {
    display: flex;
    gap: 8px;
}

.edge-pillars__nav,
.edge-pillars__nav:hover,
.edge-pillars__nav:focus,
.edge-pillars__nav:active {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--edge-pillars-line) !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--edge-pillars-text) !important;
    box-shadow: none !important;
    cursor: pointer;
}

.edge-pillars__nav svg {
    width: 22px;
    height: auto;
}

.edge-pillars__nav--prev svg {
    transform: rotate(180deg);
}

.edge-pillars__nav[disabled] {
    opacity: .32;
    cursor: default;
}

@media (max-width: 767px) {
    .edge-pillars {
        padding: 54px 20px 58px;
    }

    .edge-pillars__heading {
        font-size: clamp(40px, 11.5vw, 54px);
    }

    .edge-pillars__intro-copy {
        font-size: 16px;
        line-height: 1.55;
    }

    .edge-pillars.is-compact .edge-pillars__body {
        min-height: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .edge-pillars *,
    .edge-pillars *::before,
    .edge-pillars *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

@supports not (color: color-mix(in srgb, #000, #fff)) {
    .edge-pillars__meta,
    .edge-pillars__content {
        opacity: .82;
    }
}
