﻿/* =========
   RESET
   ========= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* =========
   THEME VARIABLES
   ========= */
:root {
    --bg-main: #05070a;
    --bg-alt: #101322;
    --bg-card: #0b0e16;
    --text-main: #f5f5f7;
    --text-muted: #c5cad6;
    --text-soft: #a0a7b8;
    --accent-1: #4fc3f7;
    --accent-2: #7c4dff;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

.theme-light {
    --bg-main: #f5f7fb;
    --bg-alt: #e8ecf7;
    --bg-card: #ffffff;
    --text-main: #111320;
    --text-muted: #42475a;
    --text-soft: #6a7084;
    --accent-1: #1976d2;
    --accent-2: #7b1fa2;
    --border-subtle: rgba(0, 0, 0, 0.08);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* =========
   LAYOUT
   ========= */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header & Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 7, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.theme-light .site-header {
    background: rgba(245, 247, 251, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* was space-between */
    padding: 0.75rem 0;
    gap: 0.75rem;
}

/*.logo a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
}*/

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-mark svg {
    display: block;
    width: 26px;
    height: 26px;
}

.logo-text {
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

a,
a:visited,
a:active,
a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-left: auto;  NEW: pushes nav to the right 
    margin-right: 0.75rem;  optional: space before the toggle 
}

    /*.site-nav a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.95rem;
        position: relative;
    }

        .site-nav a.active {
            color: var(--accent-1);*/
/*            border-bottom: 2px solid var(--accent-1);
            padding-bottom: 2px;*/
        /*}

        .site-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -0.25rem;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
            transition: width 0.25s ease;
        }

        .site-nav a:hover::after {
            width: 100%;
        }*/


.site-nav a {
    position: relative;
    text-decoration: none;
    padding-bottom: 3px;
}

    .site-nav a:active {
        color: var(--accent-1);
        text-decoration: none;
    }

    .site-nav a.active:active::after {
        width: 100%;
    }


    /* Gradient underline (hidden initially) */
    .site-nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0%;
        height: 2px;
        background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
        transition: width 0.25s ease;
    }

    /* Hover shows gradient underline */
    .site-nav a:hover::after {
        width: 100%;
    }

    /* Active link also shows the SAME gradient underline */
    .site-nav a.active::after {
        width: 100%;
    }


/* Theme toggle */
.theme-toggle {
    border: 1px solid var(--border-subtle);
    background: transparent;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
}

    .theme-toggle:hover {
        border-color: var(--accent-1);
        color: var(--accent-1);
    }

/* Hero (home) */
.hero {
    padding: 4.5rem 0 3.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    color: var(--accent-1);
    margin-bottom: 0.75rem;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.4rem, 3vw, 3rem);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-side {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: radial-gradient(circle at top left, #182033, #090b12);
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.theme-light .hero-card {
    background: radial-gradient(circle at top left, #ffffff, #dbe3ff);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

.hero-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.hero-card ul {
    list-style: none;
    font-size: 0.95rem;
}

.hero-card li + li {
    margin-top: 0.4rem;
}

/* Page hero */
.page-hero {
    padding: 3.5rem 0 2.5rem;
}

.page-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.page-hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, border-color 0.2s ease, color 0.2s ease;
}

    .btn.primary {
        background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
        color: #05070a;
        font-weight: 600;
    }

        .btn.primary:hover {
            transform: translateY(-1px);
        }

    .btn.secondary {
        background: #151926;
        color: var(--text-main);
        border-color: rgba(255, 255, 255, 0.18);
    }

.theme-light .btn.secondary {
    background: #e1e4f0;
    border-color: rgba(0, 0, 0, 0.12);
}

.btn.secondary:hover {
    background: #202437;
}

.theme-light .btn.secondary:hover {
    background: #ccd1ea;
}

.btn.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-muted);
}

.theme-light .btn.ghost {
    border-color: rgba(0, 0, 0, 0.12);
}

.btn.ghost:hover {
    border-color: var(--accent-1);
    color: var(--text-main);
}

/* Text link */
.text-link {
    color: var(--accent-1);
    text-decoration: none;
    font-size: 0.95rem;
}

    .text-link:hover {
        text-decoration: underline;
    }

/* Sections */
.section {
    padding: 3.5rem 0;
}

    .section.alt {
        background: radial-gradient(circle at top, var(--bg-alt), var(--bg-main));
    }

    .section h2 {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }

.section-intro {
    margin-bottom: 2rem;
    max-width: 40rem;
    color: var(--text-muted);
}

/* Grids */
.grid.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border-radius: 1.1rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border-subtle);
}

    .card h3 {
        margin-bottom: 0.4rem;
    }

    .card .tagline {
        font-size: 0.9rem;
        color: var(--accent-1);
        margin-bottom: 0.4rem;
    }

/* Pill list */
.pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .pill-list li {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
        border-radius: 999px;
        border: 1px solid var(--border-subtle);
        background: rgba(10, 14, 22, 0.9);
    }

.theme-light .pill-list li {
    background: #ffffff;
}

/* Timeline */
.timeline {
    list-style: none;
    margin-top: 1.25rem;
}

    .timeline li + li {
        margin-top: 1rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-subtle);
    }

    .timeline h3 {
        font-size: 1.05rem;
        margin-bottom: 0.1rem;
    }

.timeline-meta {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 0.3rem;
}

.timeline p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

.small-note {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-top: 0.6rem;
}

/* Images */
.image-card {
    display: block;
    max-width: 100%;
    border-radius: 1.1rem;
    border: 1px solid var(--border-subtle);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-list {
    list-style: none;
}

    .contact-list li + li {
        margin-top: 0.4rem;
    }

    .contact-list a {
        color: var(--accent-1);
        text-decoration: none;
    }

        .contact-list a:hover {
            text-decoration: underline;
        }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.1rem 0;
    background: var(--bg-main);
}

.footer-inner {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* =========
   REVEAL ANIMATIONS
   ========= */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========
   RESPONSIVE
   ========= */
@media (max-width: 900px) {
    .hero-inner,
    .page-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-side {
        justify-content: flex-start;
    }

    .grid.two-col,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero-image {
        order: -1;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .header-inner {
        flex-wrap: wrap;
    }
}


/* --- Listening Room --- */
.listening-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.track-list {
    list-style: none;
    border-radius: 1.1rem;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    padding: 0.75rem;
    /* NEW (optional): limit height & scroll */
    max-height: 260px;
    overflow-y: auto;
}

    .track-list li {
        padding: 0.45rem 0.65rem;
        font-size: 0.9rem;
        cursor: pointer;
        border-radius: 0.55rem;
        color: var(--text-muted);
    }

        .track-list li + li {
            margin-top: 0.15rem;
        }

        .track-list li:hover {
            background: rgba(255, 255, 255, 0.04);
        }

        .track-list li.active {
            background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
            color: #05070a;
            font-weight: 600;
        }

.player-card {
    background: var(--bg-card);
    border-radius: 1.1rem;
    border: 1px solid var(--border-subtle);
    padding: 1.2rem 1.4rem;
}

.current-track-label {
    font-size: 0.8rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.25rem;
}

.current-track-title {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.player-card audio {
    width: 100%;
}


/* DewTok layout: text + video side by side */
.dewtok-layout {
    display: flex;
    align-items: flex-start; /* align both to the top */
    gap: 1rem;
}

/* Make sure the first paragraph isn’t adding extra top space */
.dewtok-text p:first-child {
    margin-top: 0;
}

/* Dew video sizing */
.dewtok-video {
    width: 100%;
    max-width: 320px; /* tweak if you want bigger/smaller */
    height: auto;
    display: block;
    margin: 0; /* no extra top offset */
    border-radius: 1rem;
    border: 1px solid var(--border-subtle);
}

/* Mobile: stack text and video */
@media (max-width: 768px) {
    .dewtok-layout {
        flex-direction: column;
    }

    .dewtok-video {
        max-width: 100%;
        margin: 0 auto;
    }
}


.main-image {
    width: 100%;
    max-width: 600px; /* adjust this number to shrink/expand */
    height: auto;
    display: block;
    margin: 0 auto; /* centers it */
    border-radius: 1rem;
}


/* --- Visual Gallery --- */
.gallery-wrapper {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.gallery-frame {
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    /* NEW: control overall size */
    max-width: 960px; /* optional: caps width on big screens */
    margin: 0 auto; /* centers the frame */
    height: clamp(220px, 40vw, 420px); 
}

.gallery-inner {
    display: flex;
    width: 100%;
    height: 100%; /* NEW: inherit height from frame */
    transition: transform 0.45s ease;
}

    .gallery-inner img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* you already set this */
        flex-shrink: 0;
        display: block;
    }

.gallery-nav {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

    .gallery-nav:hover {
        border-color: var(--accent-1);
        color: var(--accent-1);
    }

/* Slightly different alt background for AI Video section */
    .section.alt-soft {
    background: radial-gradient(circle at top, var(--bg-main), var(--bg-alt));
}

/* Responsive tweaks */
@media (max-width: 800px) {
    .listening-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .gallery-wrapper {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
    }

    .gallery-nav.prev,
    .gallery-nav.next {
        justify-self: center;
    }
}


@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1rem;
    }

    .header-inner {
        gap: 0.75rem;
    }

    .site-nav {
        font-size: 0.85rem; /* shrink text a bit */
        gap: 0.75rem; /* tighten spacing */
        flex-wrap: wrap; /* allow wrapping onto 2 lines */
        justify-content: flex-end;
    }

        .site-nav a {
            padding-bottom: 0.15rem; /* keep underline tight */
        }
}