:root {
    --cream: #f5f0e8;
    --ink: #1a1714;
    --gold: #c9a84c;
    --gold-light: #e8d4a0;
    --rust: #8b4a2f;
    --sage: #4a5e4d;
    --muted: #7a7268;
    --surface: #EDEAD F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0e0c0a;
    color: var(--cream);
    font-family: "Cormorant Garamond", serif;
    overflow-x: hidden;
    cursor: none;
}

/* CUSTOM CURSOR */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
        width 0.2s,
        height 0.2s,
        background 0.2s;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201, 168, 76, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.12s ease-out;
}

.cursor.hover {
    width: 16px;
    height: 16px;
    background: transparent;
    border: 1.5px solid var(--gold);
}

.cursor-ring.hover {
    width: 0;
    height: 0;
    opacity: 0;
}

/* CANVAS */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 28px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: normal;
}

nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(14, 12, 10, 0.9),
            transparent);
    pointer-events: none;
}

.nav-logo {
    font-size: 1.05rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-family: "DM Mono", monospace;
    font-weight: 300;
    color: var(--gold);
    position: relative;
    z-index: 1;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.nav-links a {
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

/* HERO */
#hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
}

.hero-eyebrow {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s ease forwards 0.5s;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--cream);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s ease forwards 0.7s;
}

.hero-title em {
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
}

.hero-subtitle {
    margin-top: 32px;
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.55);
    max-width: 460px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s ease forwards 0.9s;
}

.hero-cta {
    margin-top: 52px;
    display: flex;
    gap: 24px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s ease forwards 1.1s;
}

.btn-primary {
    padding: 16px 40px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--ink);
}

.btn-primary:hover::before {
    transform: scaleX(1);
}

.scroll-hint {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(245, 240, 232, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 48px;
    height: 1px;
    background: rgba(245, 240, 232, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    animation: scrollLine 2s ease infinite 1.5s;
}

/* ABOUT */
#about {
    position: relative;
    z-index: 1;
    padding: 130px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-left .section-label {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-left .section-label::after {
    content: "";
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

.about-heading {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 28px;
}

.about-heading em {
    font-style: italic;
    color: var(--gold);
}

.about-body {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(245, 240, 232, 0.65);
    margin-bottom: 36px;
}

.stats-row {
    display: flex;
    gap: 48px;
    margin-top: 20px;
}

.stat-item {}

.stat-num {
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--gold);
    font-style: italic;
    display: block;
    font-family: "Cormorant Garamond", serif;
}

.stat-label {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.4);
    margin-top: 4px;
}

.about-right {
    position: relative;
}

.about-img-frame {
    position: relative;
    background: linear-gradient(135deg,
            rgba(201, 168, 76, 0.08),
            rgba(201, 168, 76, 0.02));
    border: 1px solid rgba(201, 168, 76, 0.15);
    padding: 3px;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.about-img-frame::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 30%;
    right: 30%;
    height: 1px;
    background: var(--gold);
    z-index: 2;
}

.portrait-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg,
            #1c1814 0%,
            #2a2218 50%,
            #1c1814 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.portrait-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%,
            rgba(201, 168, 76, 0.12) 0%,
            transparent 70%);
}

.portrait-icon {
    font-size: 5rem;
    opacity: 0.12;
    color: var(--gold);
    position: relative;
    z-index: 1;
}

.portrait-note {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(201, 168, 76, 0.3);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.about-accent {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.about-accent::before {
    content: "";
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(201, 168, 76, 0.08);
    border-radius: 50%;
}

/* SKILLS */
.skills-strip {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    padding: 28px 60px;
    display: flex;
    gap: 0;
    overflow: hidden;
}

.skills-track {
    display: flex;
    gap: 60px;
    animation: scroll-track 20s linear infinite;
    white-space: nowrap;
}

.skill-tag {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.3);
    flex-shrink: 0;
}

.skill-tag span {
    color: var(--gold);
    margin-right: 12px;
}

/* WORK */
#work {
    position: relative;
    z-index: 1;
    padding: 100px 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.section-title-block .section-label {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
}

.section-title em {
    font-style: italic;
    color: var(--gold);
}

.view-all {
    font-family: "DM Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.4);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 240, 232, 0.15);
    padding-bottom: 4px;
    transition: all 0.3s;
}

.view-all:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 16px;
}

.work-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease;
    filter: brightness(0.85);
}

.work-item:hover .work-image {
    transform: scale(1.05);
    filter: brightness(0.75);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-item:nth-child(1) {
    grid-column: span 7;
    grid-row: span 1;
    aspect-ratio: 16/10;
}

.work-item:nth-child(2) {
    grid-column: span 5;
    grid-row: span 1;
    aspect-ratio: 4/3;
}

.work-item:nth-child(3) {
    grid-column: span 4;
    aspect-ratio: 3/4;
}

.work-item:nth-child(4) {
    grid-column: span 4;
    aspect-ratio: 3/4;
}

.work-item:nth-child(5) {
    grid-column: span 4;
    aspect-ratio: 3/4;
}

.work-item:nth-child(6) {
    grid-column: span 4;
    aspect-ratio: 3/4;
}

.work-item:nth-child(7) {
    grid-column: span 4;
    aspect-ratio: 3/4;
}

.work-item:nth-child(8) {
    grid-column: span 4;
    aspect-ratio: 3/4;
}

.work-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    filter: brightness(0.85);
}

.work-item:hover .work-media {
    transform: scale(1.05);
    filter: brightness(0.75);
}

.work-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1c1814, #2a1f16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.6s ease;
    min-height: 200px;
}

.work-item:hover .work-placeholder {
    transform: scale(1.05);
}

.wp-icon {
    font-size: 2.8rem;
    opacity: 0.15;
    color: var(--gold);
}

.wp-type {
    font-family: "DM Mono", monospace;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.25);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(14, 12, 10, 0.9) 0%,
            transparent 55%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-category {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.work-name {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.3;
}

/* SERVICES */
#services {
    position: relative;
    z-index: 1;
    padding: 100px 60px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(201, 168, 76, 0.03),
            transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(201, 168, 76, 0.08);
    margin-top: 60px;
    border: 1px solid rgba(201, 168, 76, 0.08);
}

.service-card {
    background: #0e0c0a;
    padding: 44px 36px;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover {
    background: #141210;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-num {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(201, 168, 76, 0.3);
    margin-bottom: 28px;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 300;
    margin-bottom: 16px;
}

.service-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(245, 240, 232, 0.5);
}

/* CONTACT */
#contact {
    position: relative;
    z-index: 1;
    padding: 130px 60px;
    text-align: center;
}

.contact-tagline {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
}

.contact-heading {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 16px;
}

.contact-heading em {
    font-style: italic;
    color: var(--gold);
}

.contact-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.5);
    margin-bottom: 56px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.contact-link {
    font-family: "DM Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.5);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 240, 232, 0.15);
    padding-bottom: 4px;
    transition: all 0.3s;
}

.contact-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.contact-email {
    display: inline-block;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--cream);
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 240, 232, 0.2);
    padding-bottom: 6px;
    transition: all 0.3s;
    margin-bottom: 80px;
}

.contact-email:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* FOOTER */
footer {
    position: relative;
    z-index: 1;
    padding: 28px 60px;
    border-top: 1px solid rgba(201, 168, 76, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(245, 240, 232, 0.25);
}

.footer-love {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(245, 240, 232, 0.25);
}

/* ANIMATIONS */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes scroll-track {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* LOADING */
#loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #0e0c0a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-bar {
    width: 200px;
    height: 1px;
    background: rgba(201, 168, 76, 0.15);
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.loader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gold);
    animation: loadFill 1.5s ease forwards;
}

.loader-text {
    font-family: "DM Mono", monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.5);
}

@keyframes loadFill {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 20px 24px;
    }

    .nav-links {
        display: none;
    }

    #hero {
        padding: 0 24px;
    }

    #about {
        grid-template-columns: 1fr;
        padding: 80px 24px;
        gap: 48px;
    }

    .about-right {
        display: none;
    }

    #work {
        padding: 80px 24px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        aspect-ratio: 4/3;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    #services,
    #contact {
        padding: 80px 24px;
    }

    footer {
        flex-direction: column;
        gap: 12px;
        padding: 20px 24px;
        text-align: center;
    }

    .stats-row {
        gap: 24px;
    }

    .contact-links {
        gap: 20px;
    }

    .skills-strip {
        padding: 20px 24px;
    }
}