/* PHI CONSTANT */
:root {
    --phi: 1.618033988749;
    --phi-2: 2.618033988749;
    --phi-3: 4.236067977499;
    --phi-4: 6.854101966249;
    --phi-5: 11.090169943749;
    --inv-phi: 0.618033988749;
    --inv-phi-2: 0.381966011251;
    --inv-phi-3: 0.236067977499;
}

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

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.618);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.618);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor.active {
    transform: scale(2);
    border-color: rgba(255, 255, 255, 1);
}

body {
    font-family: 'Helvetica Neue', -apple-system, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    line-height: 1.618;
}

/* Golden Spiral Background */
.golden-spiral {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.0382;
}

.golden-spiral svg {
    width: 100%;
    height: 100%;
}

.spiral-path {
    stroke: #fff;
    stroke-width: 0.5;
    fill: none;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: drawSpiral 30s linear infinite;
}

@keyframes drawSpiral {
    to {
        stroke-dashoffset: 0;
    }
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.0236;
    background-image:
        linear-gradient(rgba(255,255,255,0.0618) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.0618) 1px, transparent 1px);
    background-size: 161.8px 161.8px;
    animation: gridPulse 10s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.0236; }
    50% { opacity: 0.0618; }
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1618px;
    margin: 0 auto;
    padding: 0 26.18px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.618s, visibility 1.618s;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-fibonacci {
    display: flex;
    gap: 6.18px;
}

.fib-block {
    width: 10px;
    height: 10px;
    background: #fff;
    animation: fibPulse 2.618s infinite;
}

.fib-block:nth-child(1) { animation-delay: 0s; width: 1px; }
.fib-block:nth-child(2) { animation-delay: 0.1s; width: 1px; }
.fib-block:nth-child(3) { animation-delay: 0.2s; width: 2px; }
.fib-block:nth-child(4) { animation-delay: 0.3s; width: 3px; }
.fib-block:nth-child(5) { animation-delay: 0.4s; width: 5px; }
.fib-block:nth-child(6) { animation-delay: 0.5s; width: 8px; }
.fib-block:nth-child(7) { animation-delay: 0.6s; width: 13px; }
.fib-block:nth-child(8) { animation-delay: 0.7s; width: 21px; }

@keyframes fibPulse {
    0%, 100% { opacity: 0.236; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.618); }
}

/* Navigation */
nav {
    position: fixed;
    top: 26.18px;
    right: 26.18px;
    z-index: 100;
    mix-blend-mode: difference;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 16.18px;
}

nav button {
    background: none;
    border: none;
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.1618em;
    text-transform: uppercase;
    padding: 6.18px 10px;
    position: relative;
    transition: all 0.382s;
    cursor: none;
}

nav button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.618s;
}

nav button:hover::after,
nav button.active::after {
    width: 100%;
}

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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: calc(26.18px + 4vw);
    font-weight: 100;
    letter-spacing: -0.0618em;
    margin-bottom: 16.18px;
    opacity: 0;
    transform: translateY(26.18px);
    animation: fadeInUp 1.618s forwards 0.618s;
}

.hero-tagline {
    font-size: 10px;
    letter-spacing: 0.618em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.382);
    margin-bottom: 42.36px;
    opacity: 0;
    animation: fadeInUp 1.618s forwards 1s;
}

.hero-description {
    font-size: 16.18px;
    line-height: 1.618;
    max-width: 618px;
    margin: 0 auto 42.36px;
    color: rgba(255, 255, 255, 0.618);
    opacity: 0;
    animation: fadeInUp 1.618s forwards 1.382s;
}

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

/* Parallax Layers */
.parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.parallax-layer {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
}

.geometric-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.0618);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 161.8px;
    height: 161.8px;
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.shape-2 {
    width: 261.8px;
    height: 161.8px;
    top: 60%;
    right: 15%;
    animation-delay: 3.82s;
}

.shape-3 {
    width: 100px;
    height: 161.8px;
    bottom: 20%;
    left: 20%;
    border-radius: 50%;
    animation-delay: 6.18s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-26.18px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(26.18px) rotate(270deg); }
}

/* Projects Section */
.projects {
    position: relative;
    z-index: 20;
    padding: 161.8px 0;
}

.section-title {
    font-size: 10px;
    letter-spacing: 0.618em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.382);
    margin-bottom: 68.54px;
    text-align: center;
}

/* Project Cards with depth */
.project-card {
    position: relative;
    margin-bottom: 42.36px;
    padding: 42.36px;
    border: 1px solid rgba(255, 255, 255, 0);
    transition: all 0.618s cubic-bezier(0.382, 0, 0.618, 1);
    transform: translateZ(0);
    transform-style: preserve-3d;
    background: rgba(0, 0, 0, 0.618);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(42.36px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        161.8deg,
        rgba(255, 255, 255, 0.0236) 0%,
        transparent 61.8%
    );
    opacity: 0;
    transition: opacity 0.618s;
    pointer-events: none;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.236);
    transform: translateY(-6.18px) translateZ(26.18px);
    box-shadow:
        0 26.18px 42.36px rgba(255, 255, 255, 0.0618),
        0 42.36px 68.54px rgba(0, 0, 0, 0.382);
}

.project-card:hover::before {
    opacity: 1;
}

.project-grid {
    display: grid;
    grid-template-columns: 68.54px 1fr 261.8px;
    gap: 42.36px;
    align-items: start;
}

.project-number {
    font-size: 42.36px;
    font-weight: 100;
    line-height: 1;
    color: rgba(255, 255, 255, 0.236);
    transition: all 0.618s;
    font-feature-settings: "tnum";
}

.project-card:hover .project-number {
    color: rgba(255, 255, 255, 0.618);
    transform: scale(1.1618);
}

.project-content h3 {
    font-size: 26.18px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: -0.0382em;
}

.project-tagline {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.618);
    margin-bottom: 16.18px;
    line-height: 1.618;
}

.project-description {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.382);
    line-height: 1.618;
}

.project-category {
    font-size: 6.18px;
    letter-spacing: 0.236em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.382);
    position: absolute;
    top: 16.18px;
    right: 26.18px;
}

.project-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.236);
    color: rgba(255, 255, 255, 0.618);
    padding: 10px 16.18px;
    font-size: 10px;
    letter-spacing: 0.1618em;
    text-transform: uppercase;
    transition: all 0.382s;
    position: relative;
    overflow: hidden;
    cursor: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.0618);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.618s, height 0.618s;
}

.cta-button:hover {
    border-color: rgba(255, 255, 255, 0.618);
    color: #fff;
    transform: translateX(2.618px);
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.project-card.featured {
    border-color: rgba(255, 255, 255, 0.0618);
}

.project-card.featured::after {
    content: 'ACTIVE';
    position: absolute;
    top: 16.18px;
    left: 26.18px;
    font-size: 6.18px;
    letter-spacing: 0.382em;
    color: rgba(255, 255, 255, 0.618);
    padding: 3.82px 6.18px;
    border: 1px solid rgba(255, 255, 255, 0.236);
    animation: pulse 2.618s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.618; }
    50% { opacity: 1; }
}

.project-card.private {
    background: rgba(16, 16, 16, 0.618);
    border-style: dashed;
}

/* Contact Section */
.contact {
    position: relative;
    z-index: 20;
    padding: 110.9px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.0618);
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.0236) 61.8%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 68.54px;
    margin-bottom: 68.54px;
}

.contact-intro {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 42.36px;
}

.contact-philosophy {
    font-size: 16.18px;
    line-height: 1.618;
    color: rgba(255, 255, 255, 0.618);
    max-width: 618px;
    margin: 0 auto;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 26.18px;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 6.18px;
    text-decoration: none;
    color: inherit;
    padding: 16.18px;
    border: 1px solid rgba(255, 255, 255, 0.0618);
    transition: all 0.382s;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.0382);
    transition: left 0.618s;
}

.contact-method:hover {
    border-color: rgba(255, 255, 255, 0.236);
    transform: translateX(6.18px);
}

.contact-method:hover::before {
    left: 0;
}

.method-type {
    font-size: 10px;
    letter-spacing: 0.236em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.382);
}

.method-value {
    font-size: 16.18px;
    color: rgba(255, 255, 255, 0.854);
    letter-spacing: 0.0618em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16.18px;
}

.form-input {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1618);
    padding: 16.18px;
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.0618em;
    transition: all 0.382s;
    font-family: inherit;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Custom select arrow */
select.form-input {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.382)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16.18px center;
    background-size: 16.18px;
    padding-right: 42.36px;
    cursor: pointer;
}

select.form-input:hover {
    border-color: rgba(255, 255, 255, 0.236);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.618)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

select.form-input option {
    background: #000;
    color: rgba(255, 255, 255, 0.854);
    padding: 10px;
    font-size: 10px;
    letter-spacing: 0.0618em;
}

select.form-input option:disabled {
    color: rgba(255, 255, 255, 0.382);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.382);
    text-transform: uppercase;
    letter-spacing: 0.1618em;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.382);
    background-color: rgba(255, 255, 255, 0.0236);
}

select.form-input:focus {
    background-color: rgba(255, 255, 255, 0.0236);
}

.form-textarea {
    resize: none;
    min-height: 110.9px;
}

.form-submit {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.382);
    color: rgba(255, 255, 255, 0.854);
    padding: 16.18px 26.18px;
    font-size: 10px;
    letter-spacing: 0.236em;
    text-transform: uppercase;
    cursor: none;
    transition: all 0.382s;
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1618);
    transform: translate(-50%, -50%);
    transition: all 0.618s;
    border-radius: 50%;
}

.form-submit:hover {
    color: #000;
    background: rgba(255, 255, 255, 0.854);
    transform: translateY(-2.618px);
    box-shadow: 0 6.18px 16.18px rgba(255, 255, 255, 0.1618);
}

.form-submit:hover::before {
    width: 400px;
    height: 400px;
}

.contact-footer {
    text-align: center;
    margin-top: 68.54px;
    padding-top: 42.36px;
    border-top: 1px solid rgba(255, 255, 255, 0.0618);
}

.location-text {
    font-size: 10px;
    letter-spacing: 0.236em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.382);
}

@media (max-width: 618px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 42.36px;
    }

    .contact-methods {
        order: 2;
    }

    .contact-form {
        order: 1;
    }
}

/* Footer */
footer {
    position: relative;
    z-index: 20;
    padding: 68.54px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.0618);
}

.memory-ring {
    font-size: 10px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.382);
    margin-bottom: 26.18px;
    height: 16.18px;
    transition: opacity 0.618s;
}

.footer-text {
    font-size: 6.18px;
    letter-spacing: 0.382em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.236);
}

/* Time-based color shift */
.time-shift {
    animation: timeShift 86400s infinite linear;
}

@keyframes timeShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

/* Mobile Responsive at Golden Breakpoint */
@media (max-width: 618px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 26.18px;
    }

    .project-category {
        position: static;
        margin-bottom: 10px;
    }

    .hero h1 {
        font-size: calc(16.18px + 4vw);
    }

    .project-card {
        padding: 26.18px;
    }

    nav {
        top: 10px;
        right: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}
