.nubranch-hero-art {
    position: relative;
    width: 100%;
    min-height: 620px;
    isolation: isolate;
    overflow: visible;
}

/*
 * Keep decorative layers visible without allowing their entrance transforms
 * to enlarge the document scroll area. Transformed overflow can otherwise
 * make fixed headers and scroll-to-top controls shift while the animation is
 * running, especially on narrow viewports.
 */
.nubranch-hero-art--overflow-visible {
    overflow: clip !important;
    overflow-clip-margin: 320px;
}

.nubranch-hero-art--overflow-hidden {
    overflow: hidden !important;
    overflow-clip-margin: 0;
}

html.nubranch-hero-art-animation-active {
    overflow-x: clip;
}

@supports not (overflow: clip) {
    .nubranch-hero-art--overflow-visible {
        overflow: visible !important;
    }

    html.nubranch-hero-art-animation-active {
        overflow-x: hidden;
    }
}

.nubranch-hero-art__image-frame {
    position: absolute;
    top: 5%;
    left: 10%;
    z-index: 2;
    width: 84%;
    height: 84%;
    overflow: hidden;
    border-radius: 46% 8px 38% 9px;
    background: #e8e1d8;
}

.nubranch-hero-art__image-frame::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
    border-radius: inherit;
}

.nubranch-hero-art__image-frame picture,
.nubranch-hero-art__image-frame a {
    display: block;
    width: 100%;
    height: 100%;
}

.nubranch-hero-art__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center center;
    border-radius: inherit;
}

.nubranch-hero-art__circle {
    position: absolute;
    display: block;
    border-radius: 50%;
    pointer-events: none;
}

.nubranch-hero-art__circle--one {
    top: 0;
    left: 52%;
    z-index: 4;
    width: 72px;
    height: 72px;
    background: #bd6841;
}

.nubranch-hero-art__circle--two {
    right: -14px;
    bottom: 4%;
    z-index: 6;
    width: 185px;
    height: 185px;
    background: #aab88e;
}

.nubranch-hero-art__scribble {
    --nubranch-hero-art-scribble-x: -2%;
    --nubranch-hero-art-scribble-y: 12%;
    position: absolute;
    z-index: 7;
    display: block;
    width: 170px;
    color: #2c211b;
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.02em;
    white-space: normal;
    transform: rotate(-8deg);
    transform-origin: center;
    pointer-events: none;
}

.nubranch-hero-art__scribble--right {
    right: var(--nubranch-hero-art-scribble-x);
    left: auto;
}

.nubranch-hero-art__scribble--left {
    right: auto;
    left: var(--nubranch-hero-art-scribble-x);
}

.nubranch-hero-art__scribble--bottom {
    top: auto;
    bottom: var(--nubranch-hero-art-scribble-y);
}

.nubranch-hero-art__scribble--top {
    top: var(--nubranch-hero-art-scribble-y);
    bottom: auto;
}

.nubranch-hero-art__note {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 250px;
    padding: 30px;
    overflow: hidden;
    background: #f1e4cd;
}

.nubranch-hero-art__note-subtitle {
    margin: 0 0 12px;
    color: #7a5b43;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nubranch-hero-art__note-title {
    margin: 0 0 20px;
    color: #2c211b;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.12;
    font-family: var(--font-family-heading);
}

.nubranch-hero-art__note-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    margin-top: auto;
    color: #2c211b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .25s ease;
}

.nubranch-hero-art__note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform .25s ease;
}

.nubranch-hero-art__note-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.nubranch-hero-art__note-link:hover .nubranch-hero-art__note-icon,
.nubranch-hero-art__note-link:focus-visible .nubranch-hero-art__note-icon {
    transform: translateX(4px);
}

.nubranch-hero-art__note-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    .nubranch-hero-art {
        min-height: 560px;
    }

    .nubranch-hero-art__image-frame {
        top: 4%;
        left: 8%;
        width: 88%;
        height: 82%;
    }

    .nubranch-hero-art__note {
        width: 230px;
    }
}

@media (max-width: 767px) {
    .nubranch-hero-art {
        min-height: 500px;
    }

    .nubranch-hero-art__image-frame {
        top: 2%;
        left: 4%;
        width: 92%;
        height: 70%;
    }

    .nubranch-hero-art__circle--one {
        left: 58%;
        width: 54px;
        height: 54px;
    }

    .nubranch-hero-art__circle--two {
        right: -10px;
        width: 135px;
        height: 135px;
    }

    .nubranch-hero-art__scribble {
        --nubranch-hero-art-scribble-x: 0;
        --nubranch-hero-art-scribble-y: 23%;
        width: 120px;
        font-size: 16px;
    }

    .nubranch-hero-art__note {
        width: 210px;
        padding: 24px;
    }

    .nubranch-hero-art__note-title {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nubranch-hero-art__note-link,
    .nubranch-hero-art__note-icon {
        transition: none;
    }
}

/* Staggered entrance animation ------------------------------------------- */
.nubranch-hero-art__circle {
    opacity: var(--nubranch-hero-art-layer-opacity, 1);
}

.nubranch-hero-art__scribble {
    --nubranch-hero-art-scribble-rotation: -8deg;
    opacity: var(--nubranch-hero-art-layer-opacity, 1);
    transform: rotate(var(--nubranch-hero-art-scribble-rotation));
}

.nubranch-hero-art__note {
    --nubranch-hero-art-note-rotation: 0deg;
    transform: rotate(var(--nubranch-hero-art-note-rotation));
    transform-origin: center;
}

.nubranch-hero-art--animate .nubranch-hero-art__image-frame,
.nubranch-hero-art--animate .nubranch-hero-art__circle,
.nubranch-hero-art--animate .nubranch-hero-art__scribble,
.nubranch-hero-art--animate .nubranch-hero-art__note {
    animation-duration: var(--nubranch-hero-art-duration, 900ms);
    animation-fill-mode: both;
    animation-play-state: paused;
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Clip-path promotion is only needed by the Editorial Sweep preset. Keeping
 * it off the other presets reduces compositor pressure on mobile devices. */
.nubranch-hero-art--preset-editorial-sweep .nubranch-hero-art__image-frame,
.nubranch-hero-art--preset-editorial-sweep .nubranch-hero-art__scribble {
    will-change: transform, opacity, clip-path;
}

.nubranch-hero-art--animate .nubranch-hero-art__image-frame {
    animation-delay: 0ms;
}

.nubranch-hero-art--animate .nubranch-hero-art__circle--one {
    animation-delay: var(--nubranch-hero-art-stagger, 140ms);
}

.nubranch-hero-art--animate .nubranch-hero-art__circle--two {
    animation-delay: calc(var(--nubranch-hero-art-stagger, 140ms) * 2);
}

.nubranch-hero-art--animate .nubranch-hero-art__scribble {
    animation-delay: calc(var(--nubranch-hero-art-stagger, 140ms) * 3);
}

.nubranch-hero-art--animate .nubranch-hero-art__note {
    animation-delay: calc(var(--nubranch-hero-art-stagger, 140ms) * 4);
}

.nubranch-hero-art--animate.is-in-view .nubranch-hero-art__image-frame,
.nubranch-hero-art--animate.is-in-view .nubranch-hero-art__circle,
.nubranch-hero-art--animate.is-in-view .nubranch-hero-art__scribble,
.nubranch-hero-art--animate.is-in-view .nubranch-hero-art__note {
    animation-play-state: running;
}

.nubranch-hero-art--animate.is-animation-complete .nubranch-hero-art__image-frame,
.nubranch-hero-art--animate.is-animation-complete .nubranch-hero-art__circle,
.nubranch-hero-art--animate.is-animation-complete .nubranch-hero-art__scribble,
.nubranch-hero-art--animate.is-animation-complete .nubranch-hero-art__note {
    animation: none;
    will-change: auto;
}

/* Soft Rise */
.nubranch-hero-art--preset-soft-rise .nubranch-hero-art__image-frame {
    animation-name: nubranch-hero-art-soft-image;
}

.nubranch-hero-art--preset-soft-rise .nubranch-hero-art__circle--one {
    animation-name: nubranch-hero-art-soft-circle-one;
}

.nubranch-hero-art--preset-soft-rise .nubranch-hero-art__circle--two {
    animation-name: nubranch-hero-art-soft-circle-two;
}

.nubranch-hero-art--preset-soft-rise .nubranch-hero-art__scribble {
    animation-name: nubranch-hero-art-soft-scribble;
}

.nubranch-hero-art--preset-soft-rise .nubranch-hero-art__note {
    animation-name: nubranch-hero-art-soft-note;
}

@keyframes nubranch-hero-art-soft-image {
    from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes nubranch-hero-art-soft-circle-one {
    from { opacity: 0; transform: scale(.55); }
    to { opacity: var(--nubranch-hero-art-layer-opacity, 1); transform: scale(1); }
}

@keyframes nubranch-hero-art-soft-circle-two {
    from { opacity: 0; transform: translate3d(0, 58px, 0) scale(.88); }
    to { opacity: var(--nubranch-hero-art-layer-opacity, 1); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes nubranch-hero-art-soft-scribble {
    from {
        opacity: 0;
        transform: translate3d(0, 26px, 0) rotate(calc(var(--nubranch-hero-art-scribble-rotation, -8deg) - 4deg));
    }
    to {
        opacity: var(--nubranch-hero-art-layer-opacity, 1);
        transform: translate3d(0, 0, 0) rotate(var(--nubranch-hero-art-scribble-rotation, -8deg));
    }
}

@keyframes nubranch-hero-art-soft-note {
    from {
        opacity: 0;
        transform: translate3d(0, 48px, 0) rotate(calc(var(--nubranch-hero-art-note-rotation, 0deg) - 4deg));
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(var(--nubranch-hero-art-note-rotation, 0deg));
    }
}

/* Playful Pop */
.nubranch-hero-art--preset-playful-pop .nubranch-hero-art__image-frame {
    animation-name: nubranch-hero-art-pop-image;
}

.nubranch-hero-art--preset-playful-pop .nubranch-hero-art__circle--one,
.nubranch-hero-art--preset-playful-pop .nubranch-hero-art__circle--two {
    animation-name: nubranch-hero-art-pop-circle;
    /* Keep the scale progression one-directional. A Y value above 1 in the
     * previous easing curve caused the circles to overshoot and visibly
     * contract before the ambient float began. */
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}

.nubranch-hero-art--preset-playful-pop .nubranch-hero-art__scribble {
    animation-name: nubranch-hero-art-pop-scribble;
}

.nubranch-hero-art--preset-playful-pop .nubranch-hero-art__note {
    animation-name: nubranch-hero-art-pop-note;
    animation-timing-function: cubic-bezier(.2, 1.25, .35, 1);
}

@keyframes nubranch-hero-art-pop-image {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes nubranch-hero-art-pop-circle {
    0% {
        opacity: 0;
        transform: translate3d(0, 14px, 0) scale(.25);
    }
    58% {
        opacity: var(--nubranch-hero-art-layer-opacity, 1);
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        opacity: var(--nubranch-hero-art-layer-opacity, 1);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes nubranch-hero-art-pop-scribble {
    from {
        opacity: 0;
        transform: translate3d(42px, 0, 0) rotate(calc(var(--nubranch-hero-art-scribble-rotation, -8deg) + 8deg));
    }
    to {
        opacity: var(--nubranch-hero-art-layer-opacity, 1);
        transform: translate3d(0, 0, 0) rotate(var(--nubranch-hero-art-scribble-rotation, -8deg));
    }
}

@keyframes nubranch-hero-art-pop-note {
    0% {
        opacity: 0;
        transform: translate3d(0, 24px, 0) scale(.82) rotate(calc(var(--nubranch-hero-art-note-rotation, 0deg) + 8deg));
    }
    75% {
        opacity: 1;
        transform: translate3d(0, -4px, 0) scale(1.025) rotate(calc(var(--nubranch-hero-art-note-rotation, 0deg) - 1deg));
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotate(var(--nubranch-hero-art-note-rotation, 0deg));
    }
}

/* Editorial Sweep */
.nubranch-hero-art--preset-editorial-sweep .nubranch-hero-art__image-frame {
    animation-name: nubranch-hero-art-sweep-image;
}

.nubranch-hero-art--preset-editorial-sweep .nubranch-hero-art__circle--one {
    animation-name: nubranch-hero-art-sweep-circle-one;
}

.nubranch-hero-art--preset-editorial-sweep .nubranch-hero-art__circle--two {
    animation-name: nubranch-hero-art-sweep-circle-two;
}

.nubranch-hero-art--preset-editorial-sweep .nubranch-hero-art__scribble {
    animation-name: nubranch-hero-art-sweep-scribble;
}

.nubranch-hero-art--preset-editorial-sweep .nubranch-hero-art__note {
    animation-name: nubranch-hero-art-sweep-note;
}

@keyframes nubranch-hero-art-sweep-image {
    from { opacity: .3; clip-path: inset(0 100% 0 0 round 46% 8px 38% 9px); }
    to { opacity: 1; clip-path: inset(0 0 0 0 round 0); }
}

@keyframes nubranch-hero-art-sweep-circle-one {
    from { opacity: 0; transform: translate3d(0, -45px, 0); }
    to { opacity: var(--nubranch-hero-art-layer-opacity, 1); transform: translate3d(0, 0, 0); }
}

@keyframes nubranch-hero-art-sweep-circle-two {
    from { opacity: 0; transform: translate3d(60px, 0, 0); }
    to { opacity: var(--nubranch-hero-art-layer-opacity, 1); transform: translate3d(0, 0, 0); }
}

@keyframes nubranch-hero-art-sweep-scribble {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translate3d(28px, 0, 0) rotate(var(--nubranch-hero-art-scribble-rotation, -8deg));
    }
    to {
        opacity: var(--nubranch-hero-art-layer-opacity, 1);
        clip-path: inset(0 0 0 0);
        transform: translate3d(0, 0, 0) rotate(var(--nubranch-hero-art-scribble-rotation, -8deg));
    }
}

@keyframes nubranch-hero-art-sweep-note {
    from {
        opacity: 0;
        transform: translate3d(-64px, 0, 0) rotate(calc(var(--nubranch-hero-art-note-rotation, 0deg) - 3deg));
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(var(--nubranch-hero-art-note-rotation, 0deg));
    }
}

/* Layered Drift */
.nubranch-hero-art--preset-layered-drift .nubranch-hero-art__image-frame {
    animation-name: nubranch-hero-art-drift-image;
}

.nubranch-hero-art--preset-layered-drift .nubranch-hero-art__circle--one {
    animation-name: nubranch-hero-art-drift-circle-one;
}

.nubranch-hero-art--preset-layered-drift .nubranch-hero-art__circle--two {
    animation-name: nubranch-hero-art-drift-circle-two;
}

.nubranch-hero-art--preset-layered-drift .nubranch-hero-art__scribble {
    animation-name: nubranch-hero-art-drift-scribble;
}

.nubranch-hero-art--preset-layered-drift .nubranch-hero-art__note {
    animation-name: nubranch-hero-art-drift-note;
}

@keyframes nubranch-hero-art-drift-image {
    from { opacity: 0; transform: translate3d(18px, 22px, 0) scale(.975); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes nubranch-hero-art-drift-circle-one {
    from { opacity: 0; transform: translate3d(-32px, -38px, 0) scale(.75); }
    to { opacity: var(--nubranch-hero-art-layer-opacity, 1); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes nubranch-hero-art-drift-circle-two {
    from { opacity: 0; transform: translate3d(48px, 65px, 0) scale(.82); }
    to { opacity: var(--nubranch-hero-art-layer-opacity, 1); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes nubranch-hero-art-drift-scribble {
    from {
        opacity: 0;
        transform: translate3d(38px, -16px, 0) rotate(calc(var(--nubranch-hero-art-scribble-rotation, -8deg) + 5deg));
    }
    to {
        opacity: var(--nubranch-hero-art-layer-opacity, 1);
        transform: translate3d(0, 0, 0) rotate(var(--nubranch-hero-art-scribble-rotation, -8deg));
    }
}

@keyframes nubranch-hero-art-drift-note {
    from {
        opacity: 0;
        transform: translate3d(-48px, 55px, 0) rotate(calc(var(--nubranch-hero-art-note-rotation, 0deg) - 7deg));
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(var(--nubranch-hero-art-note-rotation, 0deg));
    }
}

/* Ambient circle movement is managed by nubranch_hero_art.js after the
   entrance animation has released its transform. This avoids the two
   animation systems competing for the same transform property. */
.nubranch-hero-art.is-floating .nubranch-hero-art__circle {
    will-change: translate, transform;
}

@media (prefers-reduced-motion: reduce) {
    .nubranch-hero-art--animate .nubranch-hero-art__image-frame,
    .nubranch-hero-art--animate .nubranch-hero-art__circle,
    .nubranch-hero-art--animate .nubranch-hero-art__scribble,
    .nubranch-hero-art--animate .nubranch-hero-art__note,
    .nubranch-hero-art.is-animation-complete .nubranch-hero-art__circle {
        animation: none !important;
        opacity: var(--nubranch-hero-art-layer-opacity, 1);
        clip-path: none;
        will-change: auto;
    }

    .nubranch-hero-art--animate .nubranch-hero-art__image-frame {
        opacity: 1;
        transform: none;
    }

    .nubranch-hero-art--animate .nubranch-hero-art__scribble {
        transform: rotate(var(--nubranch-hero-art-scribble-rotation, -8deg));
    }

    .nubranch-hero-art--animate .nubranch-hero-art__note {
        opacity: 1;
        transform: rotate(var(--nubranch-hero-art-note-rotation, 0deg));
    }
}
