* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #050508;
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BG LAYER ===== */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bg-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== INTRO ===== */
.intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.6s;
}

.intro.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro-slide {
    position: absolute;
    opacity: 0;
    transition: opacity 1s;
    text-align: center;
    padding: 0 20px;
}

.intro-slide.active {
    opacity: 1;
}

.intro-quote {
    font-size: 1.3rem;
    color: #999;
    font-style: italic;
    max-width: 600px;
    display: block;
}

/* ===== SITE ===== */
.site {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s;
}

.site.visible {
    opacity: 1;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    width: 100%;
    cursor: pointer;
    position: relative;
}

.banner-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 4;
    overflow: hidden;
}

.banner-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 8, 0.2) 0%,
        rgba(5, 5, 8, 0.4) 60%,
        rgba(5, 5, 8, 1) 100%
    );
    pointer-events: none;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
}

.header-name {
    font-family: 'Fira Sans Condensed', sans-serif;
    line-height: 1;
}

.name-first {
    display: block;
    font-size: 2.6rem;
    font-weight: 300;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.name-last {
    display: block;
    font-size: 5.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
    margin-top: -2px;
}

.tagline-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.tagline-item {
    font-family: 'Fira Sans Condensed', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.tagline-sep {
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.banner-hint {
    text-align: center;
    padding: 12px 0 0;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.6; }
}

/* ===== ABOUT SECTION ===== */
.about-section {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.5s ease, padding 0.5s ease;
    padding: 0;
}

.about-section.open {
    max-height: 600px;
    opacity: 1;
    padding: 30px 0 20px;
}

.about-block {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(12, 12, 18, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 28px 32px;
    text-align: left;
    position: relative;
}

.about-block::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: -1px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.12), transparent);
    border-radius: 1px;
}

.about-block p {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.75;
}

.about-block p:last-child {
    margin-bottom: 0;
}

/* ===== PORTFOLIO ===== */
.portfolio {
    position: relative;
    padding: 40px 0 60px;
}

.portfolio-inner {
    position: relative;
    z-index: 1;
}

.portfolio .section-title {
    font-family: 'Fira Sans Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== CARDS ===== */
.card {
    background: rgba(18, 18, 24, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.card video {
    display: none;
}

.card-info {
    padding: 12px 16px 16px;
}

.card-info h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #eee;
}

.card-info .desc {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.tools {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tools span {
    background: rgba(255, 255, 255, 0.06);
    color: #aaa;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== VIDEO THUMBNAIL ===== */
.video-wrap {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s, transform 0.4s;
}

.video-wrap:hover img {
    opacity: 0.75;
    transform: scale(1.03);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.video-wrap:hover .play-btn {
    opacity: 1;
}

/* ===== PLACEHOLDER ===== */
.placeholder-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 30, 0.6);
    aspect-ratio: 16/9;
}

.placeholder-text {
    font-size: 1.2rem;
    color: #444;
    font-style: italic;
}

/* ===== CONTACT ===== */
.contact {
    padding: 60px 0 80px;
    text-align: center;
}

.contact .section-title {
    font-family: 'Fira Sans Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-size: 2.2rem;
}

.contact p {
    margin-bottom: 8px;
}

.contact a {
    color: #4ea8ff;
    text-decoration: none;
    transition: color 0.2s;
}

.contact a:hover {
    color: #7dc4ff;
    text-decoration: underline;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.modal-content video {
    width: 100%;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 0.7;
}

/* ===== ANIMATIONS ===== */
.anim-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s, transform 0.6s;
}

.anim-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .intro-quote {
        font-size: 1rem;
    }

    .banner-video-wrap {
        aspect-ratio: 16 / 9;
    }

    .banner-content {
        top: 55%;
    }

    .name-first {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    .name-last {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .tagline-row {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 12px;
    }

    .tagline-sep {
        width: 12px;
    }

    .tagline-item {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

   .banner-hint {
    padding: 10px 0 0;
    font-size: 0.55rem;
}

    .about-section.open {
        max-height: 800px;
    }

    .about-block {
        padding: 20px 16px;
    }

    .about-block p {
        font-size: 0.82rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}