.home-redesign {
    --hero-grid: #d5a8fa2b;
    --hero-halo: #9f54d94f;
    --hero-accent: #d7a7ff;
    --hero-rail: #d7a7ff45;
    --shape-highlight: #84dcd8;
    --shape-line: color-mix(in srgb, var(--hero-accent) 60%, transparent);
}

[data-theme="light"] .home-redesign {
    --shape-highlight: #2d787e;
}

.home-redesign main section:has(> .hero-grid)::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 86% 62%, var(--hero-halo), transparent 64%);
}

.hero-grid {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-hero .hero-grid::before {
    content: "";
    position: absolute;
    inset: 5% -12% -28% -8%;
    transform: perspective(560px) rotateX(42deg) rotateZ(-12deg);
    transform-origin: center bottom;
    background:
        repeating-linear-gradient(0deg, var(--hero-grid) 0 1px, transparent 1px 43px),
        repeating-linear-gradient(90deg, var(--hero-grid) 0 1px, transparent 1px 43px);
    mask-image: radial-gradient(ellipse at 60% 60%, #000 16%, transparent 73%);
}

/* Accent selected photographs with shapes that suit their compositions. */
.home-redesign :is(.home-about, .home-capabilities, .home-guidance) .row > div:has(> img)::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.home-about .row > div:has(> img)::after {
    inset: auto 20px 20px auto;
    width: 82px;
    height: 46px;
    border-bottom: 2px solid #f3eaf9d9;
    border-radius: 0 0 46px 46px;
    background: repeating-radial-gradient(ellipse at center top,
        transparent 0 8px, #f3eaf9bd 9px 10px);
}

.home-capabilities .row > div:has(> img)::after {
    inset: 20px auto auto 20px;
    width: 73px;
    height: 52px;
    background: radial-gradient(circle, #f3eaf9de 1.5px, transparent 2.5px) 0 0 / 12px 12px;
    mask-image: linear-gradient(135deg, #000 35%, transparent 86%);
}

.home-guidance .row > div:has(> img)::after {
    inset: auto 18px 20px auto;
    width: 89px;
    height: 42px;
    background: #f3eaf9bd;
    clip-path: polygon(0 96%, 32% 38%, 51% 66%, 94% 0, 100% 6%, 51% 76%, 32% 48%, 5% 100%);
}

/* Secondary graphics are used only where there is room around the content. */
.home-redesign main > :is(.home-services, .principles, .offerings) {
    position: relative;
    isolation: isolate;
}

.home-services::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: clamp(20px, 6vw, 100px);
    width: min(150px, 32%);
    height: 5px;
    background: linear-gradient(90deg, var(--hero-accent), var(--shape-highlight));
    clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
    pointer-events: none;
}

.principles::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 12px 6% auto auto;
    width: min(27vw, 270px);
    height: 88px;
    background: radial-gradient(circle, var(--shape-line) 2px, transparent 2.5px) 0 0 / 18px 18px;
    mask-image: linear-gradient(205deg, #000, transparent 76%);
    pointer-events: none;
}

.offerings::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 auto auto;
    width: min(24vw, 300px);
    height: 96px;
    background: repeating-linear-gradient(136deg, var(--hero-rail) 0 3px, transparent 3px 12px);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 64% 56%);
    pointer-events: none;
}

.home-redesign .home-services .box-row {
    position: relative;
    isolation: isolate;
    padding-block-start: 74px;
    border-radius: var(--card-corners, 12px);
}

.home-services .box-row::before,
.home-services .box-row::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.home-services .box-row::before {
    inset: 0;
    border-radius: inherit;
    background: var(--card-wash, none);
}

.home-services .col-lg-6:nth-child(2) {
    --card-corners: 18px 72px 18px 18px;
    --card-wash: radial-gradient(ellipse at top right, var(--hero-rail), transparent 70%);
}

.home-services .col-lg-6:nth-child(3) {
    --card-corners: 12px;
    --card-wash: linear-gradient(135deg, var(--hero-rail), transparent 47%);
}

.home-services .col-lg-6:nth-child(4) {
    --card-corners: 18px 18px 18px 52px;
    --card-wash: radial-gradient(ellipse at bottom left, var(--hero-rail), transparent 66%);
}

.home-services .col-lg-6:nth-child(5) {
    --card-corners: 46px 18px 46px 18px;
    --card-wash: linear-gradient(30deg, transparent 45%, var(--hero-rail));
}

.home-services .box-row::after {
    top: 24px;
    left: clamp(26px, 3vw, 36px);
    width: 30px;
    height: 30px;
    border: 1px solid var(--shape-line);
    background-color: var(--hero-rail);
}

.home-services .col-lg-6:nth-child(2) .box-row::after {
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-accent) 0 14%, transparent 15% 32%,
        var(--shape-line) 33% 38%, var(--hero-rail) 39%);
}

.home-services .col-lg-6:nth-child(3) .box-row::after {
    border-radius: 7px;
    background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--shape-line) 5px 6px);
}

.home-services .col-lg-6:nth-child(4) .box-row::after {
    border-radius: 6px 15px 6px 15px;
    background:
        radial-gradient(circle, var(--hero-accent) 2px, transparent 3px) center / 10px 10px repeat,
        var(--hero-rail);
}

.home-services .col-lg-6:nth-child(5) .box-row::after {
    width: 24px;
    height: 24px;
    margin: 3px;
    transform: rotate(45deg);
    border-radius: 4px;
    box-shadow: inset 0 0 0 5px var(--hero-rail);
}

.home-redesign .home-closing::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0 auto;
    width: min(32vw, 430px);
    height: 82%;
    background: repeating-linear-gradient(125deg, var(--hero-rail) 0 2px, transparent 2px 13px);
    clip-path: polygon(100% 0, 100% 30%, 45% 100%, 10% 100%);
    pointer-events: none;
}

.home-redesign .hero-copy .title-purple-sm {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid var(--hero-rail);
   
    background: color-mix(in srgb, var(--hero-accent) 9%, transparent);
}

.home-redesign .hero-copy .title-purple-sm::before {
    flex: 0 0 7px;
    margin: 0;
    background: var(--hero-accent);
}

.home-redesign .inner-main section:has(> .hero-grid) h1::before {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-bottom: 20px;
    border-radius: 3px;
    background: var(--hero-accent);
}

.page-progress-rail {
    display: none;
    position: fixed;
    z-index: 100;
    top: 30%;
    right: clamp(10px, 2vw, 30px);
    bottom: 27%;
    width: 1px;
    background: var(--hero-rail);
    pointer-events: none;
}

.page-progress-rail span {
    position: absolute;
    top: var(--page-progress, 0%);
    left: 50%;
    width: 9px;
    height: 9px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--hero-accent);
    box-shadow: 0 0 0 4px var(--hero-rail);
}

@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
    .page-progress-rail[data-ready] {
        display: block;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .home-redesign .hero-copy .title-purple-sm::before {
        animation: hero-signal 1.3s ease-out 3;
    }

    .home-redesign .inner-main section:has(> .hero-grid) h1.section-arriving::before {
        transform-origin: left;
        animation: hero-accent-enter .55s ease-out both;
    }

    @keyframes hero-accent-enter {
        from { transform: scaleX(.2); }
        to { transform: scaleX(1); }
    }

    @keyframes hero-signal {
        0% { box-shadow: 0 0 0 0 var(--hero-accent); }
        75%, 100% { box-shadow: 0 0 0 7px transparent; }
    }
}

@media (max-width: 767px) {
    .home-hero .hero-grid::before {
        inset: 10% -55% -30% 5%;
    }

    .home-redesign .home-closing::after {
        opacity: .65;
    }
}
