/* relativity.studio - Skeuomorphic Nostalgic-Retro Creative Studio */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Libre Baskerville (Baskerville substitute), Inter */

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

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --leather-dark: #3a2a1a;
    --leather-mid: #5c4033;
    --leather-light: #7a5c47;
    --shadow-deep: rgba(0, 0, 0, 0.5);
    --shadow-mid: rgba(0, 0, 0, 0.25);
    --shadow-light: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Libre Baskerville', 'Georgia', serif;
    background-color: var(--deep-base);
    color: var(--warm-white);
    overflow-x: hidden;
    line-height: 1.7;
    position: relative;
}

/* Leather Texture Overlay */
#leather-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(92, 64, 51, 0.3) 2px,
            rgba(92, 64, 51, 0.3) 3px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(58, 42, 26, 0.2) 3px,
            rgba(58, 42, 26, 0.2) 4px
        ),
        radial-gradient(ellipse at 20% 50%, rgba(122, 92, 71, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(92, 64, 51, 0.1) 0%, transparent 50%);
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 3rem;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#main-nav.scrolled {
    background-color: rgba(26, 26, 46, 0.95);
    box-shadow: 0 4px 20px var(--shadow-deep),
                inset 0 -1px 0 rgba(232, 184, 75, 0.15);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.75rem;
    color: var(--accent-gold);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(232, 184, 75, 0.2),
                0 2px 8px var(--shadow-mid);
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--warm-white);
}

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

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-white);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

/* Underline draw animation */
.underline-draw::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.underline-draw:hover::after {
    width: 100%;
}

/* Full-bleed sections */
.full-bleed {
    width: 100%;
    position: relative;
}

.section-padded {
    padding: 8rem 3rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Section headings with underline-draw */
.section-heading {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 2.5rem;
    color: var(--warm-white);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.underline-draw-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-gold);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.underline-draw-heading.visible::after {
    width: 100%;
}

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

.hero-depth-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-layer-back {
    background: radial-gradient(ellipse at 30% 40%, rgba(74, 144, 217, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 60%, rgba(232, 184, 75, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-layer-mid {
    background:
        linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.3) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(232, 184, 75, 0.02) 100px,
            rgba(232, 184, 75, 0.02) 101px
        );
    z-index: 2;
    box-shadow: inset 0 0 200px var(--shadow-light);
}

.hero-layer-front {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.6) 0%, transparent 30%, transparent 70%, rgba(26, 26, 46, 0.8) 100%);
    z-index: 3;
}

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

.hero-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-line {
    display: block;
}

.hero-line-1 {
    font-size: 1.25rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-line-2 {
    font-size: 4rem;
    color: var(--warm-white);
    opacity: 0;
    transform: translateY(30px);
}

.hero-line-3 {
    font-size: 4rem;
    color: var(--warm-white);
    opacity: 0;
    transform: translateY(30px);
}

.hero-line-3 em {
    font-style: italic;
    color: var(--accent-gold);
}

.hero-line.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--muted-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease 0.6s, transform 1s ease 0.6s;
}

/* Embossed Button */
.btn-embossed {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-white);
    text-decoration: none;
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(232, 184, 75, 0.4);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(232, 184, 75, 0.08) 0%, rgba(232, 184, 75, 0.02) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 4px 12px var(--shadow-mid),
        0 1px 3px var(--shadow-light);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.btn-embossed.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease 0.9s, transform 1s ease 0.9s, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn-embossed:hover {
    border-color: var(--accent-gold);
    background: linear-gradient(180deg, rgba(232, 184, 75, 0.15) 0%, rgba(232, 184, 75, 0.05) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 6px 20px var(--shadow-deep),
        0 2px 6px var(--shadow-mid);
}

.btn-embossed:active {
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px var(--shadow-light);
    transform: translateY(1px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Work Section */
#work {
    background: linear-gradient(180deg, var(--deep-base) 0%, rgba(26, 26, 46, 0.95) 50%, var(--deep-base) 100%);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.work-card {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
    box-shadow:
        0 4px 16px var(--shadow-mid),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px var(--shadow-deep),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.work-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 65%;
    overflow: hidden;
}

.work-card-mono {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

#work-img-1 {
    background: linear-gradient(135deg, #3a3a4e 0%, #2a2a3e 40%, #4a4a5e 100%);
    background-size: cover;
}

#work-img-2 {
    background: linear-gradient(225deg, #4a4a5e 0%, #2a2a3e 50%, #3a3a4e 100%);
    background-size: cover;
}

#work-img-3 {
    background: linear-gradient(45deg, #2a2a3e 0%, #4a4a5e 30%, #3a3a4e 100%);
    background-size: cover;
}

#work-img-4 {
    background: linear-gradient(315deg, #3a3a4e 0%, #4a4a5e 60%, #2a2a3e 100%);
    background-size: cover;
}

.work-card:hover .work-card-mono {
    filter: grayscale(60%) contrast(1.05);
    transform: scale(1.03);
}

.work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 46, 0.85) 100%);
    z-index: 2;
}

.work-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 3;
}

.work-card-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 1.375rem;
    color: var(--warm-white);
    margin-bottom: 0.25rem;
}

.work-card-category {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

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

.about-depth-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.about-layer-paper {
    background:
        linear-gradient(180deg, var(--deep-base) 0%, rgba(30, 28, 40, 0.98) 10%, rgba(30, 28, 40, 0.98) 90%, var(--deep-base) 100%);
    box-shadow: inset 0 4px 30px var(--shadow-mid), inset 0 -4px 30px var(--shadow-mid);
}

.about-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: rgba(245, 240, 232, 0.85);
    margin-bottom: 1.5rem;
}

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

.emblem-svg {
    width: 280px;
    height: 280px;
    opacity: 0.6;
    animation: emblemSpin 60s linear infinite;
}

@keyframes emblemSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Process Section */
#process {
    background: var(--deep-base);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1px 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(232, 184, 75, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    opacity: 0.5;
    text-align: right;
    padding-top: 0.25rem;
}

.step-divider {
    width: 1px;
    background: linear-gradient(180deg, var(--accent-gold), transparent);
    opacity: 0.3;
}

.step-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--warm-white);
    margin-bottom: 0.75rem;
}

.step-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--muted-gray);
}

/* Contact Section */
.contact-section {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-depth-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(74, 144, 217, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, var(--deep-base) 0%, rgba(30, 28, 40, 0.98) 20%, rgba(30, 28, 40, 0.98) 80%, var(--deep-base) 100%);
    box-shadow: inset 0 4px 30px var(--shadow-mid);
}

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

.contact-inner .section-heading {
    display: block;
    text-align: center;
}

.contact-inner .underline-draw-heading::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.125rem;
    color: var(--muted-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-link {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.75rem;
    color: var(--accent-gold);
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.social-link {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-gray);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--warm-white);
}

/* Footer */
#footer {
    position: relative;
    padding: 2rem 3rem;
    border-top: 1px solid rgba(232, 184, 75, 0.1);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    color: var(--muted-gray);
}

.footer-copy {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--muted-gray);
    opacity: 0.6;
}

.footer-stitching {
    position: absolute;
    top: 0;
    left: 3rem;
    right: 3rem;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent-gold) 0px,
        var(--accent-gold) 6px,
        transparent 6px,
        transparent 12px
    );
    opacity: 0.2;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-line-2,
    .hero-line-3 {
        font-size: 2.5rem;
    }

    .section-padded {
        padding: 5rem 1.5rem;
    }

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

    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-step {
        grid-template-columns: 50px 1px 1fr;
        gap: 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    #main-nav {
        padding: 1rem 1.5rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .contact-link {
        font-size: 1.25rem;
    }

    .contact-social {
        flex-direction: column;
        gap: 1.5rem;
    }
}
