.ajf-hero-banner,
.ajf-hero-banner * {
    box-sizing: border-box;
}

.ajf-hero-banner {
    --ajf-navy: #061126;
    --ajf-navy-2: #0B1730;
    --ajf-gold: #D6A74B;
    --ajf-red: #A51F24;
    --ajf-img-x: 0px;
    --ajf-img-y: 0px;
    --ajf-stats-x: 0px;
    --ajf-stats-y: 0px;
    --ajf-float-distance: 8px;
    --ajf-float-duration: 7s;
    --ajf-shine-duration: 6.5s;
    --ajf-shine-opacity: 0.62;
    --ajf-shine-color: rgba(214, 167, 75, 0.34);
    --ajf-tail-glow-opacity: 0.28;
    --ajf-tail-glow-duration: 8s;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 850px;
    padding: 138px 0 38px;
    background: #ffffff;
    isolation: isolate;
}

.ajf-hero-banner--full-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.ajf-hero-banner::before {
    content: "";
    position: absolute;
    left: -142px;
    top: 20px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(214, 167, 75, 0.22);
    box-shadow:
        0 0 0 24px rgba(214, 167, 75, 0.075),
        0 0 0 48px rgba(214, 167, 75, 0.038),
        0 0 0 72px rgba(214, 167, 75, 0.02);
    pointer-events: none;
    z-index: -1;
}

.ajf-hero-banner::after {
    content: "";
    position: absolute;
    right: 118px;
    top: 0;
    width: 238px;
    height: 152px;
    background-image: radial-gradient(rgba(6, 17, 38, 0.18) 1.2px, transparent 1.2px);
    background-size: 15px 15px;
    opacity: 0.32;
    pointer-events: none;
    z-index: -1;
}

.ajf-hero-banner--hide-rings::before,
.ajf-hero-banner--hide-dots::after {
    display: none;
}

.ajf-hero-banner__container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.ajf-hero-banner__container::before,
.ajf-hero-banner__container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ajf-hero-banner__container::before {
    width: 24px;
    height: 24px;
    background: rgba(6, 17, 38, 0.10);
    left: 50.2%;
    top: 4px;
}

.ajf-hero-banner__container::after {
    width: 14px;
    height: 14px;
    background: rgba(6, 17, 38, 0.22);
    left: 51.1%;
    top: 340px;
}

.ajf-hero-banner--hide-small-dots .ajf-hero-banner__container::before,
.ajf-hero-banner--hide-small-dots .ajf-hero-banner__container::after {
    display: none;
}

.ajf-hero-banner__grid {
    position: relative;
    min-height: 640px;
    display: block;
}

.ajf-hero-banner__content {
    position: relative;
    z-index: 4;
    width: 52%;
    max-width: 700px;
    min-width: 0;
    margin-top: 112px;
    margin-left: 0;
}

.ajf-hero-banner__title {
    max-width: 680px;
    margin: 0;
    color: var(--ajf-navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 66px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.ajf-hero-banner__title p,
.ajf-hero-banner__title span,
.ajf-hero-banner__title strong,
.ajf-hero-banner__title b,
.ajf-hero-banner__title em,
.ajf-hero-banner__title i,
.ajf-hero-banner__title mark,
.ajf-hero-banner__title small {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.ajf-hero-banner__title p {
    margin: 0;
}

.ajf-highlight {
    color: var(--ajf-red);
}

.ajf-hero-banner__description {
    max-width: 680px;
    margin: 30px 0 0;
    color: #42506A;
    font-family: Inter, Manrope, Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.ajf-hero-banner__actions {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    margin: 42px 0 0;
}

.ajf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 304px;
    min-height: 66px;
    padding: 19px 38px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: Inter, Manrope, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ajf-btn:hover {
    transform: translateY(-1px);
}

.ajf-btn:focus-visible {
    outline: 3px solid rgba(214, 167, 75, 0.55);
    outline-offset: 3px;
}

.ajf-btn__arrow {
    font-size: 28px;
    line-height: 1;
    transform: translateY(-1px);
}

.ajf-btn--primary {
    background: #061B49;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(6, 17, 38, 0.10);
}

.ajf-btn--primary:hover,
.ajf-btn--primary:focus {
    background: #08245A;
    color: #ffffff;
}

.ajf-btn--secondary {
    background: #ffffff;
    color: #102A58;
    border-color: #102A58;
}

.ajf-btn--secondary:hover,
.ajf-btn--secondary:focus {
    background: #FAF8F3;
    color: #061126;
    border-color: #061126;
}

.ajf-hero-banner__media {
    position: absolute;
    z-index: 2;
    top: 0;
    right: -42px;
    width: 62%;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    isolation: isolate;
}

.ajf-hero-banner__media-inner {
    width: 930px;
    max-width: none;
    position: relative;
    transform: translate(var(--ajf-img-x), var(--ajf-img-y));
    isolation: isolate;
}

.ajf-hero-banner__image {
    display: block;
    width: 100%;
    height: auto;
}

.ajf-hero-banner--image-left .ajf-hero-banner__content {
    margin-left: auto;
}

.ajf-hero-banner--image-left .ajf-hero-banner__media {
    right: auto;
    left: -118px;
    justify-content: flex-start;
}

.ajf-hero-banner--no-image .ajf-hero-banner__content {
    width: 100%;
    max-width: 840px;
}

.ajf-hero-banner--no-image .ajf-hero-banner__media {
    display: none;
}


.ajf-btn--secondary {
    min-width: 285px;
}

.ajf-hero-banner__tail {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.ajf-hero-banner__tail-inner {
    --ajf-tail-x: 132px;
    --ajf-tail-y: 455px;
    --ajf-tail-rotate: 0deg;
    position: absolute;
    right: 0;
    top: 0;
    width: 900px;
    max-width: none;
    transform: translate(var(--ajf-tail-x), var(--ajf-tail-y)) rotate(var(--ajf-tail-rotate));
    transform-origin: 55% 45%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
}

.ajf-hero-banner__tail-image {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.54;
}

.ajf-hero-banner__stats {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 1080px;
    margin: 0 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translate(var(--ajf-stats-x), var(--ajf-stats-y));
    will-change: transform;
}

.ajf-hero-banner__stat {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    min-width: 0;
    padding: 8px 34px 8px 0;
}

.ajf-hero-banner__stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 1px;
    height: 54px;
    background: rgba(11, 23, 48, 0.13);
    transform: translateY(-50%);
}

.ajf-hero-banner__stat-icon {
    flex: 0 0 auto;
    color: var(--ajf-gold);
    font-size: 38px;
    line-height: 1;
}

.ajf-hero-banner__stat-icon svg {
    width: 38px;
    height: 38px;
    fill: currentColor;
}

.ajf-hero-banner__stat-value {
    color: var(--ajf-navy);
    font-family: Inter, Manrope, Arial, sans-serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.ajf-hero-banner__stat-label {
    margin-top: 5px;
    color: #52627E;
    font-family: Inter, Manrope, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}



/* Premium motion layer */
.ajf-hero-banner--float .ajf-hero-banner__image {
    animation: ajf-phoenix-float var(--ajf-float-duration) ease-in-out infinite;
    transform-origin: center center;
    will-change: transform;
}

@keyframes ajf-phoenix-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, calc(-1 * var(--ajf-float-distance)), 0) scale(1.006);
    }
}

.ajf-hero-banner--shine .ajf-hero-banner__media-inner::after {
    content: "";
    position: absolute;
    inset: -10%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 18%,
        rgba(255,255,255,0.03) 32%,
        var(--ajf-shine-color) 44%,
        rgba(255,255,255,0.34) 50%,
        var(--ajf-shine-color) 58%,
        transparent 76%
    );
    transform: translateX(-135%) skewX(-8deg);
    opacity: 0;
    mix-blend-mode: screen;
    animation: ajf-phoenix-shine var(--ajf-shine-duration) ease-in-out infinite;
}

@keyframes ajf-phoenix-shine {
    0%, 34% {
        transform: translateX(-135%) skewX(-8deg);
        opacity: 0;
    }
    48% {
        opacity: var(--ajf-shine-opacity);
    }
    68%, 100% {
        transform: translateX(135%) skewX(-8deg);
        opacity: 0;
    }
}

.ajf-hero-banner--tail-glow .ajf-hero-banner__media::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: -4%;
    width: 58%;
    height: 30%;
    pointer-events: none;
    background:
        radial-gradient(closest-side at 34% 58%, rgba(214,167,75,0.42), transparent 70%),
        radial-gradient(closest-side at 62% 52%, rgba(165,31,36,0.25), transparent 72%),
        radial-gradient(closest-side at 78% 46%, rgba(11,39,82,0.22), transparent 76%);
    filter: blur(18px) saturate(1.1);
    opacity: var(--ajf-tail-glow-opacity);
    mix-blend-mode: screen;
    animation: ajf-tail-glow var(--ajf-tail-glow-duration) ease-in-out infinite;
}

@keyframes ajf-tail-glow {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: calc(var(--ajf-tail-glow-opacity) * 0.75);
    }
    50% {
        transform: translate3d(18px, -8px, 0) scale(1.04);
        opacity: var(--ajf-tail-glow-opacity);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ajf-hero-banner--float .ajf-hero-banner__image,
    .ajf-hero-banner--shine .ajf-hero-banner__media-inner::after,
    .ajf-hero-banner--tail-glow .ajf-hero-banner__media::after,
    .ajf-hero-banner__tail-image {
        animation: none !important;
    }
}

@media (max-width: 1279px) {
    .ajf-hero-banner {
        padding-top: 112px;
        min-height: 790px;
    }

    .ajf-hero-banner__container {
        padding-left: 28px;
        padding-right: 28px;
    }

    .ajf-hero-banner__content {
        margin-top: 94px;
        width: 52%;
    }

    .ajf-hero-banner__title {
        font-size: 56px;
    }

    .ajf-hero-banner__description {
        font-size: 19px;
    }

    .ajf-btn {
        min-width: 270px;
        min-height: 66px;
        padding: 19px 32px;
        font-size: 17px;
    }

    .ajf-hero-banner__media {
        right: -50px;
        width: 58%;
    }

    .ajf-hero-banner__media-inner {
        width: 780px;
    }

    .ajf-hero-banner__stats {
        max-width: 1040px;
    }
}

@media (max-width: 1024px) {
    .ajf-hero-banner__tail {
        display: none;
    }

    .ajf-hero-banner {
        min-height: auto;
        padding-top: 82px;
    }

    .ajf-hero-banner__grid {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 28px;
    }

    .ajf-hero-banner__content {
        width: 100%;
        max-width: 760px;
        margin-top: 0;
    }

    .ajf-hero-banner__media {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        justify-content: center;
        pointer-events: auto;
    }

    .ajf-hero-banner__media-inner {
        width: 720px;
        max-width: 100%;
    }

    .ajf-hero-banner__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 38px;
        max-width: 100%;
    }

    .ajf-hero-banner__stat:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .ajf-hero-banner {
        padding: 56px 0 24px;
    }

    .ajf-hero-banner::before {
        width: 220px;
        height: 220px;
        left: -120px;
        top: 110px;
    }

    .ajf-hero-banner::after,
    .ajf-hero-banner__container::before,
    .ajf-hero-banner__container::after {
        display: none;
    }

    .ajf-hero-banner__container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ajf-hero-banner__title {
        font-size: 42px;
        line-height: 1.05;
    }

    .ajf-hero-banner__description {
        margin-top: 20px;
        font-size: 17px;
    }

    .ajf-hero-banner__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 28px;
        flex-wrap: nowrap;
    }

    .ajf-btn {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        padding: 18px 22px;
        font-size: 16px;
    }

    .ajf-btn__arrow {
        font-size: 24px;
    }

    .ajf-hero-banner__stats {
        grid-template-columns: 1fr;
        margin-top: 20px;
        padding: 12px 12px;
        background: #fff;
        border: 1px solid rgba(11, 23, 48, 0.08);
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(6, 17, 38, 0.06);
    }

    .ajf-hero-banner__stat {
        justify-content: flex-start;
        padding: 14px 12px;
    }

    .ajf-hero-banner__stat::after {
        display: none;
    }

    .ajf-hero-banner__stat:not(:last-child) {
        border-bottom: 1px solid rgba(11, 23, 48, 0.13);
    }

    .ajf-hero-banner__stat-value {
        font-size: 24px;
    }

    .ajf-hero-banner__stat-label {
        font-size: 14px;
    }
}
