/* ===== CSS Variables ===== */
:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    transition: background var(--transition);
}

.nav.scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.nav-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 48px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--black);
}

/* Hero Background Video */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 2s ease, filter 3s ease;
}

.hero-video-wrapper.visible {
    opacity: 0.4;
    filter: blur(4px);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.hero-logo img {
    height: 80px;
    width: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.hero-tagline {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--gray-400);
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.hero-scroll span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gray-500), transparent);
    animation: scrollPulse 2s ease infinite;
}

/* Hero Background Sparks */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.forge-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
}

.spark-1 {
    top: 30%;
    left: 20%;
    animation: spark 4s ease infinite;
}

.spark-2 {
    top: 50%;
    right: 25%;
    animation: spark 4s ease 1.5s infinite;
}

.spark-3 {
    bottom: 35%;
    left: 40%;
    animation: spark 4s ease 3s infinite;
}

/* ===== Section Label ===== */
.section-label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ===== About Section ===== */
.about {
    padding: 160px 0;
    background: var(--gray-900);
}

.about-headline {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.2;
    max-width: 800px;
    margin-bottom: 48px;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-bottom: 80px;
}

.about-content p {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.8;
}

.about-services {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.service {
    padding: 16px 32px;
    border: 1px solid var(--gray-700);
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.service:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* ===== Work Section ===== */
.work {
    padding: 160px 0 0;
    background: var(--black);
}

.work-header {
    text-align: center;
    margin-bottom: 80px;
}

.work-header .section-label {
    margin-bottom: 16px;
}

.work-headline {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    margin-bottom: 24px;
}

.work-intro {
    font-size: 18px;
    color: var(--gray-500);
    font-weight: 300;
}

/* Video Showcase - Vertical Stack */
.work-showcase {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.showcase-item {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.showcase-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Video Wrapper with Frame */
.showcase-video-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

.showcase-video {
    position: relative;
    padding-bottom: 56.25%;
    background: var(--gray-900);
    overflow: hidden;
}

.showcase-video::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--gray-800);
    pointer-events: none;
    z-index: 2;
}

.showcase-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Decorative Frame Corners */
.showcase-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.showcase-frame::before,
.showcase-frame::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--white);
    border-style: solid;
    opacity: 0.3;
    transition: opacity var(--transition);
}

.showcase-frame::before {
    top: -12px;
    left: 36px;
    border-width: 1px 0 0 1px;
}

.showcase-frame::after {
    bottom: -12px;
    right: 36px;
    border-width: 0 1px 1px 0;
}

.showcase-item:hover .showcase-frame::before,
.showcase-item:hover .showcase-frame::after {
    opacity: 0.6;
}

/* Video Info */
.showcase-info {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 48px 100px;
}

.showcase-number {
    font-size: 72px;
    font-weight: 200;
    line-height: 1;
    color: var(--gray-800);
    font-variant-numeric: tabular-nums;
}

.showcase-details {
    padding-top: 8px;
}

.showcase-details h3 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.showcase-type {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
    padding: 6px 12px;
    border: 1px solid var(--gray-700);
    margin-bottom: 16px;
}

.showcase-desc {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 500px;
}

/* Divider between videos */
.showcase-item:not(:last-child)::after {
    content: '';
    display: block;
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--gray-700), transparent);
    margin: 0 auto;
}

/* ===== Team Section ===== */
.team {
    padding: 160px 0 0;
    background: var(--gray-900);
}

.team-header {
    text-align: center;
    margin-bottom: 80px;
}

.team-header .section-label {
    margin-bottom: 16px;
}

.team-headline {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    margin-bottom: 24px;
}

.team-intro {
    font-size: 18px;
    color: var(--gray-500);
    font-weight: 300;
}

/* Team Showcase - Profile Cards */
.team-showcase {
    display: flex;
    flex-direction: column;
}

.profile-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.profile-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate layout for every other card */
.profile-card--reverse {
    direction: rtl;
}

.profile-card--reverse > * {
    direction: ltr;
}

/* Profile Image */
.profile-image-wrapper {
    position: relative;
    background: var(--gray-800);
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.profile-card:hover .profile-image img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.profile-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
}

.profile-image--placeholder span {
    font-size: 120px;
    font-weight: 200;
    color: var(--gray-700);
}

.profile-number {
    position: absolute;
    bottom: 32px;
    left: 32px;
    font-size: 120px;
    font-weight: 200;
    line-height: 1;
    color: var(--white);
    opacity: 0.1;
    font-variant-numeric: tabular-nums;
}

.profile-card--reverse .profile-number {
    left: auto;
    right: 32px;
}

/* Profile Content */
.profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    background: var(--black);
}

.profile-header {
    margin-bottom: 32px;
}

.profile-header h3 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.profile-role {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-500);
    padding: 8px 16px;
    border: 1px solid var(--gray-700);
}

.profile-bio {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.profile-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-highlights span {
    font-size: 13px;
    color: var(--gray-500);
    padding: 8px 16px;
    background: var(--gray-900);
    border-radius: 2px;
}

/* Large screen constraints for team */
@media (min-width: 2000px) {
    .profile-card {
        max-width: 1800px;
        margin: 0 auto;
        grid-template-columns: 1fr 1fr;
        min-height: 500px;
    }

    .profile-image-wrapper {
        max-height: 500px;
        min-height: 500px;
    }

    .profile-image img {
        object-position: center top;
    }

    .profile-content {
        min-height: 500px;
        padding: 60px 80px;
    }

    .profile-number {
        font-size: 100px;
    }
}

/* ===== Contact Section ===== */
.contact {
    padding: 200px 0;
    background: var(--black);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 24px;
}

.contact p {
    font-size: 18px;
    color: var(--gray-400);
    margin-bottom: 48px;
}

.contact-cta {
    display: inline-block;
    padding: 20px 48px;
    border: 1px solid var(--white);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.contact-cta:hover {
    background: var(--white);
    color: var(--black);
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--gray-800);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.footer-copy {
    font-size: 13px;
    color: var(--gray-600);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

@keyframes spark {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .showcase-video-wrapper {
        padding: 0 24px;
    }

    .showcase-info {
        padding: 32px 24px 80px;
        gap: 24px;
    }

    .showcase-number {
        font-size: 48px;
    }

    .showcase-details h3 {
        font-size: 24px;
    }

    /* Team responsive - tablet */
    .profile-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .profile-card--reverse {
        direction: ltr;
    }

    .profile-image-wrapper {
        aspect-ratio: 4/3;
    }

    .profile-content {
        padding: 48px;
    }

    .profile-number {
        font-size: 80px;
        bottom: 24px;
        left: 24px;
    }

    .profile-card--reverse .profile-number {
        left: 24px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 20px 24px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--black);
        padding: 24px;
        gap: 24px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-logo img {
        height: 60px;
    }

    .about,
    .contact {
        padding: 100px 0;
    }

    .work,
    .team {
        padding: 100px 0 0;
    }

    .work-header,
    .team-header {
        margin-bottom: 48px;
    }

    .showcase-video-wrapper {
        padding: 0 16px;
    }

    .showcase-frame::before,
    .showcase-frame::after {
        display: none;
    }

    .showcase-info {
        flex-direction: column;
        padding: 24px 16px 60px;
        gap: 16px;
    }

    .showcase-number {
        font-size: 36px;
    }

    .showcase-details {
        padding-top: 0;
    }

    .showcase-details h3 {
        font-size: 20px;
    }

    .showcase-desc {
        font-size: 14px;
    }

    .showcase-item:not(:last-child)::after {
        height: 48px;
    }

    /* Team mobile */
    .profile-image-wrapper {
        aspect-ratio: 1;
    }

    .profile-content {
        padding: 32px 24px 48px;
    }

    .profile-header h3 {
        font-size: 28px;
    }

    .profile-number {
        font-size: 60px;
        bottom: 16px;
        left: 16px;
    }

    .profile-bio {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .profile-highlights {
        gap: 8px;
    }

    .profile-highlights span {
        font-size: 11px;
        padding: 6px 12px;
    }

    .profile-image--placeholder span {
        font-size: 80px;
    }

    .about-services {
        flex-direction: column;
    }

    .service {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
