/* ==========================================
   VARIABLES & RESET
   ========================================== */
:root {
    --color-black: #0A0A0A;
    --color-white: #FAFAFA;
    --color-gray: #8E8E8E;
    --color-light: #E5E5E5;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --spacing-unit: 8px;
    --container-max: 1400px;
    --nav-height: 80px;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--color-white);
    color: var(--color-black);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   GRAIN TEXTURE
   ========================================== */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' 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");
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 10, 10, 0.05);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 6);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family: var(--font-display);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border: 2px solid var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-black);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    gap: 4px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand-bloom {
    color: var(--color-black);
}

.brand-blend {
    color: var(--color-gray);
}

.brand-equity {
    color: var(--color-black);
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 6);
    align-items: center;
}

.nav-link {
    color: var(--color-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s var(--ease-out-expo);
    letter-spacing: -0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-black);
    transition: width 0.4s var(--ease-out-expo);
}

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

.nav-link-cta {
    padding: 10px 24px;
    border: 1px solid var(--color-black);
    border-radius: 100px;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--color-black);
    transition: all 0.3s var(--ease-out-expo);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 80px) calc(var(--spacing-unit) * 6) 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-gradient {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.02) 0%, transparent 60%);
    animation: float 25s ease-in-out infinite;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(10, 10, 10, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 10, 10, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -80px); }
}

.hero-layout {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 120px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-main {
    padding-top: 40px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(80px, 12vw, 180px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin-bottom: 60px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: slideUp 1s var(--ease-out-expo) forwards;
}

.hero-title .line:nth-child(1) .word { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) .word { animation-delay: 0.35s; }

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

.hero-meta {
    display: flex;
    align-items: center;
    gap: 32px;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 0.6s forwards;
}

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

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gray);
    font-weight: 500;
}

.meta-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: -0.01em;
}

.meta-divider {
    width: 1px;
    height: 30px;
    background: var(--color-light);
}

.hero-sidebar {
    padding-top: 180px;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 0.8s forwards;
}

.sidebar-content {
    border-top: 1px solid var(--color-light);
    padding-top: 32px;
}

.sidebar-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 40px;
}

.btn-minimal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-black);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-minimal:hover {
    transform: translateX(4px);
}

.btn-minimal .btn-arrow {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-minimal:hover .btn-arrow {
    transform: translateX(4px);
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 1.2s forwards;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-gray), transparent);
    animation: scrollAnimation 2.5s ease-in-out infinite;
}

@keyframes scrollAnimation {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(25px); }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    padding: 200px calc(var(--spacing-unit) * 6) 180px;
    background: var(--color-white);
}

.services-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: end;
    margin-bottom: 100px;
}

.section-label {
    margin-bottom: 0;
}

.section-label span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gray);
    font-weight: 500;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-light);
    display: inline-block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-item {
    background: var(--color-white);
    padding: 56px 48px;
    position: relative;
    border: 1px solid var(--color-light);
    transition: all 0.4s var(--ease-out-expo);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out-expo);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    background: rgba(10, 10, 10, 0.02);
    transform: translateY(-4px);
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.service-number {
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--color-gray);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.service-dot {
    width: 8px;
    height: 8px;
    background: var(--color-black);
    border-radius: 50%;
}

.service-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--color-black);
}

.service-desc {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ==========================================
   MARQUEE SECTION
   ========================================== */
.marquee-section {
    padding: 80px 0;
    background: var(--color-black);
    overflow: hidden;
}

.marquee {
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: marquee 30s linear infinite;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.marquee-dot {
    color: var(--color-gray);
    font-size: 24px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: 200px calc(var(--spacing-unit) * 6);
    background: var(--color-white);
}

.about-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 140px;
    align-items: center;
}

.about-content .section-label span {
    border-color: var(--color-light);
    color: var(--color-gray);
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 48px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-gray);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--color-light);
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray);
    font-weight: 500;
}

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

.about-visual-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.visual-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-light) 50%, transparent);
}

.visual-text {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-black);
    opacity: 0.08;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: 200px calc(var(--spacing-unit) * 6) 180px;
    background: var(--color-black);
    color: var(--color-white);
}

.contact-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
}

.contact-content .section-label span {
    border-color: rgba(250, 250, 250, 0.2);
    color: rgba(250, 250, 250, 0.5);
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
}

.contact-text {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(250, 250, 250, 0.6);
    margin-bottom: 64px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(250, 250, 250, 0.5);
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    color: var(--color-white);
    line-height: 1.6;
}

.info-value a {
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s var(--ease-out-expo);
}

.info-value a:hover {
    opacity: 0.6;
}

/* ==========================================
   CONTACT LOGO
   ========================================== */
.contact-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-logo {
    width: 400px;
    height: 400px;
    border: 3px solid var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-white);
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 80px calc(var(--spacing-unit) * 6);
    background: var(--color-black);
    color: var(--color-white);
    border-top: 1px solid rgba(250, 250, 250, 0.1);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .brand-logo {
    border-color: var(--color-white);
    color: var(--color-white);
}

.footer-brand .brand-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.footer-brand .brand-bloom,
.footer-brand .brand-equity {
    color: var(--color-white);
}

.footer-brand .brand-blend {
    color: rgba(250, 250, 250, 0.5);
}

.footer-copy {
    font-size: 13px;
    color: rgba(250, 250, 250, 0.4);
    display: flex;
    gap: 32px;
    align-items: center;
}

.footer-email a {
    color: rgba(250, 250, 250, 0.6);
    text-decoration: none;
    transition: color 0.3s var(--ease-out-expo);
}

.footer-email a:hover {
    color: var(--color-white);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .hero-sidebar {
        padding-top: 0;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: calc(var(--nav-height) + 60px) calc(var(--spacing-unit) * 4) 80px;
    }

    .services,
    .about,
    .contact {
        padding: 140px calc(var(--spacing-unit) * 4);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .about-features {
        gap: 32px;
    }

    .feature-item {
        padding: 32px 0;
    }

    .feature-number {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .nav-inner {
        padding: 0 calc(var(--spacing-unit) * 3);
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 40px;
        gap: 32px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s var(--ease-out-expo);
        border-bottom: 1px solid var(--color-light);
    }

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

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: calc(var(--nav-height) + 40px) calc(var(--spacing-unit) * 3) 60px;
        min-height: 90vh;
    }

    .hero-title {
        font-size: 56px;
        margin-bottom: 40px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .meta-divider {
        display: none;
    }

    .services,
    .about,
    .contact {
        padding: 100px calc(var(--spacing-unit) * 3);
    }

    .marquee-section {
        padding: 60px 0;
    }

    .service-item {
        padding: 40px 32px;
    }

    .service-title {
        font-size: 24px;
    }

    .about-title,
    .contact-title,
    .section-title {
        font-size: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-logo {
        width: 280px;
        height: 280px;
        font-size: 80px;
        border: 2px solid var(--color-white);
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .scroll-indicator {
        bottom: 40px;
    }
}