/* xity.one - Swiss Modernism + Botanical Warmth */

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

:root {
    --off-white: #F5F5F0;
    --warm-beige: #E8D5C4;
    --warm-taupe: #D4B5A0;
    --earth-brown: #A08968;
    --dusty-slate: #6B7F8C;
    --mint-green: #C9E5D6;
    --blush-pink: #F0D9D1;
    --warm-gray: #E8E0D0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--off-white);
    color: var(--earth-brown);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* ===== Grid Guides Background ===== */
#grid-guides {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, var(--warm-gray) 1px, transparent 1px),
        linear-gradient(to bottom, var(--warm-gray) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.15;
}

/* ===== Navigation ===== */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 10%;
    background-color: rgba(245, 245, 240, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-brand {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--earth-brown);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dusty-slate);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--mint-green);
    transition: width 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Hero Section ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 10% 72px;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    opacity: 0;
    animation: heroFadeIn 800ms ease-out forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-botanical {
    margin-bottom: 48px;
}

.hero-plant {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.hero-plant .plant-group {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-plant:hover .plant-group {
    transform: translate(300px, 200px) scale(1.03) rotate(2deg);
}

.hero-title {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4.5rem);
    letter-spacing: 0.02em;
    color: var(--earth-brown);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--dusty-slate);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Content Sections ===== */
.content-section {
    position: relative;
    z-index: 1;
    padding: 72px 10%;
}

.section-motif {
    margin-bottom: 24px;
}

.leaf-icon {
    width: 40px;
    height: 40px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.leaf-icon.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    max-width: 700px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.asymmetric-left {
    margin-left: 0;
    margin-right: auto;
}

.asymmetric-right {
    margin-left: auto;
    margin-right: 0;
}

.section-title {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--earth-brown);
    margin-bottom: 32px;
}

.section-body p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dusty-slate);
    margin-bottom: 20px;
    max-width: 60ch;
}

.accent-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 22px;
    font-style: italic;
    color: var(--earth-brown);
    line-height: 1.5;
    padding: 16px 0;
    border-left: 2px solid var(--mint-green);
    padding-left: 24px;
}

/* ===== Philosophy Cards ===== */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 16px;
}

.philosophy-card {
    background-color: rgba(232, 224, 208, 0.35);
    padding: 32px 24px;
    border: 1px solid var(--warm-gray);
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 24px rgba(160, 137, 104, 0.1);
}

.card-motif {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.card-motif svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: var(--earth-brown);
    margin-bottom: 12px;
}

.card-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.65;
    color: var(--dusty-slate);
}

/* ===== Works Showcase ===== */
.works-showcase {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.work-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.work-item:nth-child(even) {
    direction: rtl;
}

.work-item:nth-child(even) > * {
    direction: ltr;
}

.work-visual {
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.work-visual:hover {
    transform: scale(1.02) rotate(0.5deg);
}

.work-visual svg {
    width: 100%;
    height: auto;
    display: block;
}

.work-title {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: var(--earth-brown);
    margin-bottom: 12px;
}

.work-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    color: var(--dusty-slate);
    margin-bottom: 20px;
}

.work-link {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--earth-brown);
    text-decoration: none;
    border: 1.5px solid var(--warm-taupe);
    padding: 10px 24px;
    display: inline-block;
    border-radius: 2px;
    transition: background-color 0.25s ease, color 0.25s ease;
    position: relative;
}

.work-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mint-green);
    transition: width 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.work-link:hover::after {
    width: 100%;
}

.work-link:hover {
    background-color: var(--warm-beige);
}

/* ===== Contact Section ===== */
.contact-content {
    max-width: 550px;
}

.contact-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--dusty-slate);
    margin-bottom: 24px;
}

.contact-accent {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 24px;
    color: var(--earth-brown);
    line-height: 1.4;
    margin-bottom: 40px;
}

.cta-button {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--earth-brown);
    text-decoration: none;
    border: 1.5px solid var(--warm-taupe);
    padding: 14px 36px;
    display: inline-block;
    border-radius: 2px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    position: relative;
}

.cta-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mint-green);
    transition: width 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover::after {
    width: 100%;
}

.cta-button:hover {
    background-color: var(--warm-beige);
    transform: translateY(-1px);
}

/* ===== Footer ===== */
#footer {
    position: relative;
    z-index: 1;
    padding: 72px 10% 48px;
    text-align: center;
}

.footer-brand {
    font-family: 'Jost', 'Futura', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--earth-brown);
    margin-bottom: 16px;
}

.footer-divider {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-divider svg {
    width: 120px;
    height: 2px;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--dusty-slate);
    letter-spacing: 0.02em;
}

/* ===== Scroll-triggered Botanical Parallax ===== */
.leaf-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.leaf-icon:hover {
    transform: scale(1.15) rotate(8deg);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .work-item:nth-child(even) {
        direction: ltr;
    }

    .content-section {
        padding: 48px 5%;
    }

    #hero {
        padding: 100px 5% 48px;
    }

    #nav {
        padding: 16px 5%;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 11px;
    }

    .asymmetric-left,
    .asymmetric-right {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .nav-links {
        display: none;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .philosophy-card {
        padding: 24px 20px;
    }

    .contact-accent {
        font-size: 20px;
    }
}
