/* ==========================================================================
   Keith Adams - Personal Site
   Dark editorial aesthetic with warm accents
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    --color-bg: #0b0b0f;
    --color-bg-elevated: #131318;
    --color-bg-card: #1a1a22;
    --color-bg-card-hover: #22222d;
    --color-surface: #1e1e26;
    --color-text: #e8e6e1;
    --color-text-muted: #9a978f;
    --color-text-dim: #6b685f;
    --color-accent: #c9a84c;
    --color-accent-glow: rgba(201, 168, 76, 0.15);
    --color-accent-hover: #dabb5e;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.12);
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Noise Texture Overlay --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: background var(--transition-smooth);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-text);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--color-text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
}

.site-logo:hover .logo-name {
    color: var(--color-accent);
}

.site-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Main Content --- */
.site-main {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* --- Hero Section (Home) --- */
.hero {
    padding: 6rem 2rem 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

.hero-image-wrap {
    position: relative;
}

.hero-image {
    width: 100%;
    aspect-ratio: 241 / 300;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(15%) contrast(1.05);
    transition: filter var(--transition-smooth);
}

.hero-image-wrap:hover .hero-image {
    filter: grayscale(0%) contrast(1);
}

.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    opacity: 0.3;
    z-index: -1;
    transition: opacity var(--transition-smooth);
}

.hero-image-wrap:hover::after {
    opacity: 0.6;
}

.photo-credit {
    font-size: 0.72rem;
    color: var(--color-text-dim);
    margin-top: 0.75rem;
    font-style: italic;
}

.hero-content {
    padding-top: 0.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-text);
    line-height: 1.15;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.15s forwards;
}

/* --- Sections --- */
.sections-grid {
    display: grid;
    gap: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.section-block {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.role-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.role-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: baseline;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.role-item:hover {
    background: var(--color-bg-card);
    border-color: var(--color-border-hover);
    transform: translateX(4px);
}

.role-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.role-name a {
    color: var(--color-text);
}

.role-name a:hover {
    color: var(--color-accent);
}

.role-description {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.role-years {
    font-size: 0.78rem;
    color: var(--color-text-dim);
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.75rem;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 100px;
    border: 1px solid rgba(201, 168, 76, 0.12);
}

/* --- Videos Page --- */
.page-header {
    padding: 5rem 2rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-text-muted);
    font-weight: 300;
}

.video-sections {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.video-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.7s ease forwards;
}

.video-section:nth-child(1) { animation-delay: 0.15s; }
.video-section:nth-child(2) { animation-delay: 0.25s; }
.video-section:nth-child(3) { animation-delay: 0.35s; }
.video-section:nth-child(4) { animation-delay: 0.45s; }
.video-section:nth-child(5) { animation-delay: 0.55s; }
.video-section:nth-child(6) { animation-delay: 0.65s; }
.video-section:nth-child(7) { animation-delay: 0.75s; }

.video-section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.video-section-title::before {
    content: '';
    width: 3px;
    height: 1.2em;
    background: var(--color-accent);
    border-radius: 2px;
}

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

.video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: all var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--color-border-hover);
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-card:hover .video-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-surface);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 52px;
    height: 52px;
    background: rgba(201, 168, 76, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.video-play-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-bg);
    margin-left: 3px;
}

.video-card-info {
    padding: 1rem 1.25rem;
}

.video-card-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.4;
}

/* --- Lightbox / Video Modal --- */
.video-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
}

.video-modal-overlay.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: default;
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color var(--transition-fast);
}

.video-modal-close:hover {
    color: var(--color-text);
}

/* --- Hero Bio --- */
.hero-bio {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.22s forwards;
}

.hero-bio p {
    font-size: 0.95rem;
	padding-bottom: 6px;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.8;
}

.hero-bio a {
    color: var(--color-accent);
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
    transition: border-color var(--transition-fast);
}

.hero-bio a:hover {
    border-bottom-color: var(--color-accent);
}

/* --- Music Page --- */
.music-sections {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.music-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.7s ease forwards;
}

.music-section:nth-child(1) { animation-delay: 0.1s; }
.music-section:nth-child(2) { animation-delay: 0.2s; }
.music-section:nth-child(3) { animation-delay: 0.3s; }
.music-section:nth-child(4) { animation-delay: 0.4s; }
.music-section:nth-child(5) { animation-delay: 0.5s; }

.music-section-header {
    margin-bottom: 1.5rem;
}

.music-section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.music-section-title::before {
    content: '';
    width: 3px;
    height: 1.2em;
    background: var(--color-accent);
    border-radius: 2px;
}

.music-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.music-role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.music-years {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.65rem;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 100px;
    border: 1px solid rgba(201, 168, 76, 0.12);
}

.music-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    max-width: 720px;
}

.music-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.music-links a {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.music-links a:hover {
    background: var(--color-accent-glow);
    border-color: var(--color-accent);
    color: var(--color-accent-hover);
}

.sc-embed {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
}

.sc-embed iframe {
    display: block;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 2rem;
    background: var(--color-bg-elevated);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-icons {
    display: flex;
    gap: 1rem;
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-text-muted);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.icon-circle:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: var(--color-accent-glow);
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

.footer-copyright a {
    color: var(--color-text-dim);
}

.footer-copyright a:hover {
    color: var(--color-accent);
}

/* --- Animations --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 200px 1fr;
        gap: 2.5rem;
        padding: 4rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 680px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: var(--color-bg-elevated);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        border-left: 1px solid var(--color-border);
        transition: right var(--transition-smooth);
    }

    .site-nav.open {
        right: 0;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.25rem 2rem;
        text-align: center;
    }

    .hero-image-wrap {
        max-width: 220px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .role-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .role-years {
        justify-self: start;
    }

    .page-header {
        padding: 3rem 1.25rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .video-sections {
        padding: 1.5rem 1.25rem 4rem;
    }

    .music-sections {
        padding: 1.5rem 1.25rem 4rem;
    }

    .music-section-title {
        font-size: 1.4rem;
    }

    .video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .video-card-info {
        padding: 0.75rem 1rem;
    }

    .video-card-title {
        font-size: 0.8rem;
    }

    .video-modal-content {
        border-radius: 4px;
    }
}

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

    .logo-tagline {
        display: none;
    }
}
