/* Ambient surface primitives — mesh blobs, dot grids, decorative rings */

.surface-mesh {
    position: relative;
    isolation: isolate;
}

.surface-mesh::before,
.surface-mesh::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.surface-mesh::before {
    width: min(28rem, 70vw);
    height: min(28rem, 70vw);
    top: -12%;
    left: -8%;
    background: radial-gradient(circle, var(--color-pink-mid) 0%, transparent 70%);
    opacity: 0.45;
}

.surface-mesh::after {
    width: min(18rem, 45vw);
    height: min(18rem, 45vw);
    bottom: 5%;
    right: -5%;
    background: radial-gradient(circle, var(--color-pink-wash) 0%, transparent 68%);
    opacity: 0.35;
}

.surface-mesh > * {
    position: relative;
    z-index: 1;
}

.surface-dots {
    position: relative;
}

.surface-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image: radial-gradient(circle, rgba(var(--ink-rgb), 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 55% 45% at 85% 15%, black 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 55% 45% at 85% 15%, black 0%, transparent 72%);
}

.surface-dots > .container {
    position: relative;
    z-index: 1;
}

.surface-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(237, 28, 36, 0.15);
    pointer-events: none;
    z-index: 0;
}

.surface-ring--br::after {
    width: clamp(8rem, 18vw, 14rem);
    height: clamp(8rem, 18vw, 14rem);
    bottom: -2rem;
    right: -2rem;
    opacity: 0.4;
}

@media (max-width: 767px) {
    .surface-dots::before {
        opacity: 0.2;
        mask-image: radial-gradient(ellipse 40% 35% at 90% 10%, black 0%, transparent 70%);
        -webkit-mask-image: radial-gradient(ellipse 40% 35% at 90% 10%, black 0%, transparent 70%);
    }
}
