/* ========================================
   VAYNOIR - Ultra Premium Design System
   "Sessiz Lüks" (Quiet Luxury)
   ======================================== */

/* ----------------------------------------
   1. CSS Variables & Design Tokens
   ---------------------------------------- */
:root {
    /* Colors - The Noir Palette */
    --color-void: #000000;
    --color-obsidian: #0a0a0a;
    --color-anthracite: #1a1a1a;
    --color-charcoal: #2a2a2a;
    --color-graphite: #3a3a3a;
    --color-titanium: #8a8d8f;
    --color-silver: #b8bcc0;
    --color-champagne: #d4af37;
    --color-champagne-muted: rgba(212, 175, 55, 0.15);
    --color-white: #ffffff;
    --color-white-soft: rgba(255, 255, 255, 0.9);
    --color-white-muted: rgba(255, 255, 255, 0.6);
    --color-white-dim: rgba(255, 255, 255, 0.3);
    --color-white-whisper: rgba(255, 255, 255, 0.1);

    /* Typography - Dior Minimal */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-hero: 'Cormorant Garamond', Georgia, serif;
    --font-manifesto: 'Playfair Display', Georgia, serif;
    --font-accent: 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', -apple-system, sans-serif;
    --font-weight-thin: 400;
    --font-weight-light: 400;
    --font-weight-regular: 500;
    --font-weight-medium: 600;
    --font-weight-semibold: 700;
    --font-weight-bold: 800;

    /* Letter Spacing - The Luxury Touch */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.1em;
    --letter-spacing-wider: 0.2em;
    --letter-spacing-widest: 0.4em;

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.625rem, 0.5vw + 0.5rem, 0.75rem);
    --text-sm: clamp(0.75rem, 0.6vw + 0.6rem, 0.875rem);
    --text-base: clamp(0.875rem, 0.8vw + 0.7rem, 1rem);
    --text-lg: clamp(1rem, 1vw + 0.8rem, 1.25rem);
    --text-xl: clamp(1.25rem, 1.5vw + 1rem, 1.75rem);
    --text-2xl: clamp(1.75rem, 2.5vw + 1rem, 3rem);
    --text-3xl: clamp(2.5rem, 4vw + 1rem, 5rem);
    --text-4xl: clamp(3.5rem, 6vw + 1rem, 8rem);
    --text-hero: clamp(4rem, 10vw + 1rem, 14rem);

    /* Spacing */
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 1rem);
    --space-md: clamp(1rem, 2vw, 2rem);
    --space-lg: clamp(2rem, 4vw, 4rem);
    --space-xl: clamp(4rem, 8vw, 8rem);
    --space-2xl: clamp(6rem, 12vw, 12rem);

    /* Transitions - Luxury Timing */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --ease-magnetic: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --duration-instant: 100ms;
    --duration-fast: 200ms;
    --duration-normal: 400ms;
    --duration-slow: 600ms;
    --duration-slower: 1000ms;
    --duration-slowest: 1500ms;

    /* Z-Index Scale */
    --z-base: 0;
    --z-above: 10;
    --z-modal: 100;
    --z-overlay: 500;
    --z-cursor: 9999;
    --z-preloader: 99999;
}

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

/* Skip to Content (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--color-champagne);
    color: var(--color-void);
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    z-index: 999999;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 1rem;
}

/* ----------------------------------------
   Navigation (Fullscreen)
   ---------------------------------------- */
.menu-toggle {
    position: fixed;
    top: 2rem;
    right: 3rem;
    z-index: 1000;
    width: 40px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: transparent;
    mix-blend-mode: difference;
}

.menu-bar {
    width: 100%;
    height: 1px;
    background: var(--color-white);
    transition: transform 0.4s var(--ease-out-expo), width 0.4s var(--ease-out-expo);
}

.menu-toggle:hover .menu-bar:first-child {
    width: 70%;
}

.menu-toggle:hover .menu-bar:last-child {
    width: 100%;
}

.menu-toggle.active .menu-bar:first-child {
    transform: translateY(10px) rotate(45deg);
    width: 100%;
}

.menu-toggle.active .menu-bar:last-child {
    transform: translateY(-9px) rotate(-45deg);
    width: 100%;
}

.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease-out-quart), visibility 0.6s step-end;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s var(--ease-out-quart), visibility 0s step-start;
}

.menu-list {
    list-style: none;
    text-align: center;
}

.menu-link {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--color-white-muted);
    text-decoration: none;
    line-height: 1.1;
    transition: color 0.4s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

.menu-link:hover {
    color: var(--color-white);
}

.menu-footer {
    position: absolute;
    bottom: 3rem;
    display: flex;
    gap: 2rem;
    font-size: var(--text-xs);
    color: var(--color-white-dim);
    letter-spacing: var(--letter-spacing-widest);
}

/* ----------------------------------------
   Project Detail Modal
   ---------------------------------------- */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out-quart), visibility 0.5s step-end;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s var(--ease-out-quart), visibility 0s step-start;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--color-white);
    transition: transform 0.3s ease;
}

.close-line:first-child {
    transform: rotate(45deg);
}

.close-line:last-child {
    transform: rotate(-45deg);
}

.modal-close:hover .close-line:first-child {
    transform: rotate(135deg);
}

.modal-close:hover .close-line:last-child {
    transform: rotate(45deg);
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow-y: auto;
    padding-right: var(--space-sm);
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--color-champagne);
    border-radius: 2px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--color-obsidian);
}

.modal-header {
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-md);
}

.modal-category {
    font-size: var(--text-xs);
    letter-spacing: var(--letter-spacing-widest);
    color: var(--color-champagne);
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-xs);
}

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.modal-year {
    font-size: var(--text-sm);
    color: var(--color-white-dim);
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-white-muted);
    max-width: 60ch;
}

/* Focus States (Accessibility) */
*:focus-visible {
    outline: 2px solid var(--color-champagne);
    outline-offset: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-champagne);
    outline-offset: 4px;
}

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

body {
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
    background-color: var(--color-void);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Hide default cursor on interactive elements */
a,
button,
[role="button"] {
    cursor: none;
}

::selection {
    background: var(--color-champagne);
    color: var(--color-void);
}

img,
video {
    max-width: 100%;
    display: block;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
}

/* ----------------------------------------
   3. Custom Cursor
   ---------------------------------------- */
.cursor {
    pointer-events: none;
    position: fixed;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--color-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s var(--ease-out-expo),
        width 0.3s var(--ease-out-expo),
        height 0.3s var(--ease-out-expo);
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-white-muted);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.5s var(--ease-out-expo),
        width 0.4s var(--ease-out-expo),
        height 0.4s var(--ease-out-expo),
        border-color 0.3s ease,
        opacity 0.3s ease;
}

/* Cursor States */
body.cursor-hover .cursor-ring {
    width: 80px;
    height: 80px;
    border-color: var(--color-champagne);
}

body.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(0);
}

body.cursor-click .cursor-ring {
    transform: translate(-50%, -50%) scale(0.8);
}

body.cursor-text .cursor-ring {
    width: 4px;
    height: 30px;
    border-radius: 2px;
    border-color: var(--color-champagne);
}

body.cursor-hidden .cursor {
    opacity: 0;
}

/* ----------------------------------------
   4. Preloader
   ---------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    background: var(--color-void);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo),
        visibility 0.8s;
}

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

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-thin);
    letter-spacing: var(--letter-spacing-widest);
    display: flex;
    gap: 0.15em;
    margin-bottom: var(--space-lg);
}

.preloader-logo .letter {
    opacity: 0;
    transform: translateY(20px);
    animation: letterReveal 0.6s var(--ease-out-expo) forwards;
}

.preloader-logo .letter:nth-child(1) {
    animation-delay: 0.1s;
}

.preloader-logo .letter:nth-child(2) {
    animation-delay: 0.15s;
}

.preloader-logo .letter:nth-child(3) {
    animation-delay: 0.2s;
}

.preloader-logo .letter:nth-child(4) {
    animation-delay: 0.25s;
}

.preloader-logo .letter:nth-child(5) {
    animation-delay: 0.3s;
}

.preloader-logo .letter:nth-child(6) {
    animation-delay: 0.35s;
}

.preloader-logo .letter:nth-child(7) {
    animation-delay: 0.4s;
}

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

.preloader-bar {
    width: 120px;
    height: 1px;
    background: var(--color-white-dim);
    margin: 0 auto;
    overflow: hidden;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: var(--color-champagne);
    animation: loadProgress 2s var(--ease-out-expo) forwards;
}

@keyframes loadProgress {
    to {
        width: 100%;
    }
}


/* ----------------------------------------
   6. The Entrance
   ---------------------------------------- */
.entrance {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-void);
    overflow: hidden;
    transition: opacity 1.2s var(--ease-out-expo),
        visibility 1.2s,
        transform 1.2s var(--ease-out-expo);
}

.entrance.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.05);
}

.entrance-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#entrance-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

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

.entrance-logo {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: var(--font-weight-thin);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.logo-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: logoReveal 1s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--i) * 0.08s + 0.5s);
}

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

.entrance-tagline {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing-wider);
    color: var(--color-white-muted);
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) forwards;
    animation-delay: 1.2s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.enter-btn {
    position: relative;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-widest);
    text-transform: uppercase;
    color: var(--color-white);
    background: transparent;
    border: 1px solid var(--color-white-dim);
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) forwards;
    animation-delay: 1.5s;
    transition: all 0.5s var(--ease-out-expo);
}

.enter-btn:hover {
    border-color: var(--color-champagne);
    color: var(--color-void);
}

.enter-btn .btn-line {
    position: absolute;
    inset: 0;
    background: var(--color-champagne);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: -1;
}

.enter-btn:hover .btn-line {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.entrance-footer {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) forwards;
    animation-delay: 2s;
}

.scroll-hint {
    font-size: var(--text-xs);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    color: var(--color-white-dim);
}

/* ----------------------------------------
   7. Main Content
   ---------------------------------------- */
.main-content {
    position: relative;
    z-index: var(--z-base);
    opacity: 0;
    transition: opacity 1s var(--ease-out-expo);
}

.main-content.visible {
    opacity: 1;
}

.section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
}

.hero {
    min-height: 100vh;
}

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

.section-number {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing-widest);
    color: var(--color-champagne);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-thin);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.section-subtitle {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing-wider);
    color: var(--color-white-muted);
    text-transform: uppercase;
}

/* ----------------------------------------
   8. Hero Section
   ---------------------------------------- */
.hero {
    position: relative;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 1200px;
    padding-left: 8%;
}

.hero-text {
    margin-bottom: var(--space-xl);
}

.hero-title {
    font-family: var(--font-hero);
    font-size: clamp(4rem, 12vw, 14rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin-bottom: var(--space-md);
    text-transform: none;
    color: #ffffff;
    text-align: left;
    max-width: 90%;
}

.hero-title .title-line {
    display: block;
    opacity: 1;
}

.hero-title .highlight {
    font-family: var(--font-hero);
    font-size: 1.1em;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.02em;
    color: #c41e3a;
    display: block;
    text-transform: none;
    margin-left: 5%;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6);
    max-width: 35ch;
    line-height: 1.7;
    text-transform: none;
    margin-top: var(--space-lg);
    text-align: left;
}

.hero-location {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.8em;
    font-style: italic;
    font-weight: 300;
    color: var(--color-silver);
    opacity: 0.4;
    letter-spacing: 0.05em;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
}

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

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ----------------------------------------
   9. The Works (Portfolio)
   ---------------------------------------- */
.works {
    background: var(--color-obsidian);
}

.works-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    padding: 0 var(--space-xl);
}

/* Featured items - first and fifth items are larger */
.work-item:nth-child(1),
.work-item:nth-child(5) {
    grid-column: span 2;
}

.work-item {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s var(--ease-out-expo),
        transform 0.6s var(--ease-out-expo);
}

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

.work-image-wrapper {
    position: relative;
    aspect-ratio: 9/16;
    overflow: hidden;
    border-radius: 2px;
}

.work-image {
    position: absolute;
    inset: 0;
    background: var(--bg-color, var(--color-anthracite));
    transition: transform 0.8s var(--ease-out-expo);
}

.work-item:hover .work-image {
    transform: scale(1.05);
}

.work-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.3) 0%,
            transparent 50%,
            rgba(212, 175, 55, 0.1) 100%);
    z-index: 1;
}

.work-image-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

/* Video Portfolio Styles */
.work-video-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--color-anthracite);
}

.work-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo), filter 0.5s ease;
    filter: grayscale(20%) brightness(0.9);
}

.work-item:hover .work-video {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

/* Abstract Shapes for Projects */
.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    transition: all 1s var(--ease-out-expo);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-champagne) 0%, transparent 70%);
    top: 20%;
    left: 30%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-titanium) 0%, transparent 70%);
    bottom: 30%;
    right: 25%;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #4a90a4 0%, transparent 70%);
    top: 30%;
    right: 20%;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--color-champagne) 0%, transparent 70%);
    bottom: 25%;
    left: 35%;
}

.shape-5 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #6b5b95 0%, transparent 70%);
    top: 25%;
    left: 25%;
}

.shape-6 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--color-champagne) 0%, transparent 70%);
    bottom: 20%;
    right: 30%;
}

.shape-7 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #8b4a6b 0%, transparent 70%);
    top: 35%;
    right: 25%;
}

.shape-8 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-titanium) 0%, transparent 70%);
    bottom: 30%;
    left: 20%;
}

.work-item:hover .abstract-shape {
    transform: scale(1.2);
    opacity: 0.8;
}

.work-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: var(--space-sm);
}

.work-category {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-champagne);
}

.work-title {
    font-family: var(--font-hero);
    font-size: 1.6rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.03em;
    color: #ffffff;
    text-transform: none;
    margin-top: 4px;
}

.work-year {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-white-dim);
}

/* ----------------------------------------
   10. Services (What We Do)
   ---------------------------------------- */
.services {
    background: var(--color-void);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.6s var(--ease-out-expo);
}

.service-item:hover {
    border-color: var(--color-champagne);
    transform: scale(1.02);
}

/* Video Background */
.service-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.service-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(0.3) grayscale(30%);
    transform: scale(1.1);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.service-item:hover .service-bg video {
    filter: blur(4px) brightness(0.5) grayscale(0%);
    transform: scale(1.15);
}

/* Content Overlay */
.service-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
}

.service-number {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--color-champagne);
    margin-bottom: var(--space-xs);
}

.service-title {
    font-family: var(--font-hero);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 4px;
}

.service-desc {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 90%;
}

/* ----------------------------------------
   11. The Manifesto
   ---------------------------------------- */
.manifesto {
    background: var(--color-obsidian);
    justify-content: center;
    min-height: 60vh;
}

.manifesto-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding-left: var(--space-xl);
}

.manifesto-text {
    margin-bottom: var(--space-2xl);
}

.manifesto-line {
    font-family: var(--font-manifesto);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
    color: var(--color-white);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo),
        transform 0.8s var(--ease-out-expo);
}

.manifesto-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.manifesto-line.highlight {
    color: #f5c518;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.manifesto-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    transition: opacity 1s var(--ease-out-expo);
}

.manifesto-signature.visible {
    opacity: 1;
}

.signature-line {
    width: 60px;
    height: 1px;
    background: var(--color-champagne);
}

.signature-text {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-widest);
}

.signature-year {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing-wider);
    color: var(--color-white-dim);
}

/* ----------------------------------------
   12. Contact / Footer
   ---------------------------------------- */
.contact {
    background: var(--color-void);
    justify-content: center;
    min-height: 50vh;
    padding-bottom: var(--space-xl);
}

.contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.contact-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-thin);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-xs);
}

.contact-subtitle {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-regular);
    color: var(--color-white-muted);
    font-style: italic;
}

.contact-info {
    margin-bottom: var(--space-lg);
}

.contact-email {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-champagne);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-champagne);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

.contact-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-socials {
    display: flex;
    gap: var(--space-lg);
}

.social-link {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-widest);
    text-transform: uppercase;
    color: var(--color-white-muted);
    position: relative;
    padding: var(--space-xs) 0;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--color-white);
}

.social-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--color-champagne);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s var(--ease-out-expo);
}

.social-link:hover::before {
    transform: translateX(-50%) scale(1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-white-whisper);
}

.copyright,
.location {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-white-dim);
}

/* ----------------------------------------
   13. Scroll Reveal Animations
   ---------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s var(--ease-out-expo),
        transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s var(--ease-out-expo),
        transform 0.6s var(--ease-out-expo);
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal-stagger.visible>*:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal-stagger.visible>*:nth-child(6) {
    transition-delay: 0.5s;
}

.reveal-stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------
   14. Responsive Design - Mobile First
   ---------------------------------------- */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .section {
        padding: var(--space-lg) var(--space-md);
        min-height: auto;
    }

    /* Entrance - Mobil */
    .entrance-logo {
        font-size: clamp(2.5rem, 12vw, 5rem);
        letter-spacing: 0.1em;
    }

    .entrance-tagline {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
        padding: 0 1rem;
    }

    .enter-btn {
        padding: 0.75rem 2rem;
        font-size: 0.65rem;
    }

    .entrance-footer {
        bottom: 2rem;
    }

    /* Hero - Mobil */
    .hero {
        min-height: 100vh;
        padding: var(--space-xl) var(--space-md);
    }

    .hero-content {
        padding-left: 0;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        text-align: center;
        max-width: 100%;
    }

    .hero-title .highlight {
        margin-left: 0;
    }

    .hero-description {
        text-align: center;
        max-width: 100%;
        margin: var(--space-md) auto 0;
        font-size: 0.85rem;
    }

    /* Works Section - Mobil Grid (Tek Kolon) */
    .works-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding: 0;
    }

    .work-item,
    .work-item:nth-child(1),
    .work-item:nth-child(5) {
        grid-column: span 1;
    }

    .work-image-wrapper {
        aspect-ratio: 16/9;
        border-radius: 8px;
    }

    .work-video {
        filter: none;
    }

    .work-info {
        padding: var(--space-sm) 0;
        text-align: left;
    }

    .work-title {
        font-size: 1.3rem;
    }

    .work-category {
        font-size: 0.65rem;
    }

    /* Services Section - Mobil Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .service-item {
        aspect-ratio: 16/10;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .service-content {
        padding: var(--space-md);
    }

    .service-number {
        font-size: 0.7rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-desc {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* Manifesto - Mobil */
    .manifesto-line {
        font-size: var(--text-xl);
        text-align: center;
    }

    .manifesto-text {
        padding: 0 var(--space-sm);
    }

    .manifesto-signature {
        flex-direction: column;
        gap: 0.5rem;
    }

    .signature-line {
        width: 40px;
    }

    /* Contact/Footer - Mobil */
    .contact {
        padding: var(--space-lg) var(--space-md);
    }

    .contact-title {
        font-size: var(--text-2xl);
    }

    .contact-subtitle {
        font-size: var(--text-base);
    }

    .contact-email {
        font-size: var(--text-base);
        word-break: break-all;
    }

    .contact-socials {
        flex-direction: row;
        gap: var(--space-md);
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .footer-divider {
        display: none;
    }

    /* Menu Mobil */
    .menu-toggle {
        top: 1.5rem;
        right: 1.5rem;
        width: 32px;
        height: 16px;
    }

    .menu-link {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .menu-footer {
        bottom: 2rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Modals - Mobil */
    .modal-close,
    .contact-close {
        top: 1rem;
        right: 1.5rem;
        width: 32px;
        height: 32px;
    }

    .modal-content {
        width: 95%;
        height: auto;
        max-height: 85vh;
        padding: var(--space-md);
    }

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

    /* Audio Toggle - Mobil */
    .audio-toggle {
        bottom: 1.5rem;
        left: 1.5rem;
        gap: 0.5rem;
    }

    .audio-label {
        font-size: 0.6rem;
    }

    /* Section Headers - Mobil */
    .section-header {
        margin-bottom: var(--space-lg);
        text-align: center;
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .section-subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .entrance-tagline {
        font-size: var(--text-xs);
        letter-spacing: var(--letter-spacing-wide);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .work-title {
        font-size: var(--text-xl);
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .works-container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .work-item {
        grid-template-columns: 2fr 1fr;
        align-items: end;
    }

    .work-item:nth-child(even) {
        grid-template-columns: 1fr 2fr;
    }

    .work-item:nth-child(even) .work-image-wrapper {
        order: 2;
    }

    .work-item:nth-child(even) .work-info {
        order: 1;
        text-align: right;
        justify-content: flex-end;
    }
}

/* ----------------------------------------
   15. Smooth Scrolling Container (for JS)
   ---------------------------------------- */
.smooth-scroll {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

/* ----------------------------------------
   16. Grain Overlay (Subtle Texture)
   ---------------------------------------- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ----------------------------------------
   17. Page Transition Overlay
   ---------------------------------------- */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: var(--color-void);
    transform: translateY(100%);
    transition: transform 0.8s var(--ease-in-out-circ);
}

.page-transition.active {
    transform: translateY(0);
}

.page-transition.exit {
    transform: translateY(-100%);
}

/* ----------------------------------------
   Contact Modal & Trigger
   ---------------------------------------- */
.contact-trigger {
    margin-top: var(--space-md);
    padding: 1rem 2rem;
    border: 1px solid var(--color-champagne);
    border-radius: 2rem;
    color: var(--color-champagne);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.contact-trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-champagne);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
    z-index: -1;
}

.contact-trigger:hover {
    color: var(--color-obsidian);
}

.contact-trigger:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1005;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s step-end;
    display: flex;
    align-items: flex-end;
    /* Slide from bottom */
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s step-start;
}

.contact-modal-content {
    background: var(--color-obsidian);
    width: 100%;
    max-height: 90vh;
    padding: var(--space-lg);
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-out-quart);
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-modal.active .contact-modal-content {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .contact-modal {
        align-items: center;
        justify-content: center;
    }

    .contact-modal-content {
        width: 600px;
        max-height: auto;
        border-radius: 1rem;
        transform: translateY(40px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.contact-modal-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    position: relative;
    margin-top: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-white-dim);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.5rem 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 0.5rem;
    left: 0;
    color: var(--color-white-dim);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-champagne);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -1.2rem;
    font-size: 0.75rem;
    color: var(--color-champagne);
}

.contact-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1006;
}

.contact-close .close-line {
    background: var(--color-white);
}

.submit-btn {
    margin-top: var(--space-sm);
    padding: 1rem;
    background: var(--color-white);
    color: var(--color-obsidian);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}


/* ----------------------------------------
   Audio Control
   ---------------------------------------- */
.audio-toggle {
    position: fixed;
    bottom: 3rem;
    left: 3rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: none;
    color: var(--color-white-dim);
    cursor: pointer;
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    mix-blend-mode: difference;
    transition: color 0.3s ease;
}

.audio-toggle:hover {
    color: var(--color-white);
}

.audio-icon {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.audio-icon .bar {
    width: 2px;
    background: currentColor;
    border-radius: 1px;
    animation: equalizer 1s ease-in-out infinite;
}

.audio-icon .bar:nth-child(1) {
    height: 60%;
    animation-duration: 0.8s;
}

.audio-icon .bar:nth-child(2) {
    height: 30%;
    animation-duration: 1.1s;
}

.audio-icon .bar:nth-child(3) {
    height: 80%;
    animation-duration: 0.9s;
}

.audio-icon .bar:nth-child(4) {
    height: 50%;
    animation-duration: 1.2s;
}

/* Off state (Paused animation) */
.audio-toggle[aria-label="Toggle Audio"] .audio-icon .bar {
    animation-play-state: paused;
    height: 2px !important;
    transition: height 0.3s ease;
}

/* On state (Running animation) */
.audio-toggle.active .audio-icon .bar {
    animation-play-state: running;
}

@keyframes equalizer {
    0% {
        height: 2px;
    }

    50% {
        height: 100%;
    }

    100% {
        height: 2px;
    }
}