/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #c8252e;
    --black: #0a0a0a;
    --card-bg: #161616;
    --grey: #888888;
    --white: #ffffff;
    --shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    background-color: #111;
    min-height: 200px;
}

img.agency-teaser-img {
    min-height: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- INTRO OVERLAY --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.intro-logo-box {
    position: relative;
    padding: 1.5rem 3rem;
    border: 4px solid var(--white);
    background: transparent;
    overflow: hidden;
}

.intro-slideshow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: slideColors 2.5s infinite;
    opacity: 0.7;
    z-index: 1;
}

@keyframes slideColors {
    0% { background-color: var(--red); }
    33% { background-color: var(--black); }
    66% { background-color: #333; }
    100% { background-color: var(--red); }
}

.intro-text {
    position: relative;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--white);
    letter-spacing: 12px;
    z-index: 2;
    text-transform: uppercase;
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo span {
    color: var(--red);
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}

nav a:hover {
    color: var(--red);
}

/* --- HERO BIG SPLASH --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-name {
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    font-weight: 900;
    line-height: 0.8;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
}

.hero-name span {
    color: var(--red);
}

.hero-roles {
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-roles::before {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--red);
}

.hero-controls {
    position: absolute;
    bottom: 40px;
    right: 5%;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.control-btn:hover {
    background: var(--red);
    border-color: var(--red);
}

/* --- SECTIONS --- */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 8rem 0;
}

.kicker {
    color: var(--red);
    font-weight: 900;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-size: 0.65rem;
    margin-bottom: 1.5rem;
    display: block;
}

h2 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

/* --- PROJECTS --- */
.featured-project {
    width: 100%;
    margin-bottom: 8rem;
}

.featured-header {
    margin-bottom: 3rem;
    max-width: 900px;
}

.featured-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.featured-card {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: 4px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
    background-color: #111;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1.5s ease;
    opacity: 1; /* Changed to 1 so statically added photos show */
}

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

/* Match Austin Series behavior (no zoom) for Ally featured image */
.featured-card:hover .featured-img img#feat-img-2 {
    transform: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    margin-bottom: 8rem;
}

.project-card {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: 0.6s transform cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 4px;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-15px);
}

.project-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #111;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1.5s ease;
    opacity: 1; /* Changed to 1 so statically added photos show */
}

.project-info {
    padding: 3rem;
}

.project-cat {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.project-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- RESUME SECTION STICKY --- */
.resume-section {
    background: #0f0f0f;
}

.resume-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 8rem;
}

.resume-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-item {
    margin-bottom: 3rem;
}

.sidebar-label {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--red);
    display: block;
    margin-bottom: 1.5rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-main {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 5rem;
}

.resume-item {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.role {
    font-weight: 900;
    font-size: 1.6rem;
    display: block;
    margin-bottom: 0.5rem;
}

.comp {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
}

.date {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--red);
    margin-bottom: 2rem;
    display: block;
    letter-spacing: 0.1em;
}

.desc-list li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    list-style: disc;
    margin-left: 1.2rem;
}

/* --- AGENCY --- */
.teaser-section {
    background: var(--black);
    padding: 12rem 0;
    text-align: center;
}

.browser-mockup {
    max-width: 1000px;
    margin: 5rem auto 0;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
}

.browser-header {
    height: 45px;
    background: #252525;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 0.8rem;
}

.browser-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

.browser-screen {
    aspect-ratio: 16/9;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.agency-teaser-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: pointer;
    outline-offset: 4px;
}

.agency-teaser-link:focus-visible {
    outline: 2px solid var(--red);
}

.agency-teaser-blur-wrap {
    position: absolute;
    inset: -4%;
    pointer-events: none;
}

.agency-teaser-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(14px) brightness(0.5) saturate(0.85);
    transform: scale(1.06);
    transition: filter 0.45s ease, transform 0.45s ease;
}

.agency-teaser-link:hover .agency-teaser-img,
.agency-teaser-link:focus-visible .agency-teaser-img {
    filter: blur(9px) brightness(0.62) saturate(1);
    transform: scale(1.04);
}

.agency-teaser-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    pointer-events: none;
}

.agency-teaser-welcome {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
}

.agency-teaser-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--red);
    border-radius: 4px;
    text-shadow: none;
    box-shadow: 0 12px 40px rgba(200, 37, 46, 0.45);
}

.agency-teaser-domain {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
}

/* --- ABOUT / CONTACT --- */
.about-section {
    background: #0f0f0f;
    padding: 8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-section .about-inner {
    max-width: 640px;
}

.about-section p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.contact-emails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-emails a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    border-bottom: 2px solid var(--red);
    padding-bottom: 0.2rem;
    align-self: flex-start;
    letter-spacing: 0.02em;
}

.contact-emails a:hover {
    color: var(--red);
}

.contact-emails a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

.agency-link {
    font-weight: 700;
    color: var(--white);
    border-bottom: 1px solid var(--red);
}

.agency-link:hover {
    color: var(--red);
}

.agency-link:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

.agency-link-muted {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid transparent;
}

.agency-link-muted:hover {
    color: var(--white);
    border-bottom-color: var(--red);
}

.agency-link-muted:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
    color: var(--white);
}

.about-section .sidebar-label {
    margin-bottom: 1rem;
}

/* --- FOOTER --- */
footer {
    padding: 8rem 5%;
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #444;
    background: #000;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .resume-grid { grid-template-columns: 1fr; gap: 4rem; }
    .resume-main { padding-left: 0; border-left: none; }
    .resume-sidebar { position: static; }
}

@media (max-width: 768px) {
    .hero-name { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .gallery { grid-template-columns: 1fr; gap: 3rem; }
    nav {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: flex-end;
    }
    nav a {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }
    .agency-teaser-welcome {
        font-size: 0.65rem;
        letter-spacing: 0.14em;
        text-align: center;
        max-width: 18rem;
        line-height: 1.5;
    }

    .agency-teaser-cta {
        font-size: 0.72rem;
        padding: 0.75rem 1.35rem;
        letter-spacing: 0.08em;
    }

    .agency-teaser-domain {
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }
}
    

/* --- WORK ROWS (title left / preview right) --- */
.work-preview-header {
    margin-bottom: 4rem;
}

.work-row {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.work-row:last-child {
    margin-bottom: 0;
}

.work-row-copy .kicker {
    margin-bottom: 1rem;
}

.work-row-copy h2,
.work-row-copy h3 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.work-row-copy p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.work-row-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.work-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
    min-height: 0;
}

.work-row:hover .work-row-media img {
    transform: scale(1.05);
}

.work-cta-wrap {
    margin-top: 4rem;
    text-align: center;
}

.work-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--red);
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(200, 37, 46, 0.45);
}

.work-cta:hover {
    filter: brightness(1.08);
}

.portfolio-page-hero {
    padding: 10rem 0 3rem;
}

.portfolio-page-hero h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin-bottom: 1rem;
}

.portfolio-page-hero p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.05rem;
    line-height: 1.7;
}

.portfolio-group {
    margin-bottom: 5rem;
}

.portfolio-group-title {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 3rem;
    display: block;
}

@media (max-width: 900px) {
    .work-row {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-bottom: 4rem;
    }

    .work-row-copy h2,
    .work-row-copy h3 {
        font-size: 2rem;
    }
}
