/* ============================================
   KILN & CLAY - POTTERY STUDIO
   Aesthetic: Wabi-Sabi, Minimalist, Earthy, Slow
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Organic & Muted */
    --color-stone-light: #F5F2F0;
    /* Main background */
    --color-stone-dark: #EAE6E1;
    /* Secondary background */
    --color-clay: #8D7462;
    /* Primary Accent */
    --color-ink: #2C2C2C;
    /* Text Primary */
    --color-charcoal: #4A4A4A;
    /* Text Secondary */
    --color-sand: #D7CCC8;
    /* Subtle borders */

    /* Typography */
    --font-serif: 'Playfair Display', 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    /* Space Scale - Generous breathing room */
    --space-sm: 1.5rem;
    --space-md: 3rem;
    --space-lg: 5rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --transition-slow: 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-med: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-ink);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
    display: none;
    /* Hidden by default, shown via JS on desktop */
}

@media (pointer: fine) {
    .cursor {
        display: block;
    }
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(141, 116, 98, 0.2);
    border-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-stone-light);
    color: var(--color-ink);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-ink);
    line-height: 1.3;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

p {
    color: var(--color-charcoal);
    font-size: 1.125rem;
    max-width: 60ch;
}

/* Vertical text for Japanese aesthetic */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-serif);
    letter-spacing: 0.2em;
    font-size: 1rem;
    color: var(--color-clay);
    opacity: 0.8;
}

/* === UTILITIES === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

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

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

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    color: #fff;
    /* Inverted for blend mode */
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: currentColor;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: currentColor;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

/* === HERO SECTION === */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* For parallax */
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.8) sepia(0.1);
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 40, 38, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    display: block;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

.hero-title {
    color: #fff;
    margin-bottom: var(--space-md);
    /* opacity: 0; Removed for GSAP control */
    overflow: hidden;
    /* For mask reveal */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-title span {
    display: block;
    transform: translateY(100%);
}

/* ... existing scroll indicator ... */

.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* ... existing scroll-line ... */

/* ... existing philosophy ... */

/* ... existing logic ... */

/* Works Item Hover Enhancements */
.work-item {
    position: relative;
    grid-column: span 4;
    overflow: hidden;
    /* For image zoom */
}

/* ... positioning adjustments ... */

.work-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.5s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.work-item:hover .work-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.work-info {
    margin-top: 1rem;
}

.work-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.work-meta {
    font-size: 0.875rem;
    color: var(--color-clay);
    font-family: var(--font-sans);
}

/* === WORKSHOP === */
.section-workshop {
    padding: var(--space-2xl) 0;
    position: relative;
}

.workshop-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

.workshop-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.workshop-list {
    list-style: none;
    margin-top: var(--space-md);
}

.workshop-item {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--color-sand);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    transition: padding-left 0.3s ease;
    cursor: pointer;
}

.workshop-item:last-child {
    border-bottom: 1px solid var(--color-sand);
}

/* Hover handled by GSAP in main.js */
/* .workshop-item:hover {
    padding-left: 20px;
    background: rgba(141, 116, 98, 0.05);
} */

.w-time {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--color-clay);
    min-width: 100px;
}

.w-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    flex: 1;
}

/* === FOOTER === */
.footer {
    padding: var(--space-xl) 0 var(--space-md);
    background-color: #2B2826;
    color: #EAE6E1;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes scrollDown {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 1s ease;
}

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

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 3.5rem;
    }

    .split-layout,
    .workshop-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .works-grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
    }

    .work-item {
        margin-top: 0 !important;
    }
}