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

html {
    scroll-behavior: smooth;
}

body {
    background: #1a0a14;
    color: #f2e6d9;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    line-height: 1.6;
}

/* === NOISE CANVAS === */
#noise-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.06;
    background-color: #2d1525;
}

/* === PARALLAX CONTAINER === */
#parallax-container {
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* === PANELS === */
.panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    max-width: 900px;
    width: 100%;
}

.layer-deep {
    transform: translateZ(-200px) scale(1.167);
}

.layer-mid {
    transform: translateZ(-100px) scale(1.083);
}

.layer-near {
    transform: translateZ(0px);
}

/* === LANDING === */
#landing {
    background: radial-gradient(ellipse at 30% 50%, #3d2233 0%, #1a0a14 70%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(242, 230, 217, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 230, 217, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.wordmark {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: #f2e6d9;
    text-align: center;
}

.wordmark .dot {
    color: #e84a5f;
}

.tagline {
    font-family: 'Inconsolata', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a7262;
    text-align: center;
    margin-top: 1.2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-text {
    font-family: 'Inconsolata', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a7262;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #e84a5f, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* === SECTION COMMON === */
.section-label {
    font-family: 'Inconsolata', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7a2840;
    margin-bottom: 2rem;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #f2e6d9;
    margin-bottom: 1.5rem;
}

.section-heading em {
    font-style: italic;
    color: #f5a0b1;
}

.section-body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #c4a882;
    max-width: 600px;
}

.accent-bar {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #e84a5f, #7a2840);
    margin-top: 2rem;
}

/* === ABOUT === */
#about {
    background: linear-gradient(135deg, #1a0a14 0%, #3d2233 100%);
}

/* === WORK === */
#work {
    background: #1a0a14;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.work-item {
    border: 1px solid rgba(122, 40, 64, 0.4);
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.work-item:hover {
    border-color: #e84a5f;
    transform: translateY(-4px);
}

.work-item-visual {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #3d2233, #7a2840);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.work-item-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(26, 10, 20, 0.3) 2px,
        rgba(26, 10, 20, 0.3) 4px
    );
}

.work-item-title {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #f2e6d9;
    margin-bottom: 0.3rem;
}

.work-item-type {
    font-family: 'Inconsolata', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a7262;
}

/* === SERVICES === */
#services {
    background: radial-gradient(ellipse at 70% 60%, #3d2233 0%, #1a0a14 70%);
}

.services-list {
    list-style: none;
    margin-top: 2rem;
}

.service-item {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(122, 40, 64, 0.3);
    transition: padding-left 0.3s ease;
}

.service-item:hover {
    padding-left: 1rem;
}

.service-num {
    font-family: 'Inconsolata', monospace;
    font-size: 0.8rem;
    color: #e84a5f;
}

.service-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #f2e6d9;
}

/* === CONTACT === */
#contact {
    background: linear-gradient(180deg, #1a0a14 0%, #3d2233 100%);
}

.contact-link {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #e84a5f;
    text-decoration: none;
    margin-top: 1.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-link:hover {
    border-bottom-color: #e84a5f;
}

.coordinates {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
}

.coord-item {
    font-family: 'Inconsolata', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: #8a7262;
}

/* === REVEAL ANIMATIONS === */
.panel-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.layer-deep.visible {
    transform: translateZ(-200px) scale(1.167) translateY(0);
}

.layer-mid.visible {
    transform: translateZ(-100px) scale(1.083) translateY(0);
}

.layer-near.visible {
    transform: translateZ(0px) translateY(0);
}
