:root {
    --bg: #000000;
    --bg-alt: #0b0b0d;
    --bg-soft: #050505;
    --panel: rgba(255, 255, 255, 0.03);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f5;
    --muted: #a1a1aa;
    --accent: #f4f0e6;
    --accent-soft: rgba(244, 240, 230, 0.12);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --header-height: 5.1rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    font-family: 'Inter Tight', system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.08), transparent 22%),
        radial-gradient(circle at 78% 8%, rgba(255, 255, 255, 0.05), transparent 18%),
        linear-gradient(180deg, #000 0%, var(--bg) 58%, var(--bg-soft) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1400px, calc(100% - 3rem));
    margin: 0 auto;
}

main {
    flex: 1;
    padding-top: var(--header-height);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.72) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-left: auto;
}

.brand {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-link {
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-left: 0.2rem;
}

.lang-button {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.lang-button:hover,
.lang-button:focus-visible,
.lang-button.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.flag-icon {
    width: 1.75rem;
    height: 1.15rem;
    border-radius: 0.18rem;
    overflow: hidden;
    display: block;
}

.hero {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 5.5rem);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
}

h1,
p {
    margin: 0;
}

h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.page-hero {
    padding: 4rem 0 1rem;
    min-height: auto;
}

.page-hero-inner {
    min-height: auto;
    justify-content: flex-start;
}

.page-hero-copy {
    align-items: flex-start;
    text-align: left;
}

.api-section {
    padding-top: 1.75rem;
}

.api-layout {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.api-faceit-card {
    width: min(100%, 420px);
    min-height: 8.5rem;
    display: grid;
    gap: 0.65rem;
    align-content: start;
}

.faceit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 1.6rem;
}

.faceit-row-title {
    align-items: flex-start;
}

.faceit-row-recent {
    align-items: center;
    flex-wrap: wrap;
}

.faceit-stats {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.faceit-elo,
.faceit-level {
    color: var(--muted);
}

.faceit-recent {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.bingo-section {
    padding: 0;
    min-height: calc(100vh - 5.5rem);
}

.bingo-frame-wrap {
    width: 100%;
    min-height: calc(100vh - 5.5rem);
}

.bingo-embed {
    width: 100%;
    min-height: calc(100vh - 5.5rem);
    border: 0;
    display: block;
}

.site-footer {
    padding: 1rem 0 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.72) 100%);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-signature {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-link {
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8.5rem;
    padding: 0.9rem 1.3rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--text);
    color: #000;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.1);
    background: transparent;
}

.page-section {
    padding: 6rem 0;
    scroll-margin-top: 6.25rem;
}

.section-inner {
    display: grid;
    gap: 2rem;
}

.section-header {
    display: grid;
    gap: 0.55rem;
    max-width: 42rem;
}

.eyebrow,
.section-label {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
}

.section-header h2,
.social-panel h3 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.section-lead,
.about-panel p{
    min-height: 66px;
}
.skill-card p,
.form-note,
.info-list {
    color: var(--muted);
}

.about-layout,
.contact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
} 

.panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.info-list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.65rem;
}

.experience-panel {
    display: grid;
    gap: 1rem;
}

.experience-accordion {
    display: grid;
    gap: 0.85rem;
}

.experience-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
}

.experience-item[open] {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(244, 240, 230, 0.2);
}

.experience-summary {
    display: grid;
    grid-template-columns: 1fr 16rem 1.2rem;
    align-items: center;
    column-gap: 1rem;
    padding: 1rem 1.05rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.experience-summary::-webkit-details-marker {
    display: none;
}

.experience-summary::after {
    content: '+';
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1;
    flex: none;
}

.experience-item[open] .experience-summary::after {
    content: '−';
}

.experience-summary-title {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.experience-summary-meta {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.experience-content {
    display: grid;
    gap: 1rem;
    padding: 0 1.05rem 1.05rem;
}

.experience-entry {
    display: grid;
    gap: 0.65rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.experience-entry:first-child {
    border-top: 0;
    padding-top: 0;
}

.experience-entry-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.experience-entry-head h3 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.experience-entry-head span {
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.experience-entry p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.skill-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.filter-button {
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font: inherit;
    font-weight: 600;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
    background: var(--accent-soft);
    color: var(--text);
    border-color: rgba(244, 240, 230, 0.25);
    transform: none;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 165px));
    justify-content: start;
    justify-items: stretch;
    align-content: start;
    gap: 0.85rem;
    min-height: 17rem;
}

.skill-card {
    min-height: 5.5rem;
    display: grid;
    gap: 0.25rem;
    align-content: start;
    padding: 0.95rem 1rem;
    width: 165px;
}

.skill-card.is-hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skill-category {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.skill-card h3 {
    margin: 0;
    font-size: 1.08rem;
    letter-spacing: -0.04em;
}

.contact-grid {
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.field-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field span {
    font-size: 0.9rem;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    padding: 0.95rem 1rem;
    font: inherit;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease;
}

.field textarea {
    resize: vertical;
    min-height: 10rem;
    max-height: 18rem;
    overflow: auto;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(161, 161, 170, 0.7);
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(244, 240, 230, 0.28);
    background: rgba(0, 0, 0, 0.4);
}

.contact-submit {
    width: fit-content;
}

.social-panel {
    display: grid;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
    transform: none;
    border-color: rgba(244, 240, 230, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.scene {
    min-height: 170vh;
    position: relative;
}

.scene-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.scene-orb,
.scene-ring {
    position: absolute;
    border-radius: 50%;
}

.scene-orb {
    border: 1px solid rgba(255, 255, 255, 0.08);
    filter: blur(0.2px);
    will-change: transform, opacity;
}

.scene-orb-a {
    width: min(60vw, 420px);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 45%, transparent 70%);
    transform: translate3d(calc(var(--scroll-progress, 0) * 120px - 60px), calc(var(--scroll-progress, 0) * -100px), 0) scale(0.95);
}

.scene-orb-b {
    width: min(34vw, 220px);
    aspect-ratio: 1;
    border-color: rgba(255, 255, 255, 0.12);
    transform: translate3d(calc(var(--scroll-progress, 0) * -90px + 40px), calc(var(--scroll-progress, 0) * 120px - 50px), 0);
}

.scene-ring {
    width: min(48vw, 320px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: rotate(calc(var(--scroll-progress, 0) * 180deg)) scale(calc(1 + var(--scroll-progress, 0) * 0.08));
}

.scene-ring::before,
.scene-ring::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: pulse 4.6s ease-in-out infinite;
}

.scene-ring::after {
    inset: 22px;
    animation-delay: -2.3s;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.name {
    display: inline-block;
}

.name-letter {
    display: inline-block;
    transform: translateY(20px) scale(0.98);
    opacity: 0.2;
    animation: letterDrift 3.8s ease-in-out infinite;
    animation-delay: calc(var(--index) * 90ms);
    will-change: transform, opacity;
}

.name.is-visible .name-letter {
    opacity: 1;
}

@keyframes letterDrift {
    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.92;
    }

    50% {
        transform: translateY(-10px) scale(1.02);
        opacity: 1;
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.35;
    }

    50% {
        transform: scale(1.04);
        opacity: 0.8;
    }
}

@media (max-width: 700px) {
    :root {
        --header-height: 4.5rem;
    }

    .site-header {
        padding: 0.75rem 0 0.8rem;
    }

    .header-inner {
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        gap: 0.45rem;
        padding: 0;
    }

    .header-actions {
        min-width: 0;
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        margin-left: 0;
        gap: 0.3rem;
    }

    .site-nav {
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    overflow: visible;
    }

    .lang-switcher {
        margin-left: 0;
        padding-left: 0.12rem;
    }

    .brand {
        font-size: 0.66rem;
        letter-spacing: 0.08em;
        white-space: nowrap;
    }

    .nav-link {
        padding: 0.26rem 0.36rem;
        font-size: 0.62rem;
        white-space: nowrap;
    }

    .lang-button {
        width: 1.7rem;
        height: 1.7rem;
    }

    .footer-inner {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }

    .button {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: min(100%, 18rem);
    }

    .hero {
        min-height: auto;
        padding: 2rem 0 1rem;
    }

    .page-section {
        padding: 4.25rem 0;
    }

    .about-layout,
    .contact-grid,
    .field-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        justify-content: stretch;
        min-height: 0;
    }

    .skill-card {
        width: auto;
    }

    .bingo-embed {
        min-height: 70vh;
    }

    .api-faceit-card {
        width: 100%;
    }

    h1 {
        font-size: clamp(2.7rem, 17vw, 4.8rem);
    }
}

/* Faceit widget styles */
.faceit-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    padding: 0.95rem 1rem;
    border-radius: var(--radius-lg);
    min-width: 220px;
}
.faceit-title {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}
.faceit-stats {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    flex-wrap: wrap;
}
.faceit-elo,
.faceit-level {
    color: var(--muted);
}
.faceit-elo strong,
.faceit-level strong {
    color: var(--text);
}
.faceit-recent {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    display: inline-block;
    transform: translateY(2px);
}
.dot-win { background: #2ecc71; }
.dot-loss { background: #e74c3c; }
.dot-dot-unknown,
.dot-unknown { background: #7f8c8d; }
.faceit-loading,
.faceit-error { color: var(--muted); font-size: 0.95rem; }