@font-face
{
    font-family: 'Ailerons';
    src: url(assets/fonts/53123d263cb63e4597b2.woff2) format('woff2'),
        url(assets/fonts/1bb85400b660a657542f.woff) format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

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

*::selection
{
    /* color: #aaaaaa; */
    background: #ffffff22;
}

html,
body
{
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
    transition: background 0.6s ease;
}


.experience
{
    position: fixed;
    top: 50%;
    left: 50%;
    width: 70vw;
    height: 70vh;
    transform: translate(calc(-50% + 5vw), -50%);
    transition: transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 1.1s ease;
}

body.panel-open .experience
{
    transform: translate(calc(-50% + 52vw), -50%) scale(3);
    filter: brightness(0.9);
}

body.panel-open-tl .experience
{
    transform: translate(calc(-50% + 52vw), calc(-50% + 12vh)) scale(3);
    filter: brightness(0.9) saturate(1.05);
}

body.panel-open-tr .experience
{
    transform: translate(calc(-50% + 52vw), calc(-50% + 12vh)) scale(3);
    filter: brightness(0.9) saturate(1.05);
}

body.panel-open-bl .experience
{
    transform: translate(calc(-50% + 52vw), calc(-50% + 12vh)) scale(3);
    filter: brightness(0.9) saturate(1.05);
}

body.panel-open-br .experience
{
    transform: translate(calc(-50% + 52vw), calc(-50% + 12vh)) scale(3);
    filter: brightness(0.9) saturate(1.05);
}

body.panel-open
{
    background: #000000;
}

.loader
{
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: #000000;
    z-index: 20;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader-circle
{
    --progress: 0;
    position: relative;
    width: 20vmin;
    height: 20vmin;
    min-width: 120px;
    min-height: 120px;
    border-radius: 50%;
    background:
        conic-gradient(
            from -90deg,
            #b3e5ff calc(var(--progress) * 1%),
            #3d6cff22 0
        );
    filter: drop-shadow(0 0 10px #66cbff88) drop-shadow(0 0 30px #4a9dff66);
    animation: loaderPulse 1.8s ease-in-out infinite;
}

.loader-inner
{
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, #0f1328, #050509 70%);
    box-shadow: inset 0 0 24px #8fd4ff30;
}

.loader-percent
{
    color: #ffffff;
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-size: clamp(20px, 4vmin, 38px);
    letter-spacing: 0.06em;
    text-shadow: 0 0 16px #77ccff88;
}

.credits
{
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #ffffff;
    text-align: right;
    font-family: 'Roboto', sans-serif;
    opacity: 0;
    transition: opacity 0.45s ease;
}

body.is-loaded .credits
{
    opacity: 1;
}

body.is-loaded .loader
{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes loaderPulse
{
    0%,
    100%
    {
        transform: scale(1);
    }
    50%
    {
        transform: scale(1.04);
    }
}

.credits a
{
    color: inherit;
}

.uk-time
{
    position: fixed;
    bottom: 20px;
    left: 22px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    user-select: none;
}

.uk-time-label
{
    font-family: 'Roboto', sans-serif;
    font-size: clamp(10px, 0.85vw, 13px);
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: none;
}

.uk-time-value
{
    font-family: 'Roboto', sans-serif;
    font-size: clamp(14px, 1.25vw, 19px);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
}

body.is-loaded .uk-time
{
    opacity: 1;
}

body.panel-open .uk-time
{
    opacity: 0;
}

.callouts
{
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* hero-left handles its own hide via body.panel-open .hero-left */

.callout
{
    --callout-scale: 1;
    position: absolute;
    width: 300px;
    height: 100px;
    padding: 14px 16px;
    color: #ffffff;
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-size: 30px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.62), inset 0 0 16px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.75);
    animation: calloutJitter 2.2s ease-in-out infinite;
    pointer-events: none;
    cursor: default;
    user-select: none;
    opacity: 0;
    transition: opacity 0.7s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body:not(.is-loaded) .callouts
{
    opacity: 0;
}

.callout.is-visible
{
    opacity: 1;
}

body.is-loaded .callout.is-visible
{
    pointer-events: auto;
    cursor: pointer;
}

body.is-loaded .callout.is-visible:not(.is-expanded):hover,
body.is-loaded .callout.is-visible:not(.is-expanded):focus-visible
{
    --callout-scale: 1.07;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.9), inset 0 0 22px rgba(255, 255, 255, 0.36);
    outline: none;
}

body.is-loaded .callout.is-visible:active
{
    --callout-scale: 1.03;
}

body.panel-open .callout
{
    opacity: 0;
    pointer-events: none;
}

body.panel-open .callout.is-expanded
{
    position: fixed;
    left: 0;
    top: 0;
    width: 70vw;
    height: 100vh;
    border-radius: 0;
    z-index: 12;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    text-align: left;
    font-size: inherit;
    line-height: inherit;
    padding: 10vh 5vw 10vh 6vw;
    background: linear-gradient(to right, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.82) 20%, rgba(0,0,0,0.82) 55%, rgba(0,0,0,0.10) 100%);
    border-color: transparent;
    box-shadow: none;
    cursor: default;
    overflow: hidden;
    animation: calloutExpandToFullscreen 1.05s cubic-bezier(0.2, 0.72, 0.1, 1) forwards;
}


.popup-page a
{
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.popup-page a:hover
{
    color: #ffffff;
    opacity: 1;
}

.callout-tl { top: 14vh; left: 9vw; animation-delay: -0.35s; text-align: center; }
.callout-tr { top: 14vh; right: 9vw; animation-delay: -0.9s; }
.callout-bl { bottom: 14vh; left: 9vw; animation-delay: -1.45s; }
.callout-br { bottom: 14vh; right: 9vw; animation-delay: -1.9s; }

@keyframes calloutJitter
{
    0%,
    100%
    {
        transform: translateY(0) scale(var(--callout-scale));
    }
    25%
    {
        transform: translateY(-2px) scale(var(--callout-scale));
    }
    50%
    {
        transform: translateY(1px) scale(var(--callout-scale));
    }
    75%
    {
        transform: translateY(-1px) scale(var(--callout-scale));
    }
}

@keyframes calloutExpandToFullscreen
{
    0%
    {
        left: var(--expand-left, 0px);
        top: var(--expand-top, 0px);
        width: var(--expand-width, 300px);
        height: var(--expand-height, 100px);
        border-radius: 8px;
        padding: 14px 16px;
    }
    100%
    {
        left: 0;
        top: 0;
        width: 70vw;
        height: 100vh;
        border-radius: 0;
        padding: 10vh 5vw 10vh 6vw;
        background: linear-gradient(to right, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.82) 20%, rgba(0,0,0,0.82) 55%, rgba(0,0,0,0.10) 100%);
    }
}

/* ─── Panel close button ─────────────────────────────────── */

.panel-close
{
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 14;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease 0s, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    letter-spacing: 0.1em;
}

.panel-close-icon
{
    font-size: 13px;
    line-height: 1;
    opacity: 0.8;
}

.panel-close-label
{
    font-size: clamp(11px, 1vw, 14px);
    text-transform: uppercase;
    line-height: 1;
}

.panel-close:hover
{
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

body.panel-open .panel-close
{
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.45s ease 0.85s, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* ─── Popup page content ─────────────────────────────────── */

.popup-page
{
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-size: clamp(15px, 1.35vw, 22px);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: none;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    animation: popupPageFadeIn 0.5s ease 0.65s both;
}


.popup-page h2
{
    margin: 3vh 0 0;
    font-size: clamp(28px, 3vw, 52px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
    line-height: 1.1;
    flex-shrink: 0;
}

/* Non-card pages (Profile, Projects): body content scrolls, title stays fixed */
.popup-page:not(:has(.sw-wrap)):not(:has(.tl-wrap)) > *:not(h2)
{
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 0;
}

.popup-page:not(:has(.sw-wrap)):not(:has(.tl-wrap)) > *:not(h2)::-webkit-scrollbar
{
    display: none;
}

/* ── Timeline fade wrapper — this is the scroll container ─────────────────── */
.tl-wrap
{
    position: relative;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Mask fades stay pinned to viewport edges regardless of scroll */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.tl-wrap::-webkit-scrollbar
{
    display: none;
}

.popup-page h3
{
    margin: 0;
    font-size: clamp(18px, 1.9vw, 32px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.88;
}

.popup-page p
{
    margin: 0;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: clamp(13px, 1.1vw, 18px);
    letter-spacing: 0.02em;
    opacity: 0.82;
}

.popup-page ul,
.popup-page ol
{
    padding-left: 1.4em;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: clamp(13px, 1.1vw, 18px);
    letter-spacing: 0.02em;
    opacity: 0.82;
}

/* ─── Software cards ────────────────────────────────────────────── */

:root
{
    --sw-card-h:      340px;
    --sw-gap:          36px;
    --sw-peek:         calc(var(--sw-card-h) * 0.25);
    /* outer wrapper height: 1 full card + peek top & bottom + gaps */
    --sw-viewport-h:   calc(var(--sw-card-h) + var(--sw-peek) * 2 + var(--sw-gap) * 2);
}

/* outer wrapper — holds the fades, positioned outside the scroll container */
.sw-wrap
{
    position: relative;
    height: var(--sw-viewport-h);
    margin-left: 0;
    width: 88%;
    z-index: 5;
}

/* fades live on the wrapper so they don't scroll */
.sw-wrap::before,
.sw-wrap::after
{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: calc(var(--sw-peek) + var(--sw-gap) + 10px);
    z-index: 3;
    pointer-events: none;
}

.sw-wrap::before
{
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 30%, transparent);
}

.sw-wrap::after
{
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 30%, transparent);
}

/* scroll hint chevron */
.sw-scroll-hint
{
    position: sticky;
    bottom: 20px;
    /* match sw-wrap so hint centres over the card column */
    align-self: flex-start;
    width: 88%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.75);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
    animation: swHintBounce 1.4s ease-in-out infinite;
    white-space: nowrap;
    z-index: 20;
}

.sw-scroll-hint-text
{
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.sw-scroll-hint svg
{
    width: 22px;
    height: 22px;
    display: block;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
}

.sw-scroll-hint.sw-hint-hidden
{
    opacity: 0;
}

/* Timeline-specific scroll hint — override sw-scroll-hint width/align so it centres over the timeline */
.tl-scroll-hint
{
    width: 100%;
    align-self: center;
    bottom: 4px;
}

@keyframes swHintBounce
{
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(7px); }
}

/* scroll container — direction:rtl moves scrollbar to the left */
.sw-viewport
{
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.55) transparent;
}

.sw-viewport::-webkit-scrollbar
{
    width: 4px;
}

.sw-viewport::-webkit-scrollbar-track
{
    background: transparent;
}

.sw-viewport::-webkit-scrollbar-thumb
{
    background: rgba(255, 255, 255, 0.55);
    border-radius: 2px;
}

.sw-viewport::-webkit-scrollbar-thumb:hover
{
    background: rgba(255, 255, 255, 0.85);
}

/* reset content direction so text stays left-to-right */
.sw-track
{
    direction: ltr;
    display: flex;
    flex-direction: column;
    gap: var(--sw-gap);
    /* padding lets first & last cards snap to centre; left indent clears scrollbar */
    padding: calc(var(--sw-peek) + var(--sw-gap)) 0 calc(var(--sw-peek) + var(--sw-gap)) 120px;
}

/* default card — slightly dimmed & smaller */
.sw-card
{
    flex-shrink: 0;
    height: var(--sw-card-h);
    width: 85%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    background: #000000;
    will-change: transform, opacity;
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.12),
        0 0 32px rgba(100, 160, 255, 0.14);
    transition:
        border-color 0.25s ease,
        box-shadow   0.25s ease,
        background   0.25s ease;
    cursor: default;
}

/* active (snapped) card — full size with glow */
.sw-card.is-active
{
    transform: scale(1);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.85);
    background: #000000;
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.35),
        0 0 48px rgba(120, 180, 255, 0.40),
        inset 0 0 28px rgba(255, 255, 255, 0.07);
}

.sw-title
{
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-size: clamp(18px, 1.8vw, 28px);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.93);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.sw-body
{
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: clamp(14px, 1.35vw, 20px);
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* ─── Timeline ───────────────────────────────────────────────────── */

.timeline
{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 720px;
    margin: 0 auto;
    /* No fixed height — let content determine height so ::before line spans all entries */
    padding-top: 8vh;
    padding-bottom: 80px;  /* breathing room below last entry, clears scroll hint */
}

/* continuous glowing connector line */
.timeline::before
{
    content: '';
    position: absolute;
    left: calc(clamp(56px, 5.2vw, 84px) + 11px);
    top: 10px;
    bottom: 50px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.5) 8%,
        rgba(255, 255, 255, 0.5) 98%,
        transparent
    );
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.tl-item
{
    display: grid;
    grid-template-columns: clamp(56px, 5.2vw, 84px) 24px 1fr;
    align-items: start;
    padding-bottom: clamp(20px, 2.2vh, 34px);
    /* Scale origin = dot centre, so dot stays on the vertical line during hover */
    transform-origin: calc(clamp(56px, 5.2vw, 84px) + 12px) center;  /* 12px = centre of 24px dot column */
    transition: transform 0.25s ease;
    cursor: default;
}

.tl-item:hover
{
    transform: scale(1.1);
}

.tl-item:hover .tl-year
{
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    transition: color 0.25s ease, font-weight 0s;
}

.tl-item:hover .tl-dot
{
    background: #ffffff;
    transform: scale(1.75);
    animation: dotRadiantWave 1.6s ease-in-out infinite;
    transition: background 0.25s ease, transform 0.25s ease;
}

@keyframes dotRadiantWave
{
    0%, 100%
    {
        box-shadow:
            0 0 0 4px  rgba(255, 255, 255, 0.15),
            0 0 12px   rgba(255, 255, 255, 0.80),
            0 0 28px   rgba(255, 255, 255, 0.40),
            0 0 50px   rgba(200, 220, 255, 0.25);
    }
    50%
    {
        box-shadow:
            0 0 0 8px  rgba(255, 255, 255, 0.28),
            0 0 24px   rgba(255, 255, 255, 1.00),
            0 0 52px   rgba(255, 255, 255, 0.70),
            0 0 90px   rgba(200, 220, 255, 0.55);
    }
}

/* year + dot share their column via display:contents */
.tl-marker
{
    display: contents;
}

.tl-year
{
    grid-column: 1;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: clamp(17px, 1.55vw, 23px);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.42);
    padding-top: 0;
    line-height: 1;
    text-align: right;
    padding-right: clamp(18px, 1.8vw, 30px);
    white-space: nowrap;
}

.tl-dot
{
    grid-column: 2;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.10),
        0 0 12px rgba(255, 255, 255, 0.65),
        0 0 24px rgba(255, 255, 255, 0.28);
    margin-top: 1px;   /* align dot centre with year cap-height centre */
    justify-self: center;
    transition: box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.tl-content
{
    grid-column: 3;
    padding-left: clamp(14px, 1.4vw, 22px);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tl-role
{
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-size: clamp(20px, 2.3vw, 32px);
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.32);
    line-height: 1;       /* remove half-leading so top of role aligns with year & dot */
    margin-bottom: 4px;   /* restore spacing below the title line */
}

.tl-org
{
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: clamp(12px, 1.35vw, 20px);
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 4px;
}

.tl-desc
{
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: clamp(20px, 1.9vw, 28px);
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin: 4px 0 0;
    padding-left: 1.1em;
    list-style: disc;
    opacity: 1;
}

.tl-desc li
{
    margin-bottom: 4px;
    padding-left: 0.2em;
}

.tl-desc li::marker
{
    color: rgba(255, 255, 255, 0.35);
}

.popup-page-loading
{
    font-size: clamp(16px, 1.5vw, 24px);
    opacity: 0.7;
    font-style: italic;
}

@keyframes popupPageFadeIn
{
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ─── Hero left panel ────────────────────────────────────── */

.hero-left
{
    position: fixed;
    left: 4vw;
    top: 50%;
    transform: translateY(-50%);
    width: 26vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.4vmin;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body.is-loaded .hero-left
{
    opacity: 1;
    pointer-events: auto;
}

body.panel-open .hero-left
{
    opacity: 0 !important;
    pointer-events: none;
}

@keyframes heroItemIn
{
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes heroSubtitleIn
{
    from { opacity: 0;    transform: translateY(20px); }
    to   { opacity: 0.75; transform: translateY(0);    }
}

body.is-loaded .title
{
    animation: heroItemIn 1.75s ease 0.05s both;
}

body.is-loaded .subtitle
{
    animation: heroSubtitleIn 1.75s ease 0.65s both;
}

body.is-loaded .social-links
{
    animation: heroItemIn 1.75s ease 1.25s both;
}

.title
{
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    color: #ffffff;
    font-size: 7.8vmin;
    white-space: nowrap;
    text-transform: uppercase;
    text-align: left;
    outline: none;
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.05;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

.subtitle
{
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    color: #ffffff;
    font-size: 2.7vmin;
    text-align: left;
    outline: none;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.06em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: none;
}

.social-links
{
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3.5vmin;
    z-index: 2;
}

.social-link
{
    width: 3.5vmin;
    height: 3.5vmin;
    min-width: 18px;
    min-height: 18px;
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.social-link svg
{
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.social-link:hover
{
    opacity: 1;
    transform: translateY(-5px) scale(1.3);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* ─── Side menu ──────────────────────────────────────────── */

.side-menu
{
    position: fixed;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

body.is-loaded .side-menu
{
    opacity: 1;
    pointer-events: auto;
    transition: opacity 1.75s ease 1.75s;
}

/* After intro animations finish — fast re-appear on panel close */
body.hero-animated .side-menu
{
    transition: opacity 0.45s ease 0s;
}

body.hero-animated .title,
body.hero-animated .subtitle,
body.hero-animated .social-links
{
    animation: none;
}

body.panel-open .side-menu
{
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0s ease;
}

.side-menu ul
{
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.side-menu li
{
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-menu li::after
{
    content: '';
    display: block;
    width: 18px;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.25s ease, background 0.25s ease;
    flex-shrink: 0;
}

.side-menu li:hover::after
{
    width: 28px;
    background: rgba(255, 255, 255, 0.9);
}

.side-menu button
{
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-size: clamp(16px, 1.8vw, 30px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: right;
    color: rgba(255, 255, 255, 0.5);
    padding: 9px 0;
    transition: color 0.22s ease, text-shadow 0.22s ease, letter-spacing 0.22s ease;
    line-height: 1;
}

.side-menu button:hover
{
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.65);
    letter-spacing: 0.14em;
    outline: none;
}

.side-menu button:focus-visible
{
    outline: none;
}

/* ─── Hide corner callouts / lines / locks (replaced by side menu) ── */

.callouts
{
    display: none;
}

/* Re-show the callouts container when a panel is expanded inside it.
   display:none on a parent hides even position:fixed children, so we
   must unhide .callouts when a panel is open. The non-expanded callouts
   remain invisible via their own opacity:0 rule. */
body.panel-open .callouts
{
    display: block;
}

/* ─── 3D Antibody widget ─────────────────────────────────────────── */

.ab-widget
{
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}

body.is-loaded .ab-widget
{
    opacity: 1;
}


#antibody-canvas
{
    display: block;
    flex-shrink: 0;
    width: 70px;
    height: 80px;
    filter: drop-shadow(0 0 8px rgba(180, 160, 255, 0.5));
}

/* ─── Antibody trails ─────────────────────────────────────────── */

#trail-back-canvas,
#trail-front-canvas
{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#trail-back-canvas  { z-index: 1; } /* behind sphere (z-index 2) */
#trail-front-canvas { z-index: 3; } /* in front of sphere, behind panel (z-index 12) */

body.panel-open #trail-back-canvas,
body.panel-open #trail-front-canvas
{
    opacity: 1;
    transition: opacity 0.8s ease 0.3s;
}

.ab-name
{
    font-family: 'Ailerons', Helvetica, Arial, sans-serif;
    font-size: clamp(24px, 1.8vw, 24px);
    letter-spacing: 0.1em;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    white-space: nowrap;
}

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