:root {
    --links-orange: #ff6a00;
    --links-orange-light: #ff8a1f;
    --links-bg: #060606;
    --links-surface: #101011;
    --links-surface-raised: #161617;
    --links-border: #29292c;
    --links-text: #f7f7f8;
    --links-muted: #a4a4aa;
    --links-soft: #6f6f75;
}

html {
    scroll-behavior: smooth;
}

.links-page {
    min-height: 100vh;
    margin: 0;
    color: var(--links-text);
    background:
        radial-gradient(circle at 50% -10%, rgba(255, 106, 0, 0.15), transparent 30rem),
        linear-gradient(180deg, #030303, var(--links-bg) 42rem);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

.links-page::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.links-page *,
.links-page *::before,
.links-page *::after {
    box-sizing: border-box;
}

.links-page a {
    letter-spacing: normal;
}

.links-header {
    width: min(1120px, calc(100% - 48px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--links-border);
    background: transparent;
    box-shadow: none;
}

.links-header::after,
.links-footer::before {
    display: none;
}

.links-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--links-text);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em !important;
    text-decoration: none;
}

.links-brand:hover,
.links-brand:focus-visible {
    text-decoration: none;
}

.links-brand img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
}

.links-brand > span > span {
    color: var(--links-orange);
}

.links-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--links-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em !important;
    transition: color 160ms ease;
}

.links-home svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.links-home:hover,
.links-home:focus-visible {
    color: var(--links-orange);
    text-decoration: none;
}

.links-home:hover svg,
.links-home:focus-visible svg {
    transform: translateX(3px);
}

.links-shell {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.links-profile {
    position: relative;
    min-height: 470px;
    margin-top: 24px;
    padding: clamp(42px, 7vw, 80px);
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(44px, 8vw, 100px);
    overflow: hidden;
    border: 1px solid var(--links-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 24% 50%, rgba(255, 106, 0, 0.14), transparent 18rem),
        linear-gradient(125deg, #171514, #0b0b0c 57%, #080808);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.links-profile::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--links-orange), transparent);
}

.links-profile::after {
    position: absolute;
    right: -110px;
    bottom: -210px;
    width: 400px;
    height: 400px;
    content: "";
    border: 1px solid rgba(255, 106, 0, 0.12);
    border-radius: 50%;
}

.links-profile__photo {
    position: relative;
    z-index: 1;
    width: min(320px, 100%);
    aspect-ratio: 1;
    justify-self: center;
}

.links-profile__photo::before {
    position: absolute;
    inset: 10%;
    content: "";
    border-radius: 50%;
    background: rgba(255, 106, 0, 0.14);
    filter: blur(28px);
}

.links-profile__photo img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 50%;
    filter: contrast(1.05);
}

.links-profile__orbit {
    position: absolute;
    inset: -15px;
    z-index: 1;
    border: 1px solid rgba(255, 106, 0, 0.32);
    border-radius: 50%;
}

.links-profile__orbit::before,
.links-profile__orbit::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    background: var(--links-orange);
    box-shadow: 0 0 18px rgba(255, 106, 0, 0.85);
}

.links-profile__orbit::before {
    top: 11%;
    left: 13%;
    width: 8px;
    height: 8px;
}

.links-profile__orbit::after {
    right: 8%;
    bottom: 21%;
    width: 5px;
    height: 5px;
}

.links-profile__status {
    position: absolute;
    right: 9%;
    bottom: 12%;
    z-index: 3;
    width: 22px;
    height: 22px;
    border: 5px solid #111;
    border-radius: 50%;
    background: var(--links-orange);
    box-shadow: 0 0 16px rgba(255, 106, 0, 0.55);
}

.links-profile__content {
    position: relative;
    z-index: 2;
}

.links-eyebrow {
    margin: 0 0 14px;
    color: var(--links-orange);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.links-profile h1 {
    margin: 0;
    color: var(--links-text);
    font-family: var(--font-sans);
    font-size: clamp(3rem, 7vw, 5.7rem);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.065em;
    text-shadow: none;
}

.links-profile h1 span {
    display: block;
    color: var(--links-orange);
}

.links-profile__intro {
    margin: 24px 0 0;
    color: #d2d2d5;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.links-profile__description {
    max-width: 62ch;
    margin: 16px 0 0;
    color: var(--links-muted);
    font-size: 0.94rem;
    line-height: 1.7;
    text-align: left;
    white-space: normal;
}

.links-profile__tags {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.links-profile__tags span {
    padding: 7px 10px;
    color: #bcbcc0;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--links-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.links-projects {
    margin: 88px 0 72px;
}

.links-section-heading {
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 0.65fr);
    gap: 40px;
    align-items: end;
}

.links-section-heading h2 {
    margin: 0;
    color: var(--links-text);
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    text-shadow: none;
}

.links-section-heading > p {
    margin: 0;
    color: var(--links-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    text-align: left;
}

.links-directory {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.links-directory > h2 {
    position: relative;
    grid-column: 1 / -1;
    margin: 38px 0 0;
    padding: 0 0 14px 28px;
    color: var(--links-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--links-border);
    text-shadow: none;
}

.links-directory > h2:first-child {
    margin-top: 0;
}

.links-directory > h2::before {
    position: absolute;
    top: 3px;
    left: 0;
    width: 12px;
    height: 12px;
    content: "";
    border: 2px solid var(--links-orange);
    border-radius: 3px;
    transform: rotate(45deg);
}

.links-directory > a {
    position: relative;
    width: min(100%, 720px);
    min-width: 0;
    display: block;
    justify-self: center;
    overflow: hidden;
    color: var(--links-text);
    border: 1px solid var(--links-border);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--links-surface-raised), var(--links-surface));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.links-directory > a::after {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    content: "↗";
    color: var(--links-orange);
    font-size: 1rem;
    border: 1px solid rgba(255, 106, 0, 0.42);
    border-radius: 9px;
    background: rgba(8, 8, 8, 0.82);
    backdrop-filter: blur(8px);
}

.links-directory > a:hover,
.links-directory > a:focus-visible {
    border-color: rgba(255, 106, 0, 0.62);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    text-decoration: none;
    transform: translateY(-4px);
}

.links-directory > a > div {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.links-directory > a img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: filter 180ms ease;
}

.links-directory > a:hover img,
.links-directory > a:focus-visible img {
    filter: brightness(1.08);
}

.links-ad {
    margin: 0 auto 72px;
}

.links-ad:empty {
    display: none;
}

.links-ad > p {
    margin: 0;
}

.links-footer {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 60px;
    align-items: end;
    color: var(--links-muted);
    border-top: 1px solid var(--links-border);
    background: transparent;
}

.links-footer__title {
    margin: 0 0 16px;
    color: var(--links-soft);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.links-footer__share > h6 {
    display: none;
}

.links-footer__share > div {
    max-width: 460px !important;
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 9px;
}

.links-footer__share > div > a,
.links-footer__share > div > button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--links-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--links-text);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.links-footer__share > div > a:hover,
.links-footer__share > div > a:focus-visible,
.links-footer__share > div > button:hover,
.links-footer__share > div > button:focus-visible {
    border-color: var(--links-orange);
    background: rgba(255, 106, 0, 0.08);
    text-decoration: none;
    transform: translateY(-2px);
}

.links-footer__share img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.links-share-status {
    min-height: 1.5em;
    margin-top: 10px;
    display: block;
    color: var(--links-orange);
    font-size: 0.72rem;
}

.links-footer__copyright {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.links-brand--small {
    gap: 8px;
    font-size: 1rem;
}

.links-brand--small img {
    width: 30px;
    height: 30px;
}

.links-footer__copyright > p {
    padding: 0;
    margin: 0;
    color: var(--links-soft);
    font-size: 0.72rem;
    line-height: 1.55;
    text-align: right;
}

.links-footer__copyright a:not(.links-brand) {
    color: var(--links-muted);
}

.links-footer > .row {
    grid-column: 1 / -1;
}

@media (max-width: 820px) {
    .links-profile {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 42px;
        padding: 52px 40px;
    }

    .links-section-heading {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 680px) {
    .links-header,
    .links-shell,
    .links-footer {
        width: min(100% - 28px, 1120px);
    }

    .links-header {
        min-height: 74px;
    }

    .links-home {
        width: 40px;
        height: 40px;
        justify-content: center;
        font-size: 0;
        border: 1px solid var(--links-border);
        border-radius: 9px;
    }

    .links-profile {
        min-height: auto;
        padding: 42px 25px;
        grid-template-columns: 1fr;
        gap: 36px;
        border-radius: 16px;
        text-align: center;
    }

    .links-profile__photo {
        width: min(230px, 70vw);
    }

    .links-profile__content {
        text-align: left;
    }

    .links-profile h1 span {
        display: inline;
    }

    .links-profile__tags {
        gap: 6px;
    }

    .links-projects {
        margin: 62px 0 52px;
    }

    .links-directory {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .links-directory > h2 {
        margin-top: 30px;
    }

    .links-footer {
        padding: 36px 0 44px;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .links-footer__copyright {
        justify-items: start;
    }

    .links-footer__copyright > p {
        text-align: left;
    }
}

@media (max-width: 390px) {
    .links-brand {
        gap: 8px;
        font-size: 1.15rem;
    }

    .links-brand img {
        width: 35px;
        height: 35px;
    }

    .links-profile h1 {
        font-size: 2.8rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .links-page *,
    .links-page *::before,
    .links-page *::after {
        transition-duration: 0.01ms !important;
    }
}
