/* ============================================================
   FONTS — LineSeed Sans W (woff2, all 5 weights)
   ============================================================ */
@font-face {
    font-family: 'LineSeed';
    src: url('fonts/LINESeedSans_W_Th.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LineSeed';
    src: url('fonts/LINESeedSans_W_Rg.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LineSeed';
    src: url('fonts/LINESeedSans_W_Bd.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LineSeed';
    src: url('fonts/LINESeedSans_W_XBd.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LineSeed';
    src: url('fonts/LINESeedSans_W_He.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:           #060202;
    --surface:      rgba(255, 255, 255, 0.038);
    --surface-hov:  rgba(255, 255, 255, 0.07);
    --border:       rgba(255, 255, 255, 0.065);
    --border-hov:   rgba(255, 255, 255, 0.14);
    --text-primary: #e8e5df;
    --text-muted:   rgba(232, 229, 223, 0.38);
    --accent:       #df1b1b;
    --accent-glow:  rgba(223, 27, 27, 0.18);
    --gold:         #df1b1b;
    --gold-dim:     rgba(223, 27, 27, 0.10);
    --gold-border:  rgba(223, 27, 27, 0.20);
    --radius:       14px;
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --dur:          0.24s;
}

::selection {
    background-color: var(--accent);
    color: #fff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'LineSeed', sans-serif;
    font-weight: 400;
    background-color: var(--bg);
    color: var(--text-primary);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 16px 68px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::-webkit-scrollbar { display: none; }

/* ============================================================
   AMBIENT BACKGROUND BLOBS
   ============================================================ */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    animation: blob-drift 22s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(223, 27, 27, 0.15) 0%, transparent 70%);
    top: -180px;
    left: -200px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(180, 15, 15, 0.12) 0%, transparent 70%);
    bottom: -140px;
    right: -160px;
    animation-delay: -8s;
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(250, 40, 40, 0.08) 0%, transparent 70%);
    top: 40%;
    left: 58%;
    animation-delay: -14s;
}

@keyframes blob-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(24px, -24px) scale(1.04); }
    66%       { transform: translate(-16px, 16px) scale(0.97); }
}

/* ============================================================
   CARD
   ============================================================ */
.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;

    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   PROFILE
   ============================================================ */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    width: 100%;
}

/* Avatar — clean, no ring */
.avatar-wrap {
    width: 92px;
    height: 92px;
    margin-bottom: 6px;
    border-radius: 50%;
    /* Refined: single thin border + soft glow */
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.10),
        0 0 20px rgba(223, 27, 27, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.40);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    /* Image protection */
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Name — Extra Bold for strong presence */
.name {
    font-size: clamp(1.3rem, 5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}

/* Tagline — Thin for elegant contrast */
.tagline {
    font-size: 0.72rem;
    font-weight: 100;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
}

/* ============================================================
   SCARABIX FOUNDER CARD
   ============================================================ */
.scarabix-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 24px 18px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    gap: 12px;
    position: relative;
    overflow: hidden;

    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity var(--dur) var(--ease),
        transform var(--dur) var(--ease),
        background var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

/* Thin gold shimmer line at top */
.scarabix-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.scarabix-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.scarabix-card:hover {
    background: rgba(223, 27, 27, 0.16);
    border-color: rgba(223, 27, 27, 0.35);
    box-shadow: 0 8px 30px rgba(223, 27, 27, 0.10);
    transform: translateY(-2px);
}

.scarabix-card:active { transform: scale(0.990); }

.scarabix-role {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.75;
}

.scarabix-logo {
    height: 26px;
    max-width: 190px;
    width: auto;
    object-fit: contain;
    display: block;
    opacity: 0.88;
    filter: brightness(1.05);
    transition: opacity var(--dur) var(--ease);
    -webkit-user-drag: none;
    pointer-events: none;
    user-select: none;
}

.scarabix-card:hover .scarabix-logo { opacity: 1; }

.scarabix-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scarabix-sub {
    font-size: 0.62rem;
    font-weight: 100;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scarabix-dot {
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.35;
    flex-shrink: 0;
}

.scarabix-arrow {
    font-size: 0.52rem;
    color: var(--gold);
    opacity: 0.45;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.scarabix-card:hover .scarabix-arrow {
    opacity: 0.9;
    transform: translate(2px, -2px);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 35%, var(--border) 65%, transparent);
    margin-bottom: 18px;
    opacity: 0;
    transition: opacity 0.5s var(--ease) 0.4s;
}

.divider.visible { opacity: 1; }

/* ============================================================
   LINK BUTTONS
   ============================================================ */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 38px;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    user-select: none;

    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity var(--dur) var(--ease),
        transform var(--dur) var(--ease),
        background var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease);
}

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

.link-btn:hover {
    background: var(--surface-hov);
    border-color: var(--border-hov);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.link-btn:active {
    transform: scale(0.990);
    box-shadow: none;
}

/* Icon */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.055);
    flex-shrink: 0;
    font-size: 0.88rem;
    color: var(--text-primary);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* Monochromatic hover state */
.link-btn:hover .btn-icon { background: var(--accent); border-color: transparent; color: #fff; }

/* Label */
.btn-text {
    flex: 1;
    font-size: 0.845rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Arrow */
.btn-arrow {
    font-size: 0.58rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.link-btn:hover .btn-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    opacity: 0;
    transition: opacity 0.5s var(--ease) 0.9s;
}

.footer.visible { opacity: 1; }

.footer-brand { display: flex; align-items: center; }

.footer-scarabix-logo {
    height: 14px;
    width: auto;
    object-fit: contain;
    opacity: 0.22;
    filter: grayscale(1) brightness(2);
    transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
    -webkit-user-drag: none;
    pointer-events: none;
}

.footer-scarabix-logo:hover {
    opacity: 0.65;
    filter: grayscale(0) brightness(1.1);
}

.footer-copy {
    font-size: 0.62rem;
    font-weight: 100;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    body { padding: 36px 14px 52px; }
    .card { max-width: 100%; }
    .avatar-wrap { width: 80px; height: 80px; }
}