/* ============================================================
   VOID© — /links (Atelier link-in-bio)
   Loaded after void-guide.css, which supplies the shared palette
   tokens, focus-visible ring and reduced-motion kill-switch.
   This file deliberately overrides void-guide's backdrop layers:
   its 3px tiled grain reads as pixelation on a page this sparse,
   and a blurred animated layer is the single most expensive thing
   a phone can composite. Everything here is gradient + transform
   only — no filter animation, no blur on moving elements.
   ============================================================ */

.links-page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background: #030302;
}

/* Kill the shared page's tiled grain + fixed wash — replaced below. */
.links-page::before,
.links-page::after {
    content: none;
}

/* ---- Backdrop ----
   Two still layers (deep base + vignette) and one slow-drifting warm
   pool. The pool is a plain radial-gradient, already soft at the edges,
   so it needs no blur filter to look atmospheric — it just translates. */
.links-atmos {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(212, 175, 55, 0.055), transparent 62%),
        radial-gradient(90% 60% at 50% 110%, rgba(212, 175, 55, 0.03), transparent 65%),
        linear-gradient(180deg, #060605 0%, #030302 45%, #050403 100%);
}

.links-atmos::before {
    content: '';
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background:
        radial-gradient(38% 24% at 30% 32%, rgba(212, 175, 55, 0.055), transparent 70%),
        radial-gradient(42% 26% at 72% 64%, rgba(212, 175, 55, 0.032), transparent 72%);
    will-change: transform;
    animation: linksDrift 34s ease-in-out infinite alternate;
}

@keyframes linksDrift {
    from { transform: translate3d(-1.5%, -1%, 0); }
    to { transform: translate3d(2%, 1.5%, 0); }
}

/* Cinematic edge falloff — still, costs nothing. */
.links-atmos::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(125% 95% at 50% 45%, transparent 46%, rgba(0, 0, 0, 0.72) 100%);
}

/* void-guide.css blanket-kills all motion whenever the OS reports
   prefers-reduced-motion. That's wrong for VOID: as the note at the top of
   index.html records, Windows very commonly reports that setting as ON, which
   would silently flatten this page's entrance for a large share of visitors.
   The house convention is that cinematic motion shows on every platform and
   "calm" is opt-in via the html.reduce-motion class. Restore motion here,
   then let that class be the real kill switch below. */
@media (prefers-reduced-motion: reduce) {
    html:not(.reduce-motion) .links-atmos::before {
        animation-duration: 34s !important;
        animation-iteration-count: infinite !important;
    }

    html:not(.reduce-motion) .links-emblem-btn,
    html:not(.reduce-motion) .links-emblem-halo,
    html:not(.reduce-motion) .links-atelier,
    html:not(.reduce-motion) .links-divider,
    html:not(.reduce-motion) .link-btn,
    html:not(.reduce-motion) .link-btn::before,
    html:not(.reduce-motion) .link-btn::after,
    html:not(.reduce-motion) .link-btn-icon,
    html:not(.reduce-motion) .link-btn-label,
    html:not(.reduce-motion) .link-btn-arrow,
    html:not(.reduce-motion) .links-footer,
    html:not(.reduce-motion) .links-toast {
        transition-duration: 0.55s !important;
    }
}

/* The real calm switch, matching the rest of the site. */
html.reduce-motion .links-atmos::before {
    animation: none;
}

/* ---- Layout ---- */
.links-wrap {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: clamp(3rem, 9vh, 5rem) clamp(1.1rem, 5vw, 2rem) clamp(2rem, 6vh, 3rem);
}

.links-card {
    position: relative;
    width: 100%;
    max-width: min(520px, 94vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ---- Emblem ---- */
.links-emblem-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.55s var(--ease-lux), transform 0.55s var(--ease-lux);
}

.is-ready .links-emblem-btn {
    opacity: 1;
    transform: translateY(0);
}

/* A soft aura behind the mark — static radial, scales on the shimmer. */
.links-emblem-halo {
    position: absolute;
    inset: -70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0.04) 45%, transparent 70%);
    opacity: 0.65;
    transition: opacity 0.6s var(--ease-lux), transform 0.6s var(--ease-lux);
    pointer-events: none;
}

.links-emblem-btn:hover .links-emblem-halo,
.links-emblem-btn:focus-visible .links-emblem-halo {
    opacity: 1;
    transform: scale(1.12);
}

.links-emblem-img {
    position: relative;
    display: block;
    width: clamp(62px, 15vw, 80px);
    height: auto;
}

.links-emblem-btn.is-lit .links-emblem-img {
    animation: linksEmblemShimmer 1.2s var(--ease-lux);
}

@keyframes linksEmblemShimmer {
    0% { transform: scale(1); opacity: 1; }
    35% { transform: scale(1.04); opacity: 0.86; }
    100% { transform: scale(1); opacity: 1; }
}

.links-emblem-btn:focus-visible {
    outline: 1px solid rgba(212, 175, 55, 0.7);
    outline-offset: 6px;
}

/* ---- ATELIER ----
   The single typographic statement on the page. Wide-tracked
   Cormorant with a brushed-gold gradient fill, which is what
   separates this from a generic centered heading. */
.links-atelier {
    margin: clamp(1.4rem, 4vw, 1.9rem) 0 0;
    max-width: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.44em;
    /* Optical centering: the wide tracking adds a trailing gap. */
    text-indent: 0.44em;
    text-transform: uppercase;
    background: linear-gradient(178deg, #f4e6c0 0%, #d9bd81 38%, #c7a96c 62%, #8f7136 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #d9bd81;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s var(--ease-lux) 0.08s, transform 0.6s var(--ease-lux) 0.08s;
}

.is-ready .links-atelier {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Divider: a hairline with a small centred lozenge ---- */
.links-divider {
    position: relative;
    display: block;
    width: 0;
    height: 1px;
    margin: clamp(1.6rem, 4.5vw, 2.1rem) 0 clamp(2rem, 5vw, 2.6rem);
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5) 22%, rgba(212, 175, 55, 0.5) 78%, transparent);
    transition: width 0.7s var(--ease-lux) 0.2s;
}

.is-ready .links-divider {
    width: min(240px, 66%);
}

.links-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: #d9bd81;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.55);
    transform: translate(-50%, -50%) rotate(45deg);
}

/* ---- Groups ---- */
.links-groups {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(1.8rem, 4.5vw, 2.4rem);
}

/* Section label sitting on its own hairline rule. */
.link-group-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.6);
    white-space: nowrap;
}

.link-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), transparent);
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* ---- The link plaque ---- */
.link-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    padding: 1.05rem 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    background: linear-gradient(168deg, rgba(23, 21, 17, 0.62) 0%, rgba(9, 8, 7, 0.72) 100%);
    box-shadow: inset 0 1px 0 rgba(245, 232, 202, 0.045);
    color: var(--void-white);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateY(8px);
    transition:
        border-color 0.45s var(--ease-lux),
        background 0.45s var(--ease-lux),
        box-shadow 0.45s var(--ease-lux),
        opacity 0.5s var(--ease-lux),
        transform 0.5s var(--ease-lux);
}

.is-ready .link-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Gold hairline that grows down the leading edge on hover — the
   restrained "selected" cue, in place of any glow or scaling. */
.link-btn::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, transparent, #d9bd81, transparent);
    transform: translateY(-50%);
    transition: height 0.5s var(--ease-lux);
    pointer-events: none;
}

.link-btn:hover::after,
.link-btn:focus-visible::after {
    height: 78%;
}

/* Faint diagonal glint, clipped to the plaque. */
.link-btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(100deg, transparent 43%, rgba(245, 232, 202, 0.075) 50%, transparent 57%);
    transform: translateX(-115%);
    transition: transform 0.8s var(--ease-lux);
    pointer-events: none;
}

.link-btn:hover::before,
.link-btn:focus-visible::before {
    transform: translateX(115%);
}

.link-btn:hover,
.link-btn:focus-visible {
    border-color: rgba(212, 175, 55, 0.44);
    background: linear-gradient(168deg, rgba(34, 30, 22, 0.75) 0%, rgba(12, 11, 8, 0.82) 100%);
    box-shadow: inset 0 1px 0 rgba(245, 232, 202, 0.08), 0 6px 26px rgba(0, 0, 0, 0.45);
}

.link-btn:focus-visible {
    outline: 1px solid rgba(212, 175, 55, 0.75);
    outline-offset: 3px;
}

.link-btn:active {
    background: linear-gradient(168deg, rgba(40, 35, 25, 0.8) 0%, rgba(14, 12, 9, 0.86) 100%);
}

.link-btn-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.link-btn-icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: rgba(212, 175, 55, 0.8);
    transition: color 0.45s var(--ease-lux);
}

.link-btn-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.link-btn:hover .link-btn-icon,
.link-btn:focus-visible .link-btn-icon {
    color: #e8c766;
}

.link-btn-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 242, 236, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.45s var(--ease-lux), color 0.45s var(--ease-lux);
}

.link-btn:hover .link-btn-label,
.link-btn:focus-visible .link-btn-label {
    transform: translateX(4px);
    color: #fdf6e6;
}

.link-btn-arrow {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    color: rgba(212, 175, 55, 0.45);
    transition: transform 0.45s var(--ease-lux), color 0.45s var(--ease-lux);
}

.link-btn-arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}

.link-btn:hover .link-btn-arrow,
.link-btn:focus-visible .link-btn-arrow {
    transform: translateX(5px);
    color: #e8c766;
}

/* ---- Copy-to-clipboard courtesy toast (Contact links) ---- */
.links-toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
    z-index: 10;
    transform: translate(-50%, 10px);
    padding: 0.7rem 1.15rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(10, 9, 7, 0.96);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
    color: rgba(245, 242, 236, 0.92);
    font-family: 'Jost', sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-lux), transform 0.35s var(--ease-lux);
}

.links-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---- Footer ---- */
.links-footer {
    position: relative;
    z-index: 1;
    padding: clamp(2.4rem, 6vh, 3.4rem) 1.25rem calc(clamp(1.5rem, 4vh, 2.2rem) + env(safe-area-inset-bottom, 0px));
    text-align: center;
    opacity: 0;
    transition: opacity 0.7s var(--ease-lux) 0.5s;
}

.is-ready .links-footer {
    opacity: 1;
}

.links-footer p {
    max-width: none;
    margin: 0;
    font-family: 'Jost', sans-serif;
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(245, 242, 236, 0.26);
    line-height: 2.1;
}

/* ---- Small screens ---- */
@media (max-width: 420px) {
    .links-wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .link-btn {
        padding: 1rem 1.1rem;
    }

    .link-btn-label {
        font-size: 0.72rem;
        letter-spacing: 0.16em;
    }

    .links-atelier {
        letter-spacing: 0.34em;
        text-indent: 0.34em;
    }
}

/* iOS safe-area: never let the card sit under the notch. */
@supports (padding: max(0px)) {
    .links-wrap {
        padding-left: max(clamp(1.1rem, 5vw, 2rem), env(safe-area-inset-left));
        padding-right: max(clamp(1.1rem, 5vw, 2rem), env(safe-area-inset-right));
    }
}
