/* =====================================================================
   about-plus.css — the About / socials page.
   Loads AFTER styles.css, which supplies nav + footer.
   Same palette, fonts and flat #0c0b0e ground as Work and Home, so the
   three pages read as one site. Effects stay cheap: no blend layers,
   no infinite full-viewport animations.
   ===================================================================== */

.about-page {
    --ab-c1: 209, 63, 63;      /* brand crimson */
    --ab-c2: 255, 138, 91;     /* ember         */
    --ab-c3: 166, 59, 214;     /* violet accent */
    --ab-line: rgba(255, 255, 255, 0.08);
    --ab-dim: rgba(255, 255, 255, 0.46);
    --ab-ease: cubic-bezier(0.22, 1, 0.36, 1);
    background: #0c0b0e;
}

/* styles.css paints a lighter ground plus two fixed washes on the base
   body; Home and Work both switch them off to match. Same here. */
body.about-page {
    background-color: #0c0b0e;
}

body.about-page::before,
body.about-page::after {
    content: none;
}

.about-page main {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.4rem 6rem;
}

/* ---------------------------------------------------------------------
   1. Profile card — banner + avatar + identity
   ------------------------------------------------------------------ */
.ab-profile {
    position: relative;
    margin-top: 7.5rem;
    border: 1px solid var(--ab-line);
    border-radius: 1.4rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

/* The banner is drawn in CSS, so the page ships with no image weight.
   To use a photo instead, drop one in and point the element at it:
       <div class="ab-banner" style="--ab-banner-img: url(/assets/banner.jpg)">
   The gradients stay underneath as the fallback. */
.ab-banner {
    position: relative;
    height: clamp(150px, 26vw, 230px);
    background:
        radial-gradient(ellipse 60% 120% at 12% 120%, rgba(var(--ab-c1), 0.55), transparent 60%),
        radial-gradient(ellipse 55% 130% at 52% -20%, rgba(var(--ab-c2), 0.34), transparent 62%),
        radial-gradient(ellipse 70% 140% at 92% 110%, rgba(var(--ab-c3), 0.34), transparent 60%),
        linear-gradient(115deg, #16131b 0%, #1d1520 45%, #120f16 100%);
}

.ab-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--ab-banner-img, none);
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}

/* Fine diagonal rule texture, plus a dark foot so the avatar and name
   always sit on enough contrast whatever is behind them. */
.ab-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 9px),
        linear-gradient(to bottom, transparent 45%, rgba(12, 11, 14, 0.85) 100%);
    pointer-events: none;
}

.ab-id {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1.35rem;
    padding: 0 1.6rem 1.7rem;
    margin-top: -58px;
}

.ab-avatar {
    position: relative;
    grid-row: span 2;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(140deg, rgb(var(--ab-c1)), rgb(var(--ab-c2)) 55%, rgb(var(--ab-c3)));
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.ab-avatar-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #17141b;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.9);
}

/* The headshot covers the initials only once it has actually loaded —
   about.js adds .is-loaded, so a failed fetch leaves "LK" standing. */
.ab-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.45s var(--ab-ease);
}

.ab-avatar-img.is-loaded { opacity: 1; }

/* Nitro avatar decoration. Discord draws these on a square canvas roughly
   a fifth wider than the picture, so the ring hangs outside the circle —
   hence the negative inset. It sits above the picture and below nothing:
   no pointer events, no part in the layout. */
.ab-avatar-deco {
    position: absolute;
    inset: -12.5%;
    width: 125%;
    height: 125%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s var(--ab-ease);
}

.ab-avatar-deco.is-loaded { opacity: 1; }

/* With a decoration on, the decoration IS the ring — the gradient border
   underneath would only fight it, so it steps aside. */
.ab-avatar.has-deco {
    background: none;
    box-shadow: none;
    padding: 0;
}

.ab-avatar.has-deco .ab-avatar-inner {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

/* The decoration's ring reaches where the dot used to sit. */
.ab-avatar.has-deco .ab-presence {
    right: 2px;
    bottom: 4px;
}

/* ---------------------------------------------------------------------
   Profile effect — the animated overlay across the card head, the way
   Discord layers one over a profile. Purely decorative: it never takes
   a click, and it never grows the card.
   ------------------------------------------------------------------ */
.ab-effect {
    position: absolute;
    inset: 0 0 auto;
    height: 260px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.ab-effect > img,
.ab-effect > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.6s var(--ab-ease);
    /* Discord's effects are drawn on black; screen blending drops the
       black out so only the light on top survives. */
    mix-blend-mode: screen;
}

.ab-effect > img.is-loaded,
.ab-effect > video.is-loaded { opacity: var(--ab-effect-opacity, 1); }

/* An effect with real transparency doesn't need the blend trick —
   add data-ab-effect-blend="none" on the wrapper to turn it off. */
.ab-effect[data-ab-effect-blend="none"] > img,
.ab-effect[data-ab-effect-blend="none"] > video { mix-blend-mode: normal; }

/* The name and links have to stay above the overlay and stay clickable. */
.ab-id { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
    .ab-effect { display: none; }
}

/* The dot. Green by default — that is what it was before any of this,
   and what it stays if Lanyard never answers. Once a real status lands,
   about.js swaps the class and the colour follows. */
.ab-presence {
    position: absolute;
    right: 6px;
    bottom: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #34d399;
    border: 4px solid #0e0d11;
    transition: background 0.3s var(--ab-ease);
}

.ab-presence.is-online { background: #23a55a; }
.ab-presence.is-idle { background: #f0b232; }
.ab-presence.is-dnd { background: #f23f43; }
.ab-presence.is-offline { background: #80848e; }

/* Idle and dnd carry a shape as well as a colour, so the status reads
   without relying on telling red from green. */
.ab-presence.is-idle::after,
.ab-presence.is-dnd::after {
    content: "";
    position: absolute;
    background: #0e0d11;
}

.ab-presence.is-idle::after {
    inset: -18% 22% 30% -18%;
    border-radius: 50%;
}

.ab-presence.is-dnd::after {
    left: 18%;
    right: 18%;
    top: 41%;
    height: 18%;
    border-radius: 2px;
}

/* Offline is a ring rather than a disc, the way Discord draws it. */
.ab-presence.is-offline::after {
    content: "";
    position: absolute;
    inset: 27%;
    border-radius: 50%;
    background: #0e0d11;
}

/* .ab-pill sets a display, and an author display beats the browser's
   [hidden] rule — without this a hidden pill still takes up space as an
   empty capsule. */
.ab-pill[hidden] { display: none; }

/* The activity pill leans on the Discord blurple so it reads as coming
   from there, and Spotify green when that is what is playing. */
.ab-pill--activity {
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(88, 101, 242, 0.4);
    background: rgba(88, 101, 242, 0.1);
    max-width: 26rem;
    overflow: hidden;
}

.ab-pill--activity b {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ab-pill--activity.is-spotify {
    border-color: rgba(30, 215, 96, 0.4);
    background: rgba(30, 215, 96, 0.1);
}

.ab-activity-icon {
    flex-shrink: 0;
    display: inline-flex;
    font-size: 0.85em;
    color: #a8b1ff;
}

.ab-pill--activity.is-spotify .ab-activity-icon { color: #1ed760; }

.ab-id-main {
    align-self: end;
    padding-bottom: 0.35rem;
    min-width: 0;
}

.ab-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 2.9rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.ab-handle {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: var(--ab-dim);
}

.ab-id-body {
    grid-column: 2;
    min-width: 0;
}

.ab-bio {
    max-width: 40rem;
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ab-dim);
}

.ab-bio strong {
    color: #fff;
    font-weight: 600;
}

.ab-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.ab-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.44rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--ab-line);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.25s var(--ab-ease), border-color 0.25s var(--ab-ease), background 0.25s var(--ab-ease);
}

.ab-pill b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; }
.ab-pill i { font-size: 0.78em; opacity: 0.7; }

.ab-pill--link:hover {
    color: #fff;
    border-color: rgba(var(--ab-c1), 0.5);
    background: rgba(var(--ab-c1), 0.12);
}

.ab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .ab-profile { margin-top: 6.5rem; }

    .ab-id {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        padding: 0 1.15rem 1.5rem;
        margin-top: -48px;
    }

    .ab-avatar { width: 104px; height: 104px; grid-row: auto; }
    .ab-pill--activity { max-width: 100%; }
    .ab-effect { height: 210px; }
    .ab-avatar-inner { font-size: 2rem; }
    .ab-id-body { grid-column: 1; }
    .ab-id-main { padding-bottom: 0; }
}

/* ---------------------------------------------------------------------
   2. Section heads
   ------------------------------------------------------------------ */
.ab-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 4.5rem 0 1.4rem;
}

.ab-head-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.ab-head-note {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.34);
}

/* ---------------------------------------------------------------------
   3. Social cards
   Each card sets --brand; everything tinted reads from it, so adding a
   platform is one more card with one more colour.
   ------------------------------------------------------------------ */
.ab-socials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 0.9rem;
}

.ab-social {
    --brand: 209, 63, 63;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--ab-line);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.022);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s var(--ab-ease), border-color 0.3s var(--ab-ease), background 0.3s var(--ab-ease);
}

/* Brand wash, revealed on hover — one opacity transition on a layer that
   is already composited, rather than repainting the card background. */
.ab-social::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(ellipse 70% 160% at 12% 50%, rgba(var(--brand), 0.22), transparent 70%);
    transition: opacity 0.3s var(--ab-ease);
}

.ab-social:hover,
.ab-social:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(var(--brand), 0.55);
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.ab-social:hover::before,
.ab-social:focus-visible::before { opacity: 1; }

.ab-social-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 0.85rem;
    font-size: 1.25rem;
    color: rgb(var(--brand));
    background: rgba(var(--brand), 0.13);
    border: 1px solid rgba(var(--brand), 0.28);
    transition: background 0.3s var(--ab-ease), transform 0.3s var(--ab-ease);
}

.ab-social:hover .ab-social-icon {
    background: rgba(var(--brand), 0.22);
    transform: scale(1.06);
}

/* Inline brand marks (Roblox) sit next to icon-font glyphs, so they take
   their size from the same font-size and their colour from currentColor. */
.ab-social-icon .brand-svg {
    display: block;
    width: 1.05em;
    height: 1.05em;
}

.ab-social-text {
    min-width: 0;
    flex: 1;
}

.ab-social-name {
    display: block;
    font-weight: 600;
    font-size: 0.98rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.ab-social-handle {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.84rem;
    color: var(--ab-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ab-social-go {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.28);
    transition: color 0.3s var(--ab-ease), transform 0.3s var(--ab-ease);
}

.ab-social:hover .ab-social-go {
    color: rgb(var(--brand));
    transform: translateX(3px);
}

/* Discord is a copy button, not a link: there is no profile page to
   open, only a username to take. */
.ab-social--copy {
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.ab-social--copy:hover .ab-social-go { transform: none; }

.ab-copied {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-auto-flow: column;
    gap: 0.5rem;
    place-content: center;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    background: rgba(88, 101, 242, 0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ab-ease);
}

.ab-social--copy.is-copied .ab-copied { opacity: 1; }

/* ---------------------------------------------------------------------
   4. Facts strip
   ------------------------------------------------------------------ */
.ab-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    margin-top: 1.4rem;
    background: var(--ab-line);
    border: 1px solid var(--ab-line);
    border-radius: 1.1rem;
    overflow: hidden;
}

.ab-fact {
    padding: 1.5rem 1.4rem;
    background: #0c0b0e;
}

.ab-fact-k {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
}

.ab-fact-v {
    margin: 0.55rem 0 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.ab-fact-p {
    margin: 0.3rem 0 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--ab-dim);
}

/* ---------------------------------------------------------------------
   5. Closing call to action
   ------------------------------------------------------------------ */
.ab-cta {
    margin-top: 4.5rem;
    padding: 3rem 1.4rem;
    text-align: center;
    border: 1px solid var(--ab-line);
    border-radius: 1.4rem;
    background:
        radial-gradient(ellipse 70% 120% at 50% 0%, rgba(var(--ab-c1), 0.14), transparent 65%),
        rgba(255, 255, 255, 0.02);
}

.ab-cta-h {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.ab-cta-p {
    margin: 0.7rem auto 0;
    max-width: 30rem;
    color: var(--ab-dim);
}

.ab-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.6rem;
}

.ab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    border: 1px solid var(--ab-line);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.25s var(--ab-ease), border-color 0.25s var(--ab-ease), background 0.25s var(--ab-ease);
}

.ab-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.ab-btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, rgb(var(--ab-c1)), rgb(var(--ab-c2)));
    box-shadow: 0 10px 30px rgba(var(--ab-c1), 0.28);
}

.ab-btn--primary:hover {
    border-color: transparent;
    background: linear-gradient(135deg, rgb(var(--ab-c1)), rgb(var(--ab-c2)));
}

/* ---------------------------------------------------------------------
   6. Entrance — armed by the .ab-ready class on <html>, released per
   element by about.js. Disarmed after 3s if the script never boots.
   ------------------------------------------------------------------ */
.ab-ready .ab-rise {
    opacity: 0;
    transform: translateY(18px);
}

.ab-ready .ab-rise.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ab-ease), transform 0.7s var(--ab-ease);
}

@media (prefers-reduced-motion: reduce) {
    .ab-ready .ab-rise,
    .ab-ready .ab-rise.is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ab-social:hover,
    .ab-btn:hover { transform: none; }
}
