@font-face {
    font-family: "Reform-GroteskRegular";
    src: url("fonts/Reform-GroteskRegular.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Times";
    src: url("fonts/Times.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AJ";
    src: url("fonts/AJ.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.bio-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
    font-family: "AJ", "adobe-jenson-pro", "Adobe Jenson Pro", "Jenson Pro", "Times New Roman", Times, serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 125%;
    letter-spacing: 0.05px;
    color: #ffffff;
    mix-blend-mode: exclusion;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    max-width: 90vw;
    width: max-content;
}

.bio-line {
    display: block;
    margin-bottom: 0;
}

.bio-line a {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
    cursor: pointer;
    text-transform: lowercase;
    font-variant: small-caps;
}

.bio-line a[href^="mailto"] {
    margin-left: 20px;
}

@media (max-width: 768px) {
    .bio-line a[href^="mailto"] {
        margin-left: 10px;
    }
}

.link-spacer {
    display: inline-block;
    width: 20px;
    min-width: 20px;
    flex-shrink: 0;
}

.bio-line-spacing {
    margin-top: 20px;
}

.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: none;
    overflow: hidden; /* Ensure videos don't overflow */
}

.background-slideshow video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.background-slideshow.contain-mode {
    background-size: contain;
    background-color: #ffffff;
}

.background-slideshow.contain-mode.vertical {
    background-size: auto 75vh;
}

.background-slideshow.contain-mode.horizontal {
    background-size: 75vw auto;
}

.background-slideshow.contain-mode.square {
    background-size: 75vh 75vh !important;
}

.thumbnail-viewer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    overflow: hidden;
    padding: 4px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    width: fit-content;
    max-width: calc(100vw - 40px);
}

/* Mobile-specific: Interactive scrubber that encourages swiping */
@media (max-width: 768px) {
    .thumbnail-viewer {
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        width: calc(100vw - 60px);
        max-width: 400px;
        height: 1px;
        overflow: visible;
        cursor: grab;
        border: none;
        box-shadow: none;
    }
    
    .thumbnail-viewer:active {
        cursor: grabbing;
    }
    
    .thumbnails-container {
        display: none !important;
    }
    
    /* Progress track - white to black gradient, 1px */
    .thumbnail-viewer::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 40%, #666666 80%, #000000 100%);
        border-radius: 0;
        animation: none;
    }
    
    /* Interactive scrubber dot - black, no shadow */
    .thumbnail-viewer::after {
        content: '';
        position: absolute;
        top: 50%;
        left: var(--indicator-position, 50%);
        transform: translate(-50%, -50%);
        width: 18px;
        height: 18px;
        background: #000000;
        border-radius: 50%;
        transition: left 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }
    
    /* Pause animations on touch/interaction */
    .thumbnail-viewer:active::after {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.thumbnails-container {
    display: flex;
    gap: 4px;
    padding: 0;
    flex-wrap: nowrap;
    width: 100%;
}

.thumbnail {
    width: 40px;
    height: 40px;
    min-width: 40px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 1;
}

.thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.thumbnail.active {
    opacity: 1;
    border-color: #ffffff;
    border-width: 1px;
}

