/* r33 owner: related-project-profile. The route component no longer carries cross-route header or navigation patches. */
/* Related public-project profiles ---------------------------------------- */

.page-hero--profile::before {
    content: "RELATED";
    inset: auto -0.04em -0.18em auto;
    color: rgba(var(--signal-rgb), 0.035);
    font-size: clamp(7rem, 19vw, 19rem);
    letter-spacing: -0.09em;
}

.page-hero--foundation {
    background:
        radial-gradient(circle at 18% 42%, rgba(var(--signal-rgb), 0.12), transparent 30rem),
        linear-gradient(145deg, var(--bg), var(--bg-soft));
}

.page-hero--ghrisx {
    background:
        radial-gradient(circle at 78% 32%, rgba(var(--dawn-rgb), 0.1), transparent 27rem),
        linear-gradient(145deg, var(--bg), var(--bg-soft));
}

.display--profile {
    max-width: 11ch;
    font-size: clamp(4rem, 8.4vw, 9rem);
    overflow-wrap: anywhere;
}

.profile-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: start;
}

.profile-intro__title,
.profile-intro__copy,
.profile-intro__copy p {
    min-width: 0;
}

.profile-intro__title h2 {
    max-width: 12ch;
    overflow-wrap: anywhere;
}

.profile-intro__copy {
    padding-top: 0.35rem;
}

.profile-intro__copy p {
    color: var(--muted);
    font-size: clamp(1.02rem, 1.5vw, 1.28rem);
    line-height: 1.75;
}

.profile-intro__copy p:first-child {
    color: var(--text);
    font-size: clamp(1.15rem, 1.85vw, 1.55rem);
}

.section--profile-registers {
    border-block: 1px solid var(--line);
    background: var(--bg-soft);
}

.profile-register-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.profile-register {
    display: flex;
    min-width: 0;
    min-height: 22rem;
    padding: clamp(1.2rem, 2.5vw, 1.75rem);
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: var(--surface);
}

.profile-register > span {
    display: block;
    margin-bottom: auto;
    color: var(--faint);
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 6vw, 6.2rem);
    font-weight: 900;
    line-height: 0.8;
}

.profile-register h3 {
    margin: 2.5rem 0 0.9rem;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    overflow-wrap: anywhere;
}

.profile-register p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.72;
}

.section--profile-links {
    background:
        linear-gradient(180deg, rgba(var(--signal-rgb), 0.025), transparent 25rem),
        var(--bg);
}

.profile-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: 1rem;
}

.profile-link-card {
    display: flex;
    min-width: 0;
    min-height: 25rem;
    padding: clamp(1.4rem, 3.2vw, 2.35rem);
    flex-direction: column;
    border: 1px solid var(--line-strong);
    border-radius: 1rem;
    background:
        linear-gradient(145deg, rgba(var(--signal-rgb), 0.065), transparent 45%),
        var(--surface);
    box-shadow: var(--shadow);
}

.profile-link-card__domain {
    margin: 0 0 2.5rem;
    color: var(--signal) !important;
    font-family: var(--font-mono);
    font-size: 0.65rem !important;
    font-weight: 850;
    letter-spacing: 0.12em;
    line-height: 1.4 !important;
    text-transform: uppercase;
}

.profile-link-card h3 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 4rem);
    overflow-wrap: anywhere;
}

.profile-link-card > p:not(.profile-link-card__domain, .profile-link-card__status) {
    max-width: 52rem;
    color: var(--muted);
    line-height: 1.72;
}

.profile-link-card__status {
    margin: auto 0 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.65;
}

.profile-link-card__status strong {
    color: var(--text);
}

.profile-link-card .button {
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.section--profile-boundary {
    border-block: 1px solid var(--line);
    background: var(--bg-soft);
}

.profile-boundary {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--line-strong);
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(var(--dawn-rgb), 0.07), transparent 52%),
        var(--surface);
}

.profile-boundary > h2 {
    max-width: 17ch;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    overflow-wrap: anywhere;
}

.profile-boundary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.profile-boundary__grid article {
    min-width: 0;
    padding: clamp(1.15rem, 2.8vw, 2rem);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.profile-boundary__grid h3 {
    margin: 0 0 0.75rem;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
}

.profile-boundary__grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.72;
}

.section--profile-next {
    padding-block: clamp(4rem, 7vw, 6rem);
}

.profile-next {
    display: grid;
    padding: clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
}

.profile-next h2 {
    max-width: 15ch;
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 4.5vw, 4.7rem);
    overflow-wrap: anywhere;
}

.profile-next p:not(.eyebrow) {
    max-width: 52rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.profile-next .button {
    max-width: 18rem;
}


@media (max-width: 1100px) {
    .profile-register-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-register {
        min-height: 18rem;
    }
}

@media (max-width: 980px) {
    .profile-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .profile-intro__title h2 {
        max-width: 15ch;
    }

    .display--profile {
        max-width: 12ch;
    }
}

@media (max-width: 720px) {
    .display--profile {
        max-width: 100%;
        font-size: clamp(3.45rem, 15.5vw, 5.25rem);
    }

    .profile-register-grid,
    .profile-boundary__grid,
    .profile-next {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-register {
        min-height: auto;
    }

    .profile-register > span {
        margin-bottom: 2.5rem;
    }

    .profile-link-card {
        min-height: auto;
        padding: 1.25rem;
    }

    .profile-link-card__status {
        margin-top: 2rem;
    }

    .profile-link-card .button,
    .profile-next .button {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .profile-boundary,
    .profile-link-card,
    .profile-next,
    .profile-register {
        border-radius: 0.75rem;
    }

    .profile-intro__copy p,
    .profile-boundary__grid p,
    .profile-register p,
    .profile-link-card__status {
        font-size: 0.78rem;
    }
}

@media print {
    .profile-register-grid,
    .profile-link-grid,
    .profile-boundary__grid,
    .profile-intro,
    .profile-next {
        display: block;
    }

    .profile-register,
    .profile-link-card,
    .profile-boundary,
    .profile-next {
        margin-bottom: 1rem;
        min-height: 0;
        break-inside: avoid;
        box-shadow: none;
    }
}

