/* ═════════════════════════════════════════════════════════════
   LA DESIGNICA - MODERNIZED STYLESHEET
   Performance-optimized, mobile-first, accessible
   ═════════════════════════════════════════════════════════════ */

/* Google Fonts - Optimized Load */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;1,400&display=swap');

/* ═════════════════════════════════════════════════════════════
   ROOT & VARIABLES
   ═════════════════════════════════════════════════════════════ */

:root {
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    /* Upgrade heading to serif for luxury */
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
    /* Technical blueprint font */

    /* Animations */
    --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --easing-fast: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    --space-5xl: 120px;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 900;
    --z-modal: 1000;

    /* Custom Colors */
    --bg-beige-gradient: linear-gradient(135deg, #F9F8F4 0%, #F0EFE9 100%);
    --border-gold: #C5A059;
    --primary: #C5A059;
    /* Ensures cursor and highlights are gold */
    --bg-dark: #111111;
}

/* Light Theme (Default) */
.theme-light {
    --bg: #F8FBFB;
    /* Matched to logo background */
    --text: #111111;
    /* Actual black for highest contrast */
    --text-muted: #333333;
    /* Darker grey for easier reading */
    --text-light: #555555;
    --border: rgba(0, 0, 0, 0.12);
    --surface: #F8FBFB;
    --surface-hover: #F0F4F4;
    --accent: #111111;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
}

/* Dark Theme */
.theme-dark {
    --bg: #0D0D0D;
    --text: #F5F5F5;
    --text-muted: rgba(245, 245, 245, 0.5);
    --text-light: rgba(245, 245, 245, 0.3);
    --border: rgba(255, 255, 255, 0.08);
    --surface: #141414;
    --surface-hover: #1F1F1F;
    --accent: #F5F5F5;
    --success: #34D399;
    --error: #F87171;
    --warning: #FBBF24;
}

/* ═════════════════════════════════════════════════════════════
   RESET & BASE STYLES
   ═════════════════════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    /* Increased from 300 for senior friendliness */
    font-size: 16px;
    /* Slightly larger base size */
    transition: background var(--transition), color var(--transition);
    position: relative;
}

/* Focus Styles for Accessibility */
:focus {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--border-gold);
    color: white;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--text);
    color: var(--bg);
    padding: 8px 16px;
    text-decoration: none;
    z-index: var(--z-modal);
}

.skip-link:focus {
    top: 0;
}

/* ═════════════════════════════════════════════════════════════
   SPLASH SCREEN
   ═════════════════════════════════════════════════════════════ */

.splash-screen {
    position: fixed;
    inset: 0;
    background: #F8FBFB;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    width: min(60vw, 300px);
    height: auto;
    transition: transform 3.5s ease-in-out, opacity 2.5s ease-in;
}

.splash-screen.zoom-out .splash-logo {
    transform: scale(30);
    opacity: 0;
}

/* Removed pulse animation for cleaner zoom effect */

/* Agein - Tab Styles */
.origin-controls {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.origin-filters {
    display: flex;
    gap: var(--space-md);
}

.origin-tab {
    padding: 12px 24px;
    /* Slightly larger click area */
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 15px;
    /* Slightly larger text */
    letter-spacing: 0.05em;
    cursor: pointer;
    position: relative;
    opacity: 0.6;
    transition: all 0.3s ease;
    color: var(--text);
}

.origin-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    /* Thicker underline */
    background: linear-gradient(90deg, #C5A059, #E5C585);
    /* Gold gradient */
    transform: scaleX(0);
    transform-origin: center;
    /* Expand from center */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.origin-tab:hover {
    opacity: 1;
    color: var(--border-gold);
}

.origin-tab.active {
    opacity: 1;
    font-weight: 500;
    color: var(--text);
}

.origin-tab.active::after {
    transform: scaleX(1);
    background: var(--border-gold);
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: transparent;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    padding: var(--space-xl);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
    /* Above mobile nav */
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn .bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: transform 0.4s var(--easing-fast), opacity 0.4s ease;
}

.mobile-menu-btn .bar-1 {
    top: 6px;
}

.mobile-menu-btn .bar-2 {
    bottom: 6px;
}

.mobile-menu-btn.active .bar-1 {
    transform: translateY(5px) rotate(45deg);
}

.mobile-menu-btn.active .bar-2 {
    transform: translateY(-5px) rotate(-45deg);
}

.main-nav.hidden {
    transform: translateY(-100%);
}

.main-nav.scrolled {
    background: rgba(248, 251, 251, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Extremely subtle border */
    padding: var(--space-md) var(--space-xl);
    box-shadow: none;
    /* Removed heavy shadow for elegance */
}

/* Index View Toggle Button */
.index-btn {
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
    padding: 8px 16px;
}

.index-btn:hover,
.index-view-active .index-btn {
    color: var(--text);
}

/* Index View Active Styles */
.index-view-active .project-grid {
    grid-template-columns: 1fr;
    gap: 0;
}

.index-view-active .project-card {
    aspect-ratio: auto;
    margin: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: var(--space-lg) 0;
}

.index-view-active .project-card-header {
    display: none;
    /* Hide images globally */
}

.index-view-active .project-card::after {
    display: none;
    /* Remove blueprint overlay in index view */
}

.index-view-active .project-card::before {
    content: attr(data-origin) ' / ' attr(data-category);
    position: static;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    opacity: 1;
    border: none;
    display: block;
    margin-bottom: var(--space-xs);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--easing-fast);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: all 0.3s;
}

.main-nav.scrolled .logo-img {
    height: 40px;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

/* Removed invert to preserve rose gold colors */
.theme-dark .logo-img {
    filter: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    /* Bold for readability */
    font-size: 17px;
    /* Larger size */
    letter-spacing: 0.02em;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--border-gold);
    border-color: var(--border-gold);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    padding: 0;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--text);
    transform: rotate(20deg);
}

.theme-toggle:active {
    transform: rotate(20deg) scale(0.95);
}

/* ═════════════════════════════════════════════════════════════
   LAYOUT & STRUCTURE
   ═════════════════════════════════════════════════════════════ */

.container,
.hero-container,
.philosophy-container,
.founder-container,
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-5xl);
    /* Massive padding for structural void */
}

section {
    padding: var(--space-5xl) 0;
    margin: var(--space-4xl) 0;
    /* Add massive structural vertical space */
}

main {
    overflow: hidden;
}

/* ═════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═════════════════════════════════════════════════════════════ */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.giant-label {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-xl);
}

.small-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    display: block;
    font-weight: 400;
    transition: color 0.3s;
}

p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0;
}

/* ═════════════════════════════════════════════════════════════
   HERO SECTION
   ═════════════════════════════════════════════════════════════ */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-text {
    max-width: 520px;
}

.hero-img {
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3);
    transition: filter 1s var(--transition), transform 1.5s var(--transition);
}

.section-observe.in-view .hero-img img {
    filter: grayscale(0);
    transform: scale(1.02);
}

.line-h {
    height: 1px;
    background: var(--border);
    margin: var(--space-2xl) 0;
    width: 0;
    transition: width 1s var(--transition);
}

.section-observe.in-view .line-h {
    width: 80px;
}

/* Mask Animation (Text reveal) */
.mask {
    overflow: hidden;
    display: block;
}

.mask span {
    display: block;
    transform: translateY(110%);
    transition: transform 0.8s var(--transition);
}

.section-observe.in-view .mask span {
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

/* Reveal Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s, transform 0.8s var(--transition);
}

.section-observe.in-view .reveal-up {
    opacity: 1;
    transform: translateY(0);
}

/* Image Skeleton Loader */
.image-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            var(--surface) 0%,
            var(--surface-hover) 50%,
            var(--surface) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    opacity: 0;
    pointer-events: none;
}

.hero-img img:not([src])~.image-skeleton,
.project-thumb:not([src])~.image-skeleton {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

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

/* ═════════════════════════════════════════════════════════════
   PORTFOLIO SECTION
   ═════════════════════════════════════════════════════════════ */

.portfolio-section {
    padding-bottom: var(--space-5xl);
}

.portfolio-header {
    margin-bottom: var(--space-3xl);
}

.portfolio-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

.filter-controls {
    margin-bottom: var(--space-3xl);
    background: transparent;
    padding: var(--space-xl);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.portfolio-filters {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
}

.filter-tab {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Very subtle default border */
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: var(--font-body);
    border-radius: 50px;
    /* Pill shape for modern look */
    position: relative;
    overflow: hidden;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.filter-tab:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.filter-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    /* Border width */
    border-radius: 50px;
    background: linear-gradient(90deg, #C5A059, #E5C585, #C5A059);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 200% 100%;
}

.filter-tab:hover {
    color: var(--border-gold);
    border-color: transparent;
    transform: translateY(-2px);
}

.filter-tab:hover::before {
    opacity: 1;
    animation: borderFlow 2s linear infinite;
}

.filter-tab.active {
    background: transparent;
    color: var(--border-gold);
    border-color: transparent;
    font-weight: 500;
}

.filter-tab.active::before {
    opacity: 1;
    background: var(--border-gold);
    /* Solid gold for active */
}

/* Remove old pseudo-elements */
.filter-tab::after {
    display: none;
}

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

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

.subcategory-filters {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    animation: slideDown 0.3s var(--easing-fast);
    flex-wrap: wrap;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.sub-filter {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* very subtle */
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    border-radius: 20px;
    user-select: none;
}

.sub-filter:hover {
    color: var(--border-gold);
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-1px);
}

.sub-filter.active {
    color: white;
    background: var(--border-gold);
    border-color: var(--border-gold);
    font-weight: 500;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.project-card {
    border: none;
    box-shadow: none;
    background: transparent;
    aspect-ratio: 4 / 5;
    /* More elegant editorial aspect ratio */
    cursor: pointer;
    overflow: hidden;
    position: relative;
    /* Create an asymmetrical structural feel in the grid */
    margin: 0;
}

.project-card:nth-child(even) {
    margin-top: var(--space-4xl);
    /* Staggered grid */
}

/* Technical Blueprint X-Ray Hover Overlay */
.project-card::after {
    content: 'SCOPE: TURNKEY \A MAT: CONCRETE, TIMBER \A TOLERANCE: ±2MM \A STATUS: COMPLETED';
    white-space: pre-wrap;
    position: absolute;
    inset: 0;
    padding: var(--space-lg);
    background: rgba(13, 33, 63, 0.85);
    /* Blueprint blue */
    color: #8CE8FF;
    /* Cyan technical text */
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    backdrop-filter: blur(4px);
    mix-blend-mode: hard-light;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px dashed #8CE8FF;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 3;
    pointer-events: none;
}

.project-card:hover::after,
.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: none;
    /* Removed the popup float, luxury wants solid gravity */
}

.project-card:focus-within {
    outline: 2px solid var(--primary);
    /* Matched to gold branding */
    outline-offset: 2px;
}

.project-card-header {
    padding: 0;
    height: 100%;
    position: relative;
    background: #f9f9f9;
}

.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), filter 0.8s;
}

.project-card:hover .project-thumb {
    /* Transforms to a faded/cyan tinted image underneath the overlay */
    filter: grayscale(1) contrast(1.5) brightness(0.7);
    transform: scale(1.05);
}

.project-card-info {
    flex: 1;
}

.project-card-info .small-tag {
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Standardized styles for cards applied globally. Specific origin overrides removed. */

/* Project card header background for placeholders */

.delete-asset-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.project-card:hover .delete-asset-btn {
    opacity: 1;
}

.delete-asset-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.origin-contractor .project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.origin-contractor .project-card:hover .project-thumb {
    transform: scale(1.08);
}

/* Card arrow removed from contractor origin */
.origin-contractor .card-arrow {
    display: none;
}

.origin-contractor .project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.origin-contractor .project-card:hover {
    box-shadow: 0 12px 30px rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.origin-contractor .project-card:hover::after {
    opacity: 0.4;
}

.origin-contractor .project-card:hover .card-arrow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.8);
}

/* Upload Button styling */
.contractor-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--space-xl);
}

.global-upload-btn {
    padding: 12px 24px;
    background: var(--border-gold);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.global-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.global-upload-btn ion-icon {
    font-size: 20px;
}

.project-card-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-arrow {
    font-size: 20px;
    color: var(--text-muted);
    transition: all var(--easing-fast);
    flex-shrink: 0;
}

.project-card:hover .card-arrow {
    color: var(--text);
    transform: translateX(6px);
}

.upload-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all var(--easing-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    position: relative;
    margin-left: auto;
    /* Push to right */
    opacity: 0.6;
}

.upload-btn:hover {
    color: var(--text);
    background: var(--surface);
    border-color: var(--text);
    opacity: 1;
    transform: scale(1.1);
}

.project-card:hover .upload-btn {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* ═════════════════════════════════════════════════════════════
   LIGHTBOX / MODAL
   ═════════════════════════════════════════════════════════════ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal-backdrop);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
    overflow-y: hidden;
    overflow-x: hidden;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    max-height: 100vh;
    padding: var(--space-lg) var(--space-lg) var(--space-md) var(--space-lg);
    animation: fadeInScale 0.4s var(--easing-fast);
    position: relative;
    z-index: 1;
    gap: var(--space-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lightbox-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: white;
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--easing-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: var(--z-modal);
    flex-shrink: 0;
}

.lightbox-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    width: 100%;
    padding: 0;
    animation: fadeInScale 0.4s var(--easing-fast);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    flex-shrink: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-image-container {
    max-width: 100%;
    max-height: 75vh;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    transition: transform 0.3s var(--easing-fast);
}

.lightbox-image-container img:hover {
    transform: scale(1.01);
}

.lightbox-nav {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--easing-fast);
    flex-shrink: 0;
}

.lightbox-nav:hover {
    background: white;
    color: black;
    transform: scale(1.1);
}

.lightbox-nav:active {
    transform: scale(0.95);
}

.lightbox-info {
    position: static;
    text-align: center;
    color: white;
    animation: fadeInDown 0.5s var(--easing-fast);
    width: 100%;
    max-width: 100%;
    margin: 0;

    /* Premium background with gradient overlay */
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    padding: var(--space-lg) var(--space-md);

    /* No scrolling needed */
    overflow: visible;
    flex-shrink: 0;

    /* Smooth transitions */
    scroll-behavior: smooth;
}

.lightbox-info::-webkit-scrollbar {
    width: 4px;
}

.lightbox-info::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox-info::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.lightbox-info::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

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

@keyframes slideUpInfo {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.lightbox-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 400;
    font-style: italic;
    margin: 0 0 4px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}

/* Subtitle - smaller, elegant styling */
.lightbox-info p:nth-of-type(1) {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 4px 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Description text - readable and elegant */
.lightbox-info p:nth-of-type(2) {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 8px 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-height: none;
    overflow-y: visible;
    padding: 0;
    font-weight: 300;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#lightbox-counter {
    font-size: clamp(0.65rem, 1.2vw, 0.75rem);
    letter-spacing: 0.15em;
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    display: block;
    font-weight: 300;
    text-transform: uppercase;
}

/* ═════════════════════════════════════════════════════════════
   PHILOSOPHY / ABOUT SECTION
   ═════════════════════════════════════════════════════════════ */

.philosophy-section {
    background: var(--surface);
}

#about .hero-grid {
    gap: var(--space-5xl);
}

#about h3.small-tag {
    opacity: 1;
    color: var(--text);
}

/* ═════════════════════════════════════════════════════════════
   FAQ SECTION
   ═════════════════════════════════════════════════════════════ */

.faq-section {
    padding: var(--space-5xl) 0;
}

.faq-header {
    margin-bottom: var(--space-3xl);
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all var(--easing-fast);
}

.faq-item:hover {
    border-color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    cursor: pointer;
    user-select: none;
    font-weight: 400;
    color: var(--text);
    transition: color var(--easing-fast);
}

.faq-question:hover {
    color: var(--text);
}

.faq-question::after {
    content: '▼';
    margin-left: var(--space-md);
    transition: transform var(--easing-fast);
    font-size: 12px;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--border);
    animation: slideDown 0.3s var(--easing-fast);
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ═════════════════════════════════════════════════════════════
   FOUNDER SECTION
   ═════════════════════════════════════════════════════════════ */

.founder-section {
    padding: var(--space-5xl) 0;
    background: var(--bg);
}

.founder-container {
    max-width: 1000px;
    margin: 0 auto;
}

.founder-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    /* Fixed large size for founder */
    gap: var(--space-4xl);
    align-items: center;
    text-align: left;
}

.founder-image {
    width: 400px !important;
    /* Force large size */
    height: 500px !important;
    border-radius: 12px !important;
    /* Rectangular/Soft corners for professional look */
    object-fit: cover !important;
    filter: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.founder-text {
    max-width: 600px;
}

.bio-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    color: var(--text);
}

.founder-section .giant-label {
    margin-bottom: var(--space-2xl);
    text-align: center;
}

/* ═════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═════════════════════════════════════════════════════════════ */

.contact-section {
    position: relative;
    padding-bottom: var(--space-5xl);
    background-color: var(--bg-dark);
    color: white;
    margin-top: 0;
    padding-top: var(--space-5xl);
}

.contact-container {
    padding-top: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.contact-section h2,
.contact-section h3,
.contact-section h4 {
    color: white;
}

.contact-section p,
.contact-section span,
.contact-section label {
    color: rgba(255, 255, 255, 0.7);
}

.contact-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-section a:hover {
    color: var(--border-gold);
}

.contact-section .small-tag {
    color: rgba(255, 255, 255, 0.5);
}

.contact-section .line-h {
    background: rgba(255, 255, 255, 0.1);
}

.contact-section input,
.contact-section textarea {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.contact-section input:focus,
.contact-section textarea:focus {
    border-color: var(--border-gold);
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-5xl);
    align-items: start;
    margin-bottom: var(--space-5xl);
}

.contact-left .giant-label {
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    transition: all var(--easing-fast);
    text-decoration: none;
    background: transparent;
    border: none;
}

.social-icon:hover {
    color: var(--border-gold);
    transform: translateY(-4px);
    background: transparent;
    border: none;
}

/* Contact Form */
/* Contact Form Removed */

.form-message {
    padding: var(--space-md);
    border-radius: 4px;
    display: none;
    font-size: 14px;
    margin-top: var(--space-md);
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

.submit-btn {
    align-self: flex-start;
    padding: var(--space-md) var(--space-xl);
    background: var(--text);
    color: var(--bg);
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--easing-fast);
    border-radius: 4px;
    font-weight: 400;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.site-footer {
    padding: var(--space-lg) 0;
}

#contact .line-h {
    width: 100%;
    margin: var(--space-5xl) 0 var(--space-md);
    opacity: 0.5;
}

/* ═════════════════════════════════════════════════════════════
   LOADING INDICATOR
   ═════════════════════════════════════════════════════════════ */

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--text);
    width: 0;
    transition: width 0.3s ease;
    z-index: var(--z-modal);
}

.loading-indicator.active {
    width: 100%;
}

/* ═════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ═════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {

    .main-nav,
    .container,
    .hero-container,
    .philosophy-container,
    .founder-container,
    .contact-container {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .hero-text {
        order: 1;
    }

    .hero-img {
        order: 2;
        max-width: 400px;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    #about .hero-grid {
        gap: var(--space-3xl);
    }

    .lightbox-image-container {
        max-width: 100%;
        max-height: 70vh;
    }

    .lightbox-image-container img {
        max-height: 70vh;
    }

    .founder-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }

    .founder-image {
        width: 100% !important;
        max-width: 350px;
        height: auto !important;
        margin: 0 auto;
    }

    .founder-text {
        max-width: 100%;
        margin: 0 auto;
    }

    .bio-text {
        font-size: 16px;
    }

    .lightbox-info {
        padding: var(--space-md);
    }

    .lightbox-info h2 {
        font-size: clamp(1rem, 2.5vw, 1.4rem);
        margin-bottom: 4px;
    }

    .lightbox-info p:nth-of-type(1) {
        margin-bottom: var(--space-sm);
        font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    }

    .lightbox-info p:nth-of-type(2) {
        margin-bottom: var(--space-md);
        font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .main-nav,
    .container,
    .hero-container,
    .philosophy-container,
    .founder-container,
    .contact-container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }

    section {
        padding: var(--space-3xl) 0;
    }

    .nav-right {
        gap: 0;
        /* Let mobile menu button align right naturally */
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(248, 251, 251, 0.98);
        backdrop-filter: blur(12px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-2xl);
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-family: var(--font-heading);
        font-size: 2.5rem;
        color: var(--text);
    }

    .logo-img {
        height: 44px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .giant-label {
        font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    }

    .portfolio-filters {
        gap: var(--space-xs);
    }

    .filter-controls {
        padding: var(--space-lg);
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 11px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .project-card-header {
        display: block;
        padding: 0;
        aspect-ratio: 1/1;
    }

    .project-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .project-card::before {
        font-size: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .lightbox-inner {
        padding: var(--space-md);
        gap: var(--space-sm);
        max-height: 100vh;
    }

    .lightbox-content {
        padding: 0;
        gap: var(--space-sm);
        flex-direction: row;
        width: 100%;
        max-width: 100%;
    }

    .lightbox-nav {
        display: none;
    }

    .lightbox-info {
        position: static;
        bottom: auto;
        padding: var(--space-md) var(--space-md) var(--space-sm) var(--space-md);
        border-radius: 4px;
        max-height: none;
        overflow: visible;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .lightbox-image-container {
        border-radius: 4px;
        max-width: 100%;
        max-height: 60vh;
    }

    .lightbox-image-container img {
        max-height: 60vh;
    }

    .lightbox-info h2 {
        font-size: clamp(1rem, 3vw, 1.3rem);
        margin-bottom: var(--space-sm);
        line-height: 1.2;
    }

    .lightbox-info p:nth-of-type(1) {
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
        margin-bottom: var(--space-xs);
    }

    .lightbox-info p:nth-of-type(2) {
        font-size: clamp(0.75rem, 2vw, 0.9rem);
        margin-bottom: var(--space-sm);
        line-height: 1.4;
    }

    #lightbox-counter {
        font-size: 0.65rem;
        margin-top: var(--space-xs);
    }

    .contact-grid {
        gap: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }

    .main-nav,
    .container,
    .hero-container,
    .philosophy-container,
    .founder-container,
    .contact-container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .main-nav {
        padding: var(--space-md);
    }

    .logo-img {
        height: 40px;
    }

    section {
        padding: var(--space-2xl) 0;
    }

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

    .giant-label {
        font-size: clamp(1.1rem, 2vw, 1.5rem);
    }

    .hero-grid {
        gap: var(--space-2xl);
    }

    .hero-img {
        max-width: 100%;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .project-card-header {
        display: block;
        padding: 0;
        aspect-ratio: 1/1;
    }

    .project-thumb {
        width: 100%;
        height: 100%;
    }

    .portfolio-filters,
    .subcategory-filters {
        gap: var(--space-xs);
    }

    .filter-tab,
    .sub-filter {
        padding: 6px 12px;
        font-size: 10px;
    }

    .lightbox {
        padding: var(--space-lg);
    }

    .lightbox-content {
        padding: 0;
        gap: var(--space-sm);
        flex-direction: column-reverse;
        max-height: none;
    }

    .lightbox-image-container {
        max-width: 100%;
        max-height: 40vh;
        border-radius: 4px;
    }

    .lightbox-image-container img {
        max-height: 40vh;
    }

    .lightbox-nav {
        display: none;
    }

    .lightbox-info {
        position: relative;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        padding: var(--space-md) var(--space-sm) var(--space-sm) var(--space-sm);
        border-radius: 4px;
        max-height: none;
        overflow: visible;
        background: linear-gradient(135deg,
                rgba(0, 0, 0, 0.9) 0%,
                rgba(0, 0, 0, 0.85) 50%,
                rgba(0, 0, 0, 0.9) 100%);
    }

    .lightbox-info h2 {
        font-size: clamp(0.95rem, 2.8vw, 1.2rem);
        margin-bottom: var(--space-xs);
        line-height: 1.1;
    }

    .lightbox-info p:nth-of-type(1) {
        font-size: clamp(0.65rem, 1.5vw, 0.75rem);
        margin-bottom: var(--space-xs);
        line-height: 1.3;
    }

    .lightbox-info p:nth-of-type(2) {
        font-size: clamp(0.7rem, 1.8vw, 0.85rem);
        margin-bottom: var(--space-sm);
        line-height: 1.3;
    }

    #lightbox-counter {
        font-size: 0.6rem;
        margin-top: var(--space-xs);
    }

    .lightbox-close {
        top: var(--space-md);
        right: var(--space-md);
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .project-card::before {
        font-size: 12px;
        padding: var(--space-sm);
    }

    .social-links {
        flex-direction: row;
    }

    .faq-question,
    .faq-answer {
        padding: var(--space-md);
    }
}

/* ═════════════════════════════════════════════════════════════
   HIGH CONTRAST MODE (ACCESSIBILITY)
   ═════════════════════════════════════════════════════════════ */

@media (prefers-contrast: more) {
    .filter-tab {
        border-width: 2px;
    }

    .filter-tab.active {
        text-decoration: underline;
    }

    .link,
    a {
        text-decoration: underline;
    }
}

/* ═════════════════════════════════════════════════════════════
   REDUCED MOTION (ACCESSIBILITY)
   ═════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═════════════════════════════════════════════════════════════
   PRINT STYLES
   ═════════════════════════════════════════════════════════════ */

@media print {

    nav,
    .filter-controls,
    .lightbox,
    .theme-toggle,
    .social-links {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
        padding: 40px 0;
    }

    a {
        text-decoration: underline;
    }
}

/* ═════════════════════════════════════════════════════════════
   FOUNDER SECTION
   ═════════════════════════════════════════════════════════════ */

.founder-section {
    text-align: left;
    background: var(--surface);
    padding: var(--space-5xl) 0;
}

.founder-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
    .founder-content {
        grid-template-columns: 300px 1fr;
        align-items: center;
    }
}

.founder-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    filter: grayscale(0.2);
    transition: filter var(--transition);
}

.founder-image:hover {
    filter: grayscale(0);
}

.bio-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.founder-text .line-h {
    margin: var(--space-xl) 0;
}

/* ═════════════════════════════════════════════════════════════
   PORTFOLIO ORIGIN FILTERS
   ═════════════════════════════════════════════════════════════ */

.origin-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.origin-tab {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--easing-fast);
    padding: var(--space-sm) var(--space-lg);
    position: relative;
    letter-spacing: -0.01em;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.origin-tab:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.origin-tab:hover {
    color: var(--text);
}

.origin-tab.active {
    color: var(--text);
    font-weight: 500;
}

.origin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    /* Matches padding + border offset */
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    /* Matched to gold branding */
    animation: slideIn 0.3s var(--easing-fast);
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ═════════════════════════════════════════════════════════════
   LUXURY MINIMALIST: MICRO-INTERACTIONS & STRUCTURAL VOIDS
   ═════════════════════════════════════════════════════════════ */

/* Interactive Background Canvas */
.interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--transition);
}

/* Custom Magnetic Cursor */
body.has-custom-cursor {
    cursor: none;
}

body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .project-card,
body.has-custom-cursor .filter-tab,
body.has-custom-cursor .origin-tab,
body.has-custom-cursor input,
body.has-custom-cursor textarea {
    cursor: none;
}

.magnetic-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    /* Always gold dot */
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    /* Removed mix-blend-mode to avoid obscure inversion */
    transition: width 0.3s var(--easing-bounce), height 0.3s var(--easing-bounce), background-color 0.3s, border 0.3s;
    will-change: transform;
    opacity: 0;
}

.theme-dark .magnetic-cursor {
    background-color: var(--primary);
}

.magnetic-cursor.hover {
    width: 32px;
    /* Shrunk substantially to avoid obscuring text */
    height: 32px;
    background-color: transparent;
    border: 1.5px solid var(--primary);
    margin-left: -10px;
    /* Offset for new size */
    margin-top: -10px;
}