/* =========================================================
   Web Design — Section 3 / Our Approach
   Laptop composition with floating blueprint chips
   ========================================================= */

.nx-web-blueprint {
    --nx-bg: #07080A;
    --nx-text: #F5F7FA;
    --nx-text-muted: #9299A5;
    --nx-border: rgba(255, 255, 255, 0.08);
    --nx-accent: #4F7CFF;
    --nx-content: 1320px;
    --nx-pad: clamp(1.25rem, 4vw, 4rem);
    background: var(--nx-bg);
    color: var(--nx-text);
    padding: clamp(5rem, 12vh, 9rem) 0;
    border-top: 1px solid var(--nx-border);
    overflow-x: clip;
}

.nx-web-blueprint__inner {
    width: 100%;
    max-width: var(--nx-content);
    margin: 0 auto;
    padding: 0 var(--nx-pad);
}

body.nx-web-page .nx-web-blueprint h2 {
    margin: 0 0 0.9rem;
    max-width: 16ch;
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: clamp(2.1rem, 4.2vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.nx-web-blueprint__header p:last-child {
    margin: 0;
    max-width: 36rem;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    color: var(--nx-text-muted);
    line-height: 1.65;
}

.nx-web-blueprint__stage {
    position: relative;
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.nx-web-blueprint__shot {
    position: relative;
    margin: 0;
    isolation: isolate;
}

.nx-web-blueprint__shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: clamp(1.1rem, 2.4vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 28px 80px rgba(0, 0, 0, 0.48);
}

.nx-web-blueprint__overlays {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nx-web-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.72rem 0.95rem;
    color: #F5F7FA;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    background: rgba(12, 14, 18, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.nx-web-chip::before {
    content: "";
    position: absolute;
    inset: -7px;
    pointer-events: none;
    background:
        linear-gradient(#E8ECF2, #E8ECF2) top left / 9px 1px no-repeat,
        linear-gradient(#E8ECF2, #E8ECF2) top left / 1px 9px no-repeat,
        linear-gradient(#E8ECF2, #E8ECF2) top right / 9px 1px no-repeat,
        linear-gradient(#E8ECF2, #E8ECF2) top right / 1px 9px no-repeat,
        linear-gradient(#E8ECF2, #E8ECF2) bottom left / 9px 1px no-repeat,
        linear-gradient(#E8ECF2, #E8ECF2) bottom left / 1px 9px no-repeat,
        linear-gradient(#E8ECF2, #E8ECF2) bottom right / 9px 1px no-repeat,
        linear-gradient(#E8ECF2, #E8ECF2) bottom right / 1px 9px no-repeat;
}

.nx-web-chip svg {
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.nx-web-chip--tools {
    top: 9%;
    left: 18%;
    gap: 1.05rem;
    padding: 0.78rem 1.15rem;
    color: #1A1C20;
    background: #F5F7FA;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.nx-web-chip--tools svg {
    width: 1.15rem;
    height: 1.15rem;
}

.nx-web-chip--flow {
    top: 11%;
    right: 7%;
    gap: 0.55rem;
    padding: 0.62rem 0.78rem;
}

.nx-web-chip--flow span {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 247, 250, 0.88);
}

.nx-web-chip--swatch {
    top: 38%;
    right: 5%;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.85rem 0.7rem;
}

.nx-web-swatch {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    display: block;
}

.nx-web-swatch--a { background: #F5F7FA; }
.nx-web-swatch--b { background: #D8C3A5; }
.nx-web-swatch--c { background: #3A2418; border: 1px solid rgba(255, 255, 255, 0.12); }

.nx-web-chip--hierarchy {
    left: 5%;
    bottom: 13%;
}

.nx-web-chip--rhythm {
    right: 8%;
    bottom: 11%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.7rem 0.95rem 0.75rem;
}

.nx-web-chip--rhythm b {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
}

.nx-web-chip--rhythm span {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 247, 250, 0.78);
}

.nx-web-chip--path {
    left: 42%;
    bottom: 8%;
}

@media (max-width: 980px) {
    .nx-web-chip--tools { left: 8%; }
    .nx-web-chip--path { left: auto; right: 28%; bottom: 24%; }
}

@media (max-width: 760px) {
    .nx-web-blueprint__overlays {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-top: 1.15rem;
        inset: auto;
    }

    .nx-web-chip {
        position: relative;
        width: 100%;
        min-height: 3.4rem;
        white-space: normal;
    }

    .nx-web-chip--tools,
    .nx-web-chip--swatch {
        display: none;
    }

    .nx-web-chip--flow,
    .nx-web-chip--hierarchy,
    .nx-web-chip--rhythm,
    .nx-web-chip--path {
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-web-chip {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(13, 15, 18, 0.92);
    }

    .nx-web-chip--tools {
        background: #F5F7FA;
    }
}
