/* Reset & Base Variables */
:root {
    --bg-light: #f6f6f5;
    /* Very light slightly warm gray as seen in screenshot */
    --text-dark: #222222;
    --text-muted: #666666;
    --border-color: #dcdcdc;

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;

    --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Noise Texture Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.container-narrow {
    max-width: 1000px;
}

.section {
    padding: 6rem 0;
}

/* Header & Navigation */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 4rem;
}

.logo .play-logo {
    width: 60px;
    height: 35px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.triangle {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-left: 14px solid #fff;
    border-bottom: 8px solid transparent;
    margin-left: 4px;
    /* optical center */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-dark);
}

/* Quote Section */
.relative-section {
    position: relative;
    overflow: hidden;
}

.relative-content {
    position: relative;
    z-index: 2;
}

.blob-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: url('#blob-blur');
    opacity: 0.6;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #e3d3c1;
    top: 20%;
    left: 20%;
    animation: float 15s ease-in-out infinite alternate;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: #e6e6e6;
    bottom: 10%;
    right: 20%;
    animation: float 20s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(5%, 10%) scale(1.1);
    }

    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

.quote-section {
    padding: 2rem 0 8rem;
    text-align: center;
}

blockquote {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: -1px;
    /* Tighter tracking for modern look */
}

.quote-author {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.quote-author .line {
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: #999;
}

/* Staggered About Section */
.staggered-grid {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 10rem;
    align-items: start;
}

.staggered-text h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.staggered-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 2.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.staggered-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

/* Accordion About Section */
.accordion-grid {
    display: grid;
    grid-template-columns: 5fr 5fr;
    gap: 8rem;
    align-items: center;
}

.accordion-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

/* Accordion Component */
.accordion-wrapper {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    border-top: 1px solid var(--border-color);
}

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

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.accordion-header h3 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.icon {
    position: relative;
    width: 12px;
    height: 12px;
}

.icon::before,
.icon::after {
    content: '';
    position: absolute;
    background-color: #999;
    transition: var(--transition-fast);
}

/* Horizontal line */
.icon::before {
    top: 5px;
    left: 0;
    width: 12px;
    height: 1px;
}

/* Vertical line (forms plus) */
.icon.plus::after {
    top: 0;
    left: 5.5px;
    width: 1px;
    height: 12px;
}

/* Transform to minus */
.accordion-item.active .icon::after {
    transform: rotate(90deg) scale(0);
    opacity: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-content p {
    padding-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.accordion-content strong {
    color: var(--text-dark);
}

/* Projects Section */
/* Projects Section */
.projects-section {
    padding-top: 0;
    padding-bottom: 0;
}

.projects-section .container {
    padding: 0;
    max-width: 100%;
}

.projects-section h2 {
    display: none;
    /* Hide header for edge-to-edge layout */
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    /* Remove gaps */
    align-items: stretch;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    /* Removing border radius */
    box-shadow: none;
    transition: none;
    /* remove hover transform for base element */
}

.project-item:hover {
    transform: none;
}

.project-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}



/* Specific image sizes for masonry layout */

/* Hero Top Image - Full Width */
.project-item:nth-child(1) {
    grid-column: span 3;
    aspect-ratio: 16/7;
}

/* Medium Row - Two columns */
.project-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.project-item:nth-child(3) {
    grid-column: span 2;
    grid-row: span 1;
}

/* Bottom Row - Three columns */
.project-item:nth-child(4) {
    grid-column: span 1;
    transform: none;
    /* remove translation */
}

.project-item:hover:nth-child(4) {
    transform: none;
    /* remove hover effect for translation */
}

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

/* Call to Action Section */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    background-color: var(--bg-light);
}

.cta-heading {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-subheading {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--text-dark);
    color: var(--bg-light);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition-fast);
    border: 1px solid var(--text-dark);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--text-dark);
}

/* Footer Section & Little Prince Motif */
.footer-prince-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.prince-img {
    width: 60px;
    height: auto;
    mix-blend-mode: multiply;
    opacity: 0.85;
    margin-bottom: 0;
    filter: grayscale(100%) contrast(1.1);
}

.prince-quote {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.4;
    max-width: 400px;
    margin: 0;
    text-align: left;
}

.footer-border {
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    margin-top: 4rem;
}

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

.copyright {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

/* Custom Magnetic Cursor */
.cursor-dot,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-dark);
    transition: opacity 0.2s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(26, 26, 26, 0.3);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.cursor-follower.magnetic-active {
    width: 60px;
    height: 60px;
    background-color: rgba(26, 26, 26, 0.05);
    border-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    blockquote {
        font-size: 2.2rem;
    }

    .staggered-grid {
        gap: 4rem;
    }

    .accordion-grid {
        gap: 4rem;
    }
}

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

    .container {
        padding: 0 2rem;
    }

    .site-header {
        padding: 2rem;
        flex-direction: column;
        gap: 2rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    blockquote {
        font-size: 1.8rem;
    }

    .staggered-grid,
    .accordion-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .projects-gallery {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .project-item:nth-child(n) {
        grid-column: span 1;
        aspect-ratio: auto;
        min-height: 50vh;
        transform: none;
    }

    .project-item:hover:nth-child(4) {
        transform: none;
    }

    .staggered-text,
    .accordion-wrapper {
        order: 2;
    }

    .staggered-image,
    .accordion-image {
        order: 1;
    }

    .footer-content {
        padding: 2rem;
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    .footer-prince-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

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

    .cta-heading {
        font-size: 2.5rem;
    }

    .cta-section {
        padding: 5rem 0;
    }
}