/* ppss.ee - Japanese Minimal + Editorial + Terracotta Warm */
/* Palette: #7a2e1a #c4622d #e8a87c #f5e6d3 #fdf9f4 #2c1810 #8b6355 #c9a227 */

:root {
    --deep-terracotta: #7a2e1a;
    --warm-rust: #c4622d;
    --peach-sienna: #e8a87c;
    --cream: #f5e6d3;
    --warm-white: #fdf9f4;
    --dark-umber: #2c1810;
    --warm-gray: #8b6355;
    --amber-gold: #c9a227;

    --font-primary: 'Space Grotesk', 'Inter', sans-serif;
    --font-secondary: 'Cormorant', Georgia, serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--warm-white);
    color: var(--dark-umber);
    line-height: 1.6;
    overflow-x: hidden;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ============================================
   DIAMOND ACCENTS
   clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)
   ============================================ */
.diamond-accent {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background-color: var(--amber-gold);
}

.diamond-hero {
    width: 24px;
    height: 24px;
    margin-bottom: 3rem;
}

.diamond-small {
    width: 12px;
    height: 12px;
    margin-bottom: 1.5rem;
}

.diamond-large {
    width: 20px;
    height: 20px;
    background-color: var(--peach-sienna);
}

/* ============================================
   BORDER ANIMATION
   Grows from 0 to full length on reveal
   ============================================ */
.border-animate {
    position: absolute;
    background-color: var(--peach-sienna);
    transition: none;
}

.border-animate--left {
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
}

.border-animate--left.is-visible {
    height: 100%;
    transition: height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.border-animate--bottom {
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
}

.border-animate--bottom.is-visible {
    width: 100%;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.border-animate--top {
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
}

.border-animate--top.is-visible {
    width: 100%;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background-color: rgba(253, 249, 244, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.nav-logo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--dark-umber);
    text-decoration: none;
    letter-spacing: 0.02em;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--warm-gray);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--deep-terracotta);
}

/* ============================================
   HERO SECTION - 40%+ intentional space (ma)
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 3rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

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

.hero-title-line--1 {
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--dark-umber);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-title-line--2 {
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--warm-rust);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--warm-gray);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

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

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

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

/* ============================================
   SECTIONS - GENERAL
   Ma: min 40% negative space
   ============================================ */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
}

.label-mono {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.section-heading {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--dark-umber);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-body {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--warm-gray);
    max-width: 560px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background-color: var(--warm-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    align-items: start;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.about-label {
    padding-top: 0.5rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background-color: var(--cream);
}

.services-label {
    margin-bottom: 4rem;
}

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

.service-card {
    position: relative;
    padding: 2.5rem 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.service-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-umber);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-desc {
    font-family: var(--font-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--warm-gray);
}

/* Leather Panel */
.leather-panel {
    margin-top: 5rem;
    background-color: var(--deep-terracotta);
    position: relative;
    overflow: hidden;
}

.leather-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.5;
    pointer-events: none;
}

.leather-panel-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 3rem;
    position: relative;
    z-index: 1;
}

.leather-panel-text {
    font-family: var(--font-secondary);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    color: var(--cream);
    max-width: 600px;
    line-height: 1.6;
}

/* ============================================
   WORK SECTION
   ============================================ */
.work {
    background-color: var(--warm-white);
}

.work-label {
    margin-bottom: 4rem;
}

.work-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.work-item {
    position: relative;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(139, 99, 85, 0.15);
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.work-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.work-item:first-child {
    border-top: 1px solid rgba(139, 99, 85, 0.15);
}

.work-item-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 2rem;
    transition: transform 0.4s ease;
}

.work-item:hover .work-item-inner {
    transform: translateX(12px);
}

.work-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--warm-gray);
    letter-spacing: 0.05em;
}

.work-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--dark-umber);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.work-item:hover .work-title {
    color: var(--warm-rust);
}

.work-category {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.work-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cream) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.work-item:hover .work-item-bg {
    opacity: 1;
}

/* ============================================
   PHILOSOPHY SECTION
   Heavy ma - centered quote
   ============================================ */
.philosophy {
    padding: 12rem 0;
    background-color: var(--warm-white);
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.philosophy-quote {
    max-width: 700px;
}

.philosophy-quote p {
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--dark-umber);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
    padding-bottom: 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-content {
    position: relative;
    padding-top: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.contact-heading {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-umber);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.contact-email {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--warm-rust);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-email:hover {
    color: var(--deep-terracotta);
    border-bottom-color: var(--deep-terracotta);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 2rem 0;
    background-color: var(--dark-umber);
}

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

.footer-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--cream);
    letter-spacing: 0.02em;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--warm-gray);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-inner {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: 0 1.5rem;
    }

    .section-inner {
        padding: 0 1.5rem;
    }

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

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

    .work-item-inner {
        grid-template-columns: 40px 1fr;
    }

    .work-category {
        grid-column: 2;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .leather-panel-inner {
        padding: 3rem 1.5rem;
    }

    .footer-inner {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .section {
        padding: 5rem 0;
    }

    .philosophy {
        padding: 8rem 0;
    }
}
