/* Brand detail layer. Shared geometry remains owned by the named theme rails. */
.am-link-building {
    color: var(--am-accent);
}
.ad-light .am-link-building {
    color: #a34615;
}
.aomark-header .am-link-building,
.aomark-footer .am-link-building {
    color: var(--am-accent);
}
a[href*="/services/link-building/"]:not(.wp-block-button__link),
a[href*="portal.linkbuilding.rs"]:not(.wp-block-button__link) {
    color: var(--am-accent);
}
.ad-light main a[href*="/services/link-building/"]:not(.wp-block-button__link) {
    color: #a34615;
}
.ad-role-link-building .am-inner-opening {
    background: radial-gradient(ellipse at 50% 0, #773a243b, transparent 70%), #0e0f18;
}
.ad-role-link-building .am-eyebrow,
.ad-role-link-building .ad-breadcrumbs [aria-current] {
    color: #ffac76;
}
.ad-role-link-building .am-capability-item {
    border-top-color: #ff975766;
}
.am-home-opening {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.am-home-title {
    position: relative;
}
.am-capability-strip {
    position: relative;
    overflow: hidden;
}
.am-capability-strip::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 1px;
    width: 25%;
    background: linear-gradient(90deg, transparent, #a378e8, transparent);
}
.am-service-row {
    transition:
        background 0.25s,
        border-color 0.25s;
    border-radius: 14px;
}
.am-service-row:hover {
    background: linear-gradient(100deg, #6424a00b, #6424a020);
    border-color: #986ed04d;
}
.am-service-row .am-item-number {
    transition:
        color 0.2s,
        transform 0.3s;
}
.am-service-row:hover .am-item-number {
    color: #dcbeff;
    transform: translateX(5px);
}
.am-product-panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #ffffff13;
}
.am-product-panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -140px;
    top: -170px;
    background: #9867ef1f;
    filter: blur(40px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.am-product-visual img,
.am-offer-image img {
    transition: transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.am-product-panel:hover .am-product-visual img,
.am-offer-grid:hover .am-offer-image img {
    transform: scale(1.035);
}
.am-process-grid {
    position: relative;
}
.am-process-step {
    position: relative;
}
.am-process-step::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    top: -4px;
    left: 0;
    background: #b285ff;
    box-shadow: 0 0 0 5px #a678ec12;
}
.am-learning-stage {
    border-block: 1px solid #ffffff13;
}
.am-learning-stage .am-eyebrow {
    color: #bc94ff;
}
.am-insight-paths {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 40px;
}
.am-insight-path {
    min-width: 0;
    border: 1px solid #ffffff18;
    border-radius: 18px;
    overflow: hidden;
    background: #171724;
}
.am-insight-path figure {
    margin: 0;
    overflow: hidden;
}
.am-insight-path img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.am-insight-path:hover img {
    transform: scale(1.05);
}
.am-insight-path h3 {
    padding: 22px;
    margin: 0;
    font-size: 25px;
}
.am-insight-path h3 a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f9f6ff;
    text-decoration: none;
}
.am-insight-path h3 a::after {
    content: "";
    width: 23px;
    height: 23px;
    background: #b389ef;
    mask: url("../icons/arrow-up-right.svg") center/contain no-repeat;
}
.ad-closing {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.ad-closing::before {
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: -1;
    width: 450px;
    height: 450px;
    border: 1px solid #b78ae82e;
    border-radius: 50%;
    right: -120px;
    top: -180px;
    box-shadow:
        0 0 0 45px #b78ae807,
        0 0 0 90px #b78ae805;
}
.am-contact-paths {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
}
.am-contact-paths .wp-block-button__link {
    color: #ded3ed;
    background: #1e172d;
    border: 1px solid #ffffff24;
    min-height: 44px;
    padding: 11px 16px;
    font-size: 12px;
}
.am-contact-paths .wp-block-button__link:hover {
    background: #352246;
}
.am-contact-paths .wp-block-button__link[href*="link-building"] {
    color: #ffad78;
    border-color: #ff975759;
}
.am-contact-grid {
    align-items: start;
}
.am-contact-card {
    position: relative;
    box-shadow: 0 18px 80px #0003;
    border: 1px solid #a16edf4a;
}
.am-contact-card::before {
    content: "";
    display: block;
    width: 38px;
    height: 38px;
    margin-bottom: 24px;
    background: #bb94f7;
    mask: url("../icons/workflow.svg") center/contain no-repeat;
}
.am-contact-card .am-contact-paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.am-contact-card .am-contact-paths .wp-block-button__link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 14px;
}
@media (max-width: 980px) {
    .am-insight-paths {
        gap: 16px;
    }
    .am-insight-path img {
        height: 130px;
    }
    .am-insight-path h3 {
        padding: 18px;
        font-size: 21px;
    }
}
@media (max-width: 600px) {
    .am-insight-paths {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 28px;
    }
    .am-insight-path {
        display: grid;
        grid-template-columns: 106px 1fr;
        align-items: center;
    }
    .am-insight-path img {
        height: 100px;
    }
    .am-insight-path h3 {
        padding: 16px;
        font-size: 22px;
    }
    .am-contact-card .am-contact-paths {
        grid-template-columns: 1fr;
    }
    .ad-closing::before {
        right: -340px;
    }
}
@media (prefers-reduced-motion: no-preference) {
    .am-capability-strip::after {
        animation: am-line-travel 4s ease-in-out 1;
    }
    .wp-block-button__link:focus-visible {
        transform: translateY(-2px);
    }
}
@keyframes am-glow-drift {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-100px, 120px);
    }
}
@keyframes am-emblem-settle {
    from {
        transform: rotate(-35deg) scale(0.75);
    }
    to {
        transform: rotate(0) scale(1);
    }
}
@keyframes am-line-travel {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(500%);
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
.am-insight-paths > .am-insight-path {
    margin: 0;
}

/* Living brand layer: exact owned artwork, existing rails and editable native media. */
.am-home-opening {
    background:
        linear-gradient(105deg, #0e1123db, #15113366),
        url("/wp-content/uploads/aomark-build/d483aee955a0bc83.webp") center/cover no-repeat;
}
.am-home-opening::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: 0;
    background:
        radial-gradient(ellipse at 90% 75%, #8045f54d, transparent 55%),
        radial-gradient(ellipse at 0 10%, #ff7e2526, transparent 40%);
}
.am-home-title::after {
    content: none;
}
.am-home-visuals {
    position: relative;
}
.am-brand-motion {
    position: relative;
    isolation: isolate;
    background: #0b0d25;
    box-shadow: 0 0 70px #6b36c425;
}
.am-brand-motion video {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 2.33;
    object-fit: cover;
}
.am-motion-toggle {
    position: absolute;
    bottom: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 100px;
    border: 1px solid #b493ef80;
    background: #100d23e8;
    color: #faf8ff;
    font: 500 10px/1.2 var(--wp--preset--font-family--poppins);
    cursor: pointer;
    box-shadow: 0 4px 20px #0005;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.am-motion-toggle::before {
    content: "";
    width: 5px;
    height: 5px;
    background: #b28aff;
    border-radius: 50%;
}
.am-motion-toggle:hover {
    background: #6930c9;
    border-color: #c9a7ff;
}
.am-home-visuals .am-work-card {
    border: 1px solid #a88bd03d;
}
.am-home-visuals .am-work-image {
    overflow: hidden;
}
.am-home-visuals .am-work-image img {
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.am-home-visuals .am-work-card:is(:hover, :focus-within) .am-work-image img {
    transform: scale(1.045);
}
.am-home-intro {
    border-left: 1px dashed #b796e450;
    padding-left: 28px;
}
.am-capability-strip {
    border-top: 1px dashed #c19df555;
    border-bottom-color: #ad87e42b;
}
.am-capability-strip p {
    display: flex;
    align-items: center;
    gap: 16px;
}
.am-capability-strip p::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #b285ed;
    border-radius: 50%;
    box-shadow: 0 0 18px #ab76fc66;
}
.am-capability-strip p:first-child::before {
    background: #ff9757;
}
.am-services-stage .am-stage-heading figure {
    border: 1px dashed #a790c773;
    border-radius: 150px 150px 18px 18px;
    overflow: hidden;
    background: #121325;
}
.am-services-stage .am-stage-heading figure img {
    scale: 1.08;
}
.am-service-row {
    transition:
        border-color 0.3s,
        background 0.3s;
}
.am-service-row:focus-within {
    border-color: #b589f280;
    background: linear-gradient(90deg, transparent, #9053d00e);
}
.am-service-description h3 {
    transition: color 0.25s;
}
.am-service-row:is(:hover, :focus-within) h3 {
    color: #d5b7ff;
}
.am-product-visual img,
.am-company-art img {
    will-change: translate;
}
.am-product-panel {
    border-color: #8966b42e;
}
.am-product-visual {
    border: 1px solid #b895eb33;
    box-shadow: 0 25px 70px #05050b66;
}
@media (max-width: 980px) {
    .am-home-intro {
        padding-left: 0;
        border: 0;
    }
    .am-motion-toggle {
        bottom: 16px;
    }
}
@media (max-width: 600px) {
    .am-brand-motion {
        min-height: 166px;
    }
    .am-brand-motion video {
        min-height: 166px;
    }
    .am-motion-toggle {
        bottom: 14px;
        font-size: 9px;
    }
    .am-capability-strip p {
        gap: 7px;
    }
    .am-capability-strip p::before {
        width: 4px;
        height: 4px;
    }
    .am-services-stage .am-stage-heading figure {
        border-radius: 90px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .am-product-visual img,
    .am-company-art img {
        will-change: auto;
    }
    .am-home-visuals .am-work-card:is(:hover, :focus-within) .am-work-image img {
        transform: none;
    }
}
