/* Cortex page — themed to match Consulting / Grid / About */

/* ============================================
   Hero — title + INTERNAL stamp
   ============================================ */
.cortex-hero {
    background: #0a0a0a;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #222;
}

/* faint diagonal hatching — distinct from grid (xy) and consulting (horizontal) and about (radial) */
.cortex-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0,
        transparent 28px,
        rgba(81, 10, 148, 0.04) 28px,
        rgba(81, 10, 148, 0.04) 29px
    );
    pointer-events: none;
}

.cortex-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(10, 10, 10, 0.85) 100%);
    pointer-events: none;
}

.cortex-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
    padding: 5rem 2rem;
    text-align: center;
    width: 100%;
}

.cortex-headline {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    margin: 2.25rem 0 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cortex-title {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    color: #ffffff;
    margin: 0;
}

/* INTERNAL ONLY rubber stamp */
.cortex-stamp {
    display: inline-block;
    position: relative;
    padding: 0.6rem 1.1rem;
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c14a4a;
    border: 3px solid #c14a4a;
    border-radius: 4px;
    line-height: 1;
    transform: rotate(-7deg);
    background: rgba(193, 74, 74, 0.04);
    box-shadow: inset 0 0 0 2px rgba(10, 10, 10, 0.6);
    text-shadow:
        1px 0 0 rgba(193, 74, 74, 0.3),
        -1px 0 0 rgba(193, 74, 74, 0.3);
    /* slight ink-distress feel */
    filter: contrast(1.05);
    flex-shrink: 0;
}

.cortex-stamp::before,
.cortex-stamp::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

/* inner double border ring */
.cortex-stamp::before {
    inset: 4px;
    border: 1px solid rgba(193, 74, 74, 0.65);
    border-radius: 2px;
}

/* mottled ink texture — small scratches via repeating gradient */
.cortex-stamp::after {
    inset: 0;
    background-image:
        repeating-linear-gradient(
            72deg,
            transparent 0,
            transparent 3px,
            rgba(10, 10, 10, 0.18) 3px,
            rgba(10, 10, 10, 0.18) 4px
        ),
        repeating-linear-gradient(
            -18deg,
            transparent 0,
            transparent 5px,
            rgba(10, 10, 10, 0.10) 5px,
            rgba(10, 10, 10, 0.10) 6px
        );
    border-radius: 4px;
    mix-blend-mode: multiply;
}

.cortex-stamp-inner {
    position: relative;
    z-index: 1;
    display: inline-block;
    line-height: 1.1;
}

.cortex-subtitle {
    font-size: 1.25rem;
    color: #b8b8c0;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 0.01em;
    max-width: 600px;
}

/* ============================================
   Stance section — single emphasis card
   ============================================ */
.stance-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(81, 10, 148, 0.10) 0%, transparent 60%),
        #0f0f0f;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 5rem 0;
}

.stance-section h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2.5rem;
    letter-spacing: -0.02em;
}

.stance-card {
    max-width: 760px;
    margin: 0 auto;
    background: rgba(20, 20, 22, 0.55);
    border: 1px solid rgba(81, 10, 148, 0.3);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 2.5rem 2.25rem;
    text-align: left;
}

.stance-card p {
    color: #d6d6dc;
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0 0 1.5rem;
}

.stance-card p:last-child {
    margin-bottom: 0;
}

.stance-pullquote {
    font-family: var(--mono);
    font-size: 1.05rem !important;
    color: var(--accent) !important;
    font-style: normal;
    text-align: center;
    padding-top: 1.25rem;
    margin-top: 0.5rem !important;
    border-top: 1px dashed rgba(81, 10, 148, 0.4);
    letter-spacing: 0.02em;
}

/* ============================================
   Headline guardrail — feature callout above offer-list
   ============================================ */
.headline-guardrail {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    background: linear-gradient(135deg, rgba(81, 10, 148, 0.10) 0%, rgba(81, 10, 148, 0.03) 100%);
    border: 1px solid rgba(81, 10, 148, 0.4);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 1.75rem 2rem 1.85rem;
    text-align: left;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hg-tag {
    display: block;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hg-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}

.headline-guardrail p {
    color: #d6d6dc;
    line-height: 1.7;
    font-size: 1.02rem;
    margin: 0;
}

.headline-guardrail em {
    color: #b894e0;
    font-style: italic;
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
    .cortex-hero {
        min-height: 60vh;
    }

    .cortex-hero-inner {
        padding: 3rem 1.25rem;
    }

    .cortex-headline {
        gap: 1.25rem;
        margin: 1.75rem 0 1.5rem;
    }

    .cortex-stamp {
        font-size: 0.85rem;
        padding: 0.5rem 0.85rem;
        letter-spacing: 0.15em;
    }

    .cortex-subtitle {
        font-size: 1.1rem;
    }

    .stance-section h2 {
        font-size: 1.75rem;
    }

    .stance-card {
        padding: 2rem 1.5rem;
    }

    .stance-card p {
        font-size: 1rem;
    }

    .headline-guardrail {
        padding: 1.5rem 1.25rem;
    }

    .hg-title {
        font-size: 1.25rem;
    }

    .headline-guardrail p {
        font-size: 0.98rem;
    }
}
