/* ========================================
   DESIGN TOKENS & CSS VARIABLES
   ======================================== */

:root {
    /* Color Palette - Dark Mode Minimalist */
    --color-charcoal: #1a1a1a;
    --color-charcoal-light: #2a2a2a;
    --color-charcoal-dark: #0f0f0f;
    --color-off-white: #f5f5f5;
    --color-gray: #808080;
    --color-gray-light: #a0a0a0;
    --color-accent: #00ff88;
    /* Acid Green */
    --color-accent-dim: rgba(0, 255, 136, 0.1);
    --color-accent-glow: rgba(0, 255, 136, 0.3);

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'Space Mono', monospace;
    --font-sans: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--color-accent-glow);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-charcoal);
    color: var(--color-off-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

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

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

/* ========================================
   CUSTOM CURSOR
   ======================================== */

.custom-cursor {
    width: 12px;
    height: 12px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, background-color 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

a:hover~.custom-cursor,
button:hover~.custom-cursor {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--color-accent);
}

/* Mobile - Hide custom cursor */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .custom-cursor,
    .custom-cursor-follower {
        display: none;
    }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
}

em {
    font-style: italic;
    color: var(--color-accent);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-gray-light);
    font-weight: 300;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transition: left var(--transition-smooth);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background-color: transparent;
    border-color: var(--color-off-white);
    color: var(--color-off-white);
}

.btn-primary:hover {
    color: var(--color-charcoal);
    border-color: var(--color-accent);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-charcoal);
}

.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-charcoal);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   NAVIGATION
   ======================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0;
    cursor: none;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1;
}

.logo-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    line-height: 1;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition-fast);
    cursor: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: 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 Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--color-off-white);
    transition: all var(--transition-smooth);
}

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

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-link {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Hero Fallback - Animated Gradient if video fails/loads late */
    background: linear-gradient(-45deg, #0f0f0f, #1a1a1a, #001f10, #1a1a1a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(26, 26, 26, 0.3) 0%,
            rgba(26, 26, 26, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    padding: 0 var(--spacing-md);
}

.hero-title {
    margin-bottom: var(--spacing-md);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-emphasis {
    color: var(--color-accent);
    font-size: clamp(4rem, 10vw, 8rem);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-gray-light);
    z-index: 1;
}

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

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* ========================================
   FEATURED WORK SECTION
   ======================================== */

.featured-work {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-charcoal-dark);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.featured-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    border-radius: 4px;
    transition: transform var(--transition-smooth);
}

.featured-item:hover {
    transform: translateY(-10px);
}

.featured-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all var(--transition-smooth);
}

.featured-item:hover .featured-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top,
            rgba(26, 26, 26, 0.95) 0%,
            transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-smooth);
}

.featured-item:hover .featured-overlay {
    transform: translateY(0);
    opacity: 1;
}

.featured-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-size: 1.75rem;
    color: var(--color-off-white);
}

/* ========================================
   PHILOSOPHY SECTION
   ======================================== */

.philosophy-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-charcoal);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.philosophy-text {
    padding-right: var(--spacing-md);
}

.philosophy-title {
    margin-bottom: var(--spacing-md);
    color: var(--color-off-white);
}

.philosophy-description {
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.link-arrow {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    position: relative;
    display: inline-block;
    padding-right: 2rem;
    transition: padding-right var(--transition-smooth);
}

.link-arrow::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: right var(--transition-smooth);
}

.link-arrow:hover {
    padding-right: 2.5rem;
}

.link-arrow:hover::after {
    right: -0.5rem;
}

.philosophy-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.philosophy-image-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
            var(--color-accent) 0%,
            transparent 50%,
            var(--color-accent) 100%);
    z-index: -1;
    opacity: 0.3;
}

.philosophy-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(30%);
    transition: filter var(--transition-smooth);
}

.philosophy-image-wrapper:hover img {
    filter: grayscale(0%);
}

@media (max-width: 968px) {
    .philosophy-content {
        grid-template-columns: 1fr;
    }

    .philosophy-text {
        padding-right: 0;
    }
}

/* ========================================
   LATEST INSIGHTS SECTION
   ======================================== */

.latest-insights {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-charcoal-light);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.insight-card {
    background-color: var(--color-charcoal);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 255, 136, 0.2);
}

.insight-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: all var(--transition-smooth);
}

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

.insight-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 255, 136, 0.9);
    color: var(--color-charcoal);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border-radius: 2px;
}

.insight-content {
    padding: var(--spacing-md);
}

.insight-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-off-white);
    transition: color var(--transition-fast);
}

.insight-card:hover .insight-title {
    color: var(--color-accent);
}

.insight-excerpt {
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.insight-link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    position: relative;
    display: inline-block;
    padding-right: 1.5rem;
}

.insight-link::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: right var(--transition-smooth);
}

.insight-link:hover::after {
    right: -0.5rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg,
            var(--color-charcoal-dark) 0%,
            var(--color-charcoal) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
            var(--color-accent-dim) 0%,
            transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    margin-bottom: var(--spacing-md);
    color: var(--color-off-white);
}

.cta-description {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   FOOTER
   ======================================== */

.main-footer {
    background-color: var(--color-charcoal-dark);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent);
}

.footer-description {
    color: var(--color-gray-light);
    line-height: 1.7;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    color: var(--color-off-white);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-gray-light);
    transition: color var(--transition-fast);
}

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

.footer-vibe-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
}

.newsletter-form input {
    padding: 0.875rem 1.25rem;
    background-color: var(--color-charcoal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-off-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border-radius: 2px;
    transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-form input::placeholder {
    color: var(--color-gray);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-gray-light);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-gray);
    font-size: 0.875rem;
}

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

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

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 568px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .featured-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
}