@font-face {
    font-family: 'Epilogue';
    src: url('assets/epilogue-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mazius Display';
    src: url('assets/mazius-display.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Body / UI copy in panels (help, nobo definitions, find handles + email, find tagline); nobo “currently at…” uses Epilogue */
:root {
    --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
    background-color: #000000;
}

body {
    margin: 0;
    overflow: hidden;
    background-color: #000000;
}

/* ── Canvas ── */

#artworkContainer {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000000;
    touch-action: none;
}

/* Full-viewport intro — above #overlay (100) and popovers (101) until removed */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 200;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #000000;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.preloader--done {
    opacity: 0;
    visibility: hidden;
}

.preloader-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

#panLayer {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    transform-origin: 0 0;
    will-change: transform;
    pointer-events: none;
}

#panLayer > img,
#panLayer > video {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    backface-visibility: hidden;
}

/* ── Media lightbox (below #overlay z-index so nav stays on top) ── */

.media-lightbox[hidden] {
    display: none !important;
}

.media-lightbox:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99;
    pointer-events: auto;
    box-sizing: border-box;
    padding: 24px;
}

.media-lightbox-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    display: block;
}

.media-lightbox-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    pointer-events: none;
}

.media-lightbox-stage-wrap {
    position: relative;
    max-width: min(92vw, 1400px);
    max-height: min(88vh, 1200px);
    pointer-events: auto;
}

.media-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 1400px);
    max-height: min(88vh, 1200px);
}

.media-lightbox-stage .media-lightbox-media {
    display: block;
    max-width: min(92vw, 1400px);
    max-height: min(88vh, 1200px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

/* ── Overlay root ── */

#overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

/* ── Overlay controls ── */

#btn-help,
#btn-nobo {
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    will-change: transform;
}

/* Nobo cluster — top left; hover opens card */
.nobo-popover-root {
    pointer-events: auto;
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 8px 8px 4px;
}

/* Help cluster — top right; hover opens card */
.help-popover-root {
    pointer-events: auto;
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 4px 0 8px 8px;
}

/* Find cluster — bottom center; hover opens card without losing hit target between card + pill */
.find-popover-root {
    pointer-events: auto;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px 10px;
    z-index: 101;
}

/* Help — circle 46px */
#btn-help {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.92);
    color: #334155;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    line-height: 0;
    overflow: visible;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

/* Nobo — pill (same family / weight as find me + help); fixed height + no vertical padding centers label */
#btn-nobo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 46px;
    min-height: 46px;
    padding: 0 22px;
    margin: 0;
    color: #334155;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

#btn-nobo .btn-nobo-label {
    display: block;
    font-family: 'Epilogue', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    transform: translateY(1px);
    pointer-events: none;
    user-select: none;
}

/* Question — inside .help-popover-root (same type as #btn-find) */
#btn-help {
    position: relative;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    font-family: 'Epilogue', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}

#btn-help .btn-help-char {
    display: block;
    pointer-events: none;
    user-select: none;
    /* Epilogue “?” sits slightly high in a circle */
    transform: translateY(1px);
}

/* Find me — pill (inside .find-popover-root) */
#btn-find {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    position: relative;
    padding: 11px 28px;
    font-family: 'Epilogue', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #334155;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 460.8px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

/* ── Help card — framer-1fv5c7p ── */
/* backdrop-filter blur(5px), rgba(247,250,252,0.85), border-radius 25px,
   box-shadow 0 10px 20px rgba(0,0,0,0.05), padding 18px, gap 16px, width 368px */

#help-card,
#nobo-card {
    pointer-events: auto;
    position: relative;
    width: min(368px, calc(100vw - 48px));
    max-width: 368px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    background-color: rgba(247, 250, 252, 0.85);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

#help-card[hidden],
#nobo-card[hidden] {
    display: none;
}

#help-card p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #475569;
    line-height: 1.5;
}

/* Nobo panel — dictionary-style entry */
.nobo-dict {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nobo-dict-headword {
    margin: 0;
    font-family: 'Epilogue', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.35;
}

.nobo-dict-slash {
    font-weight: 500;
    color: #94a3b8;
    padding: 0 0.2em;
}

.nobo-dict-pos {
    margin: -2px 0 0;
    font-family: 'Epilogue', sans-serif;
    font-size: 13px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: -0.02em;
    color: #64748b;
    line-height: 1.35;
}

.nobo-dict-definitions {
    margin: 4px 0 0;
    padding: 12px 0 0 1.2em;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #475569;
    line-height: 1.55;
}

.nobo-dict-definitions li {
    padding-left: 0.4em;
}

.nobo-dict-definitions li + li {
    margin-top: 0.65em;
}

/* Separator — framer-9s4ds4: background #94a3b8, border-radius 2px, height 2px */
.help-divider {
    height: 2px;
    background-color: #94a3b8;
    border-radius: 2px;
    width: 100%;
    flex-shrink: 0;
}

/* ── Find me card — glass panel (match help card treatment) ── */

#find-card {
    pointer-events: auto;
    position: relative;
    margin-bottom: 10px;
    width: min(500px, calc(100vw - 40px));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    /* Shared inner surfaces: hero row + link / email pills */
    --find-surface-bg: rgba(255, 255, 255, 0.92);
    --find-surface-border: 1px solid rgba(255, 255, 255, 0.85);
    --find-surface-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --find-surface-radius-block: 22px;
    background-color: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: visible;
}

#find-card[hidden] { display: none; }

.find-top {
    width: 100%;
}

/* Avatar + headline — same surface treatment as pills below */
.find-hero {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 12px 0;
    background-color: var(--find-surface-bg);
    border-radius: var(--find-surface-radius-block);
    border: var(--find-surface-border);
    box-shadow: var(--find-surface-shadow);
}

/* Avatar — pin to bottom of .find-hero (no flex-center gap when tagline is taller) */
.find-avatar {
    flex-shrink: 0;
    height: 96px;
    width: auto;
    max-width: 108px;
    object-fit: contain;
    object-position: left bottom;
    display: block;
    border-radius: 0;
}

.find-tagline {
    flex: 1;
    min-width: 0;
    margin: 0;
    align-self: center;
    padding-bottom: 11px;
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 400;
    color: #334155;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* "call" — Mazius Display italic, magenta accent */
.find-tagline em {
    font-family: 'Mazius Display', serif;
    font-style: italic;
    font-weight: 400;
    color: rgb(245, 15, 226);
    font-size: 26px;
}

.find-bottom {
    --find-pill-h: 56px;
    --find-pill-gap: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--find-pill-gap);
}

/* Top row: two equal columns + gap = same total width as email button below */
.find-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--find-pill-gap);
    width: 100%;
}

.social-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: var(--find-pill-h);
    padding: 0 14px;
    gap: 8px;
    text-decoration: none;
    color: #334155;
    background-color: var(--find-surface-bg);
    border: var(--find-surface-border);
    border-radius: 999px;
    box-shadow: var(--find-surface-shadow);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .social-btn:hover {
        transform: translateY(1px);
        background-color: rgba(255, 255, 255, 0.97);
        box-shadow:
            inset 2px 2px 6px rgba(15, 23, 42, 0.08),
            inset -1px -1px 5px rgba(255, 255, 255, 0.75),
            0 1px 2px rgba(15, 23, 42, 0.04);
        border-color: rgba(226, 232, 240, 0.95);
        color: #0f172a;
    }

    .social-btn:active {
        transform: translateY(2px);
        background-color: rgba(248, 250, 252, 0.98);
        box-shadow:
            inset 3px 3px 8px rgba(15, 23, 42, 0.1),
            inset -2px -2px 6px rgba(255, 255, 255, 0.65);
        transition-duration: 0.08s;
    }

    #btn-nobo:hover,
    #btn-help:hover {
        transform: translateY(1px);
        background-color: rgba(255, 255, 255, 0.97);
        box-shadow:
            inset 2px 2px 6px rgba(15, 23, 42, 0.08),
            inset -1px -1px 5px rgba(255, 255, 255, 0.75),
            0 1px 2px rgba(15, 23, 42, 0.04);
        border-color: rgba(226, 232, 240, 0.95);
        color: #0f172a;
    }

    #btn-nobo:active,
    #btn-help:active {
        transform: translateY(2px);
        background-color: rgba(248, 250, 252, 0.98);
        box-shadow:
            inset 3px 3px 8px rgba(15, 23, 42, 0.1),
            inset -2px -2px 6px rgba(255, 255, 255, 0.65);
        transition-duration: 0.08s;
    }
}

.social-btn-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.find-email-row {
    display: block;
    width: 100%;
}

#btn-copy-email {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    height: var(--find-pill-h, 56px);
    min-height: var(--find-pill-h, 56px);
    padding: 0 20px;
    cursor: pointer;
    color: #334155;
    background-color: var(--find-surface-bg);
    border: var(--find-surface-border);
    border-radius: 999px;
    box-shadow: var(--find-surface-shadow);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    user-select: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    #btn-copy-email:hover {
        transform: translateY(1px);
        background-color: rgba(255, 255, 255, 0.97);
        box-shadow:
            inset 2px 2px 6px rgba(15, 23, 42, 0.08),
            inset -1px -1px 5px rgba(255, 255, 255, 0.75),
            0 1px 2px rgba(15, 23, 42, 0.04);
        border-color: rgba(226, 232, 240, 0.95);
        color: #0f172a;
    }

    #btn-copy-email:active {
        transform: translateY(2px);
        background-color: rgba(248, 250, 252, 0.98);
        box-shadow:
            inset 3px 3px 8px rgba(15, 23, 42, 0.1),
            inset -2px -2px 6px rgba(255, 255, 255, 0.65);
        transition-duration: 0.08s;
    }
}

#btn-copy-email svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#btn-copy-email span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 380px) {
    #find-card {
        padding: 18px;
        gap: 14px;
    }

    .find-hero {
        padding: 10px 10px 0;
        gap: 12px;
        border-radius: 18px;
    }

    .find-tagline {
        font-size: 19px;
        font-weight: 500;
        padding-bottom: 10px;
    }

    .find-tagline em {
        font-size: 23px;
    }

    .find-avatar {
        height: 82px;
        max-width: 92px;
    }

    .find-social-row {
        grid-template-columns: 1fr;
    }

    .social-btn {
        font-size: 12.5px;
    }

    #btn-copy-email {
        font-size: 12.5px;
    }
}
