*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body
{
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.experience
{
    position: fixed;
    width: 100vw;
    height: 100vh;
}

/* ── Credits footer ── */
.credits
{
    position: absolute;
    bottom: 16px;
    right: 20px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: right;
    pointer-events: none;
    user-select: none;
}

.credits a
{
    color: inherit;
    pointer-events: auto;
}

/* ── Hint badge (top-left) ── */
.hint
{
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 400;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.6s ease;
}

/* ── Info panel overlay ── */
.info-panel
{
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #e2e8f0;
    padding: 48px 32px 32px;
    overflow-y: auto;
    transform: translateX(110%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 100;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
}

.info-panel.is-open
{
    transform: translateX(0);
}

.info-panel__close
{
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 22px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.info-panel__close:hover
{
    background: rgba(255, 255, 255, 0.16);
}

.info-panel__content h2
{
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f8fafc;
}

.info-panel__content h3
{
    font-size: 15px;
    font-weight: 600;
    margin: 20px 0 8px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-panel__content p
{
    font-size: 14px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.info-panel__content ul
{
    list-style: none;
    padding: 0;
}

.info-panel__content ul li
{
    padding: 6px 0;
    font-size: 14px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-panel__content ul li:last-child
{
    border-bottom: none;
}

.info-panel__content .tag
{
    display: inline-block;
    padding: 3px 10px;
    margin: 3px 4px 3px 0;
    font-size: 12px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    border-radius: 4px;
}

/* ── Clickable object cursor ── */
.experience.clickable
{
    cursor: pointer;
}

/* ── Hotspot tooltip ── */
.hotspot-tooltip
{
    position: fixed;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 50;
    white-space: nowrap;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

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

/* ══════════════════════════════════════════
   INTRODUCTION — full-page scrollable overlay
   ══════════════════════════════════════════ */

.intro-overlay
{
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 15, 28, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.intro-overlay.is-open
{
    pointer-events: auto;
    opacity: 1;
}

.intro-overlay__close
{
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 26px;
    cursor: pointer;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.intro-overlay__close:hover { background: rgba(255, 255, 255, 0.18); }

.intro-overlay__scroll
{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 60px 24px 80px;
}

/* ── Hero section ── */
.intro-hero
{
    max-width: 800px;
    margin: 0 auto 60px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.intro-hero__photo
{
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}


.intro-hero__text h1
{
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.15;
    margin-bottom: 12px;
}

.intro-hero__subtitle
{
    font-size: 18px;
    font-weight: 500;
    color: #818cf8;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.intro-hero__location
{
    font-size: 14px;
    color: #64748b;
}

/* ── Body sections ── */
.intro-body
{
    max-width: 800px;
    margin: 0 auto;
}

.intro-section
{
    margin-bottom: 48px;
}

.intro-section h2
{
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.25);
}

.intro-section p
{
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.intro-section strong
{
    color: #e2e8f0;
}

/* ── Cards grid ── */
.intro-cards
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.intro-card
{
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    transition: background 0.2s, border-color 0.2s;
}

.intro-card:hover
{
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(99, 102, 241, 0.3);
}

.intro-card h3
{
    font-size: 16px;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 8px;
}

.intro-card p
{
    font-size: 14px;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 0;
}

@media (max-width: 640px)
{
    .intro-hero
    {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .intro-hero__photo
    {
        width: 150px;
        height: 150px;
    }
    .intro-hero__text h1
    {
        font-size: 28px;
    }
}

/* ══════════════════════════════════════════
   QUALIFICATIONS — scrollable timeline overlay
   ══════════════════════════════════════════ */

.qual-overlay
{
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 15, 28, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.qual-overlay.is-open
{
    pointer-events: auto;
    opacity: 1;
}

.qual-overlay__close
{
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 26px;
    cursor: pointer;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qual-overlay__close:hover { background: rgba(255, 255, 255, 0.18); }

.qual-overlay__scroll
{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 60px 24px 100px;
    max-width: 760px;
    margin: 0 auto;
}

.qual-title
{
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #f8fafc;
    text-align: center;
    margin-bottom: 8px;
}

.qual-subtitle
{
    font-size: 16px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 52px;
}

.qual-section-title
{
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 56px 0 28px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.25);
}

/* ── Timeline ── */
.qual-timeline
{
    position: relative;
    padding-left: 36px;
}

.qual-timeline::before
{
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 1px;
}

.qual-item
{
    position: relative;
    margin-bottom: 32px;
}

.qual-item__dot
{
    position: absolute;
    left: -36px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6366f1;
    border: 2px solid #0a0f1c;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    z-index: 1;
}

.qual-item__dot--work
{
    background: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.qual-item__card
{
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px 28px;
    transition: border-color 0.2s, background 0.2s;
}

.qual-item__card:hover
{
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.qual-item__year
{
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.qual-item__card h3
{
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.qual-item__place
{
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.qual-item__card p
{
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 0;
}

/* ── Skills grid ── */
.qual-skills
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.qual-skill-group
{
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
}

.qual-skill-group h4
{
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 12px;
}

.qual-tags
{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qual-tags span
{
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border-radius: 6px;
}

/* ══════════════════════════════════════════
   MEDIA — New York Times style newspaper
   ══════════════════════════════════════════ */

.news-overlay
{
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #e8e4dc;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.news-overlay.is-open
{
    pointer-events: auto;
    opacity: 1;
}

.news-overlay__close
{
    position: fixed;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #333;
    font-size: 28px;
    cursor: pointer;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.news-overlay__close:hover { color: #000; }

.news-overlay__scroll
{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

/* ── The newspaper ── */
.newspaper
{
    width: 100%;
    max-width: 980px;
    background: #ffffff;
    padding: 40px 56px 72px;
    min-height: 100%;
    box-shadow: 0 0 60px rgba(0,0,0,0.12);
    box-sizing: border-box;
    overflow: hidden;
}

/* ── Masthead ── */
.newspaper__header
{
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.newspaper__rule
{
    height: 2px;
    background: #000;
}

.newspaper__rule:first-child
{
    margin-bottom: 0;
}

.newspaper__rule:last-child
{
    height: 1px;
    margin-top: 0;
}

.newspaper__masthead
{
    font-family: 'UnifrakturCook', 'Georgia', serif;
    font-size: 64px;
    font-weight: 700;
    color: #000;
    letter-spacing: 0.01em;
    line-height: 1;
    margin: 14px 0 6px;
}

.newspaper__edition
{
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-size: 11px;
    color: #666;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.newspaper__dateline
{
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-size: 10px;
    color: #999;
    letter-spacing: 0.12em;
}

/* ── Body: multi-column ── */
.newspaper__body
{
    column-count: 2;
    column-gap: 32px;
    column-rule: 1px solid #ddd;
    overflow: hidden;
}

/* ── Individual article ── */
.news-article
{
    break-inside: avoid;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
    max-width: 100%;
}

.news-article:last-child { border-bottom: none; }

.news-article__headline
{
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 22px;
    font-weight: 900;
    color: #121212;
    line-height: 1.25;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.news-article__byline
{
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.news-article__img
{
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #f4f4f4;
    margin-bottom: 12px;
}

.news-article__body
{
    font-family: 'Libre Baskerville', 'Georgia', serif;
    font-size: 13px;
    line-height: 1.7;
    color: #333;
    text-align: justify;
    hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.news-article__body p { margin-bottom: 8px; }

.news-article__link
{
    display: inline-block;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #326891;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.news-article__link:hover { color: #1a4a6e; text-decoration: underline; }

/* Featured article — spans full width above columns */
.news-article--featured
{
    column-span: all;
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 2px solid #000;
}

.news-article--featured .news-article__headline
{
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.18;
    max-width: 700px;
    margin: 0 auto 8px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.news-article--featured .news-article__byline
{
    border-bottom: none;
    padding-bottom: 0;
}

.news-article--featured .news-article__img
{
    height: 260px;
    max-width: 700px;
    margin: 0 auto 16px;
}

.news-article--featured .news-article__body
{
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 700px)
{
    .newspaper { padding: 24px 20px 48px; }
    .newspaper__masthead { font-size: 40px; }
    .newspaper__body { column-count: 1; }
    .news-article--featured { column-span: none; }
    .news-article--featured .news-article__headline { font-size: 28px; }
}

/* ══════════════════════════════════════════
   JUDGING — interactive scroll with stats + certs
   ══════════════════════════════════════════ */

.judge-overlay
{
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 15, 28, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.judge-overlay.is-open
{
    pointer-events: auto;
    opacity: 1;
}

.judge-overlay__close
{
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 26px;
    cursor: pointer;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.judge-overlay__close:hover { background: rgba(255, 255, 255, 0.18); }

.judge-overlay__scroll
{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 60px 24px 100px;
    max-width: 860px;
    margin: 0 auto;
}

.judge-title
{
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #f8fafc;
    text-align: center;
    margin-bottom: 8px;
}

.judge-subtitle
{
    font-size: 16px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 40px;
}

/* ── Stats counter bar ── */
.judge-stats
{
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 52px;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.judge-stat
{
    text-align: center;
}

.judge-stat__num
{
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 42px;
    font-weight: 700;
    color: #818cf8;
    line-height: 1;
    margin-bottom: 6px;
}

.judge-stat__label
{
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Judging event cards ── */
.judge-card
{
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.judge-card:hover
{
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateX(4px);
}

.judge-card__header
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.judge-card__header h3
{
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.judge-card__badge
{
    flex-shrink: 0;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

.judge-card__badge--judge
{
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.judge-card__badge--panel
{
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
}

.judge-card__badge--review
{
    background: rgba(250, 204, 21, 0.12);
    color: #fde047;
}

.judge-card__meta
{
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.judge-card__desc
{
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.judge-card__actions
{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.judge-card__btn
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.judge-card__btn:hover
{
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: #e2e8f0;
}

/* ── Certificate viewer ── */
.judge-cert-view
{
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 28, 0.98);
    display: none;
    flex-direction: column;
    z-index: 205;
}

.judge-cert-view.is-open
{
    display: flex;
}

.judge-cert-view__back
{
    align-self: flex-start;
    margin: 16px 0 0 20px;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.judge-cert-view__back:hover { background: rgba(255, 255, 255, 0.16); }

.judge-cert-view iframe
{
    flex: 1;
    width: 100%;
    border: none;
    margin-top: 12px;
    background: #1e293b;
}

/* ══════════════════════════════════════════
   TESTIMONIALS — circle thumbnails + PDF viewer
   ══════════════════════════════════════════ */

.test-overlay
{
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 15, 28, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.test-overlay.is-open
{
    pointer-events: auto;
    opacity: 1;
}

.test-overlay__close
{
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 26px;
    cursor: pointer;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.test-overlay__close:hover { background: rgba(255, 255, 255, 0.18); }

.test-overlay__scroll
{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 60px 24px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.test-title
{
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #f8fafc;
    text-align: center;
    margin-bottom: 8px;
}

.test-subtitle
{
    font-size: 16px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 52px;
}

.test-grid
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
}

.test-card
{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.25s;
}

.test-card:hover
{
    transform: translateY(-6px);
}

.test-card__photo
{
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.06);
    border: 3px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    transition: border-color 0.25s, box-shadow 0.25s;
    margin-bottom: 16px;
}

.test-card:hover .test-card__photo
{
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}

.test-card__name
{
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.test-card__role
{
    font-size: 12px;
    color: #818cf8;
    font-weight: 500;
    margin-bottom: 10px;
}

.test-card__quote
{
    font-size: 13px;
    line-height: 1.55;
    color: #94a3b8;
    font-style: italic;
}

/* ── PDF viewer ── */
.test-pdf
{
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 28, 0.98);
    display: none;
    flex-direction: column;
    z-index: 205;
}

.test-pdf.is-open
{
    display: flex;
}

.test-pdf__back
{
    align-self: flex-start;
    margin: 16px 0 0 20px;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.test-pdf__back:hover { background: rgba(255, 255, 255, 0.16); }

.test-pdf iframe
{
    flex: 1;
    width: 100%;
    border: none;
    margin-top: 12px;
    background: #1e293b;
    border-radius: 8px 8px 0 0;
}

/* ══════════════════════════════════════════
   MEMBERSHIPS — photo gallery overlay
   ══════════════════════════════════════════ */

.memberships-overlay
{
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 15, 28, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.memberships-overlay.is-open
{
    pointer-events: auto;
    opacity: 1;
}

.memberships-overlay__close
{
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 26px;
    cursor: pointer;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.memberships-overlay__close:hover { background: rgba(255, 255, 255, 0.18); }

.memberships-overlay__scroll
{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 60px 24px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.memberships-title
{
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #f8fafc;
    text-align: center;
    margin-bottom: 8px;
}

.memberships-subtitle
{
    font-size: 16px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 48px;
}

.memberships-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.membership-card
{
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.membership-card:hover
{
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.membership-card__img
{
    width: 100%;
    height: 160px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.06);
}

.membership-card__body
{
    padding: 20px;
}

.membership-card__body h3
{
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.membership-card__body .membership-role
{
    font-size: 13px;
    color: #818cf8;
    font-weight: 500;
    margin-bottom: 10px;
}

.membership-card__body p
{
    font-size: 14px;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0;
}

@media (max-width: 640px)
{
    .memberships-grid
    {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
   BOOK OVERLAY — page-turn reading experience
   ══════════════════════════════════════════ */

.book-overlay
{
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.book-overlay.is-open
{
    pointer-events: auto;
    opacity: 1;
}

.book-overlay__backdrop
{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ── The open book ── */
.book
{
    position: relative;
    width: 94vw;
    max-width: 1400px;
    height: 92vh;
    max-height: 92vh;
    display: flex;
    z-index: 1;
    perspective: 2500px;
}

.book__half
{
    flex: 1;
    position: relative;
    overflow: hidden;
}

.book__half--left
{
    border-radius: 6px 0 0 6px;
}

.book__half--right
{
    border-radius: 0 6px 6px 0;
}

/* ── Static paper (the pages that stay flat) ── */
.book__paper
{
    position: absolute;
    inset: 0;
    background: #fdf6e3;
    padding: 44px 40px 56px;
    overflow-y: auto;
}

.book__half--left .book__paper
{
    background: linear-gradient(to right, #ede5cc, #fdf6e3 35%);
    box-shadow: inset -8px 0 20px rgba(0,0,0,0.04);
}

.book__half--right .book__paper
{
    background: linear-gradient(to left, #ede5cc, #fdf6e3 35%);
    box-shadow: inset 8px 0 20px rgba(0,0,0,0.04);
}

.book__paper-content
{
    color: #2c1810;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.8;
}

.book__paper-content h2
{
    font-size: 22px;
    font-weight: 700;
    color: #1a0f08;
    margin-bottom: 6px;
    border-bottom: 2px solid #c8a96e;
    padding-bottom: 8px;
}

.book__paper-content h3
{
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8b7355;
    margin: 18px 0 6px;
}

.book__paper-content p { margin-bottom: 10px; }

.book__paper-content a
{
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #6366f1;
}

.book__paper-content a:hover { color: #4f46e5; }

.book__paper-content .article-tag
{
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 3px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-radius: 3px;
}

.book__paper-num
{
    position: absolute;
    bottom: 18px;
    font-family: 'Georgia', serif;
    font-size: 12px;
    color: #b0a08a;
    user-select: none;
}

.book__paper-num--left  { left: 40px; }
.book__paper-num--right { right: 40px; }

/* ── Spine ── */
.book__spine
{
    position: absolute;
    left: 50%;
    top: -4px;
    bottom: -4px;
    width: 8px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #6b4420, #3d2510, #6b4420);
    border-radius: 4px;
    z-index: 20;
    box-shadow: 0 0 14px rgba(0,0,0,0.6);
}

/* ── Shadow that follows the turning page ── */
.book__shadow
{
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

/* ══════════════════════════
   THE FLIPPER — the page that physically turns
   ══════════════════════════ */
.book__flipper
{
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    transform-style: preserve-3d;
    z-index: 15;
    pointer-events: none;
    display: none;
}

.book__flipper-face
{
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 44px 40px 56px;
    overflow: hidden;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.8;
    color: #2c1810;
}

.book__flipper-front
{
    background: linear-gradient(to left, #ede5cc, #fdf6e3 30%);
    border-radius: 0 6px 6px 0;
    box-shadow: -4px 0 24px rgba(0,0,0,0.18);
}

.book__flipper-back
{
    background: linear-gradient(to right, #ede5cc, #fdf6e3 30%);
    border-radius: 6px 0 0 6px;
    transform: rotateY(180deg);
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
}

/* Forward turn: page goes from right side, hinged at spine (left edge) */
.book__flipper.go-forward
{
    right: 0;
    left: auto;
    transform-origin: left center;
    display: block;
    animation: pageTurnForward 1.2s ease-in-out forwards;
}

/* Backward turn: page goes from left side, hinged at spine (right edge) */
.book__flipper.go-backward
{
    left: 0;
    right: auto;
    transform-origin: right center;
    display: block;
    animation: pageTurnBackward 1.2s ease-in-out forwards;
}

@keyframes pageTurnForward
{
    0%   { transform: rotateY(0deg);    }
    35%  { transform: rotateY(-85deg);  }
    65%  { transform: rotateY(-95deg);  }
    100% { transform: rotateY(-180deg); }
}

@keyframes pageTurnBackward
{
    0%   { transform: rotateY(-180deg); }
    35%  { transform: rotateY(-95deg);  }
    65%  { transform: rotateY(-85deg);  }
    100% { transform: rotateY(0deg);    }
}

/* ── Book theme: Publications (darker, academic look) ── */
.book--publications .book__half--left .book__paper
{
    background: linear-gradient(to right, #d6cfc0, #eae4d5 35%);
}

.book--publications .book__half--right .book__paper
{
    background: linear-gradient(to left, #d6cfc0, #eae4d5 35%);
}

.book--publications .book__spine
{
    background: linear-gradient(180deg, #2d3a4a, #1a2332, #2d3a4a);
}

.book--publications .book__flipper-front
{
    background: linear-gradient(to left, #d6cfc0, #eae4d5 30%);
}

.book--publications .book__flipper-back
{
    background: linear-gradient(to right, #d6cfc0, #eae4d5 30%);
}

/* ── Navigation arrows ── */
.book__nav
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book__nav:hover
{
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.1);
}

.book__nav:disabled
{
    opacity: 0.15;
    cursor: default;
    pointer-events: none;
}

.book__nav--prev { left: max(12px, calc(50% - 520px)); }
.book__nav--next { right: max(12px, calc(50% - 520px)); }

/* ── Close button ── */
.book__close
{
    position: absolute;
    top: 16px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.book__close:hover { background: rgba(255, 255, 255, 0.25); }

/* ── Page indicator ── */
.book__page-indicator
{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Georgia', serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
    user-select: none;
}

/*# sourceMappingURL=main.css.map*/