/* ============================================
   TANTONFILM.COM
   ============================================ */

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

:root {
    --white: #f0f0f0;
    --dim: rgba(240, 240, 240, 0.4);
    --card-bg: #111;
    --card-bg-hover: #1a1a1a;
    --accent: rgba(255, 255, 255, 0.06);
    --pad-x: 48px;
    --pad-y: 40px;
}

html {
    background: #000;
    color: var(--white);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    height: 100%;
    overflow: hidden;
}

a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

a:hover {
    opacity: 0.55;
}

/* ============================================
   MAIN PAGE
   ============================================ */

.page-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* Nav */
.top-nav {
    position: absolute;
    top: var(--pad-y);
    left: var(--pad-x);
    display: flex;
    gap: 32px;
    z-index: 10;
}

.top-nav a {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Title */
.site-title {
    position: absolute;
    top: calc(var(--pad-y) - 4px);
    right: var(--pad-x);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: 10;
}

/* Headshot */
.headshot-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.headshot {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Subtle vignette over headshot left edge */
.headshot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 30%;
    background: linear-gradient(to right, #000 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Copyright */
.copyright {
    position: absolute;
    bottom: 32px;
    left: var(--pad-x);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1.5px;
    color: var(--dim);
    z-index: 10;
}

/* Social */
.social-icons {
    position: absolute;
    bottom: 28px;
    right: var(--pad-x);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 10;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    opacity: 0.5;
    transition: opacity 0.25s ease;
}

.social-icons a:hover {
    opacity: 1;
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   CREDITS PAGE
   ============================================ */

body.credits-body {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.credits-page {
    padding: var(--pad-y) var(--pad-x) 80px;
    min-height: 100vh;
}

.credits-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.credits-header .top-nav {
    position: static;
}

.credits-header .site-title {
    position: static;
}

.credits-section-title {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 36px;
    color: var(--dim);
}

/* Grid */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
}

.credit-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    background: var(--card-bg);
    overflow: hidden;
    min-height: 100px;
    transition: background 0.2s ease;
}

.credit-card:hover {
    background: var(--card-bg-hover);
}

.credit-card img {
    width: 140px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.credit-card .credit-info {
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--accent);
}

.credit-info h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1.25;
}

.credit-info p {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dim);
    line-height: 1.5;
}

/* Footer */
.credits-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--accent);
}

.credits-footer .copyright {
    position: static;
    color: var(--dim);
}

.credits-footer .social-icons {
    position: static;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    :root {
        --pad-x: 24px;
        --pad-y: 24px;
    }

    .top-nav {
        gap: 20px;
    }

    .top-nav a {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .site-title {
        font-size: 18px;
        letter-spacing: 2.5px;
    }

    .headshot-container {
        width: 70%;
    }

    .social-icons a {
        width: 18px;
        height: 18px;
    }

    .social-icons svg {
        width: 16px;
        height: 16px;
    }

    /* Credits */
    .credits-grid {
        grid-template-columns: 1fr;
    }

    .credit-card {
        grid-template-columns: 100px 1fr;
        min-height: 85px;
    }

    .credit-card img {
        width: 100px;
    }

    .credit-info h3 {
        font-size: 14px;
    }

    .credit-info p {
        font-size: 10px;
    }

    .credits-section-title {
        font-size: 12px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    :root {
        --pad-x: 18px;
        --pad-y: 18px;
    }

    .top-nav a {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .site-title {
        font-size: 15px;
        letter-spacing: 2px;
    }

    .headshot-container {
        width: 80%;
    }

    .credit-card {
        grid-template-columns: 80px 1fr;
        min-height: 75px;
    }

    .credit-card img {
        width: 80px;
    }
}

/* Scrollbar — subtle */
body.credits-body::-webkit-scrollbar {
    width: 4px;
}

body.credits-body::-webkit-scrollbar-track {
    background: transparent;
}

body.credits-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}
