/* ppzz.ee - McBling Aesthetic / Sepia-Nostalgic Palette */
/* Fonts: Space Grotesk (300,400,500,700), Cormorant Garamond (400,500,italic) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.72;
    color: #5a4635;
    background-color: #f5eed9;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3d2b1a;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
}

h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3d2b1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

p {
    margin-bottom: 0.75rem;
    color: #5a4635;
}

p:last-child {
    margin-bottom: 0;
}

.caption {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #8c7a63;
}

a {
    color: #b8856e;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: #c4a265;
    text-shadow: 0 0 8px rgba(196, 162, 101, 0.6);
}

/* ===== NAVIGATION ===== */
#nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 238, 225, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(196, 162, 101, 0.2);
}

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

.nav-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #3d2b1a;
}

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

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8c7a63;
    font-variant: small-caps;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
    color: #c4a265;
    text-shadow: 0 0 8px rgba(196, 162, 101, 0.6);
}

/* ===== THE SEAL (HERO) ===== */
.the-seal {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marble-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5eed9;
    filter: url(#marble-noise);
    z-index: 0;
}

.marble-bg-deep {
    filter: url(#marble-noise-deep);
}

.marble-veins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        radial-gradient(ellipse farthest-side at 15% 25%, rgba(156, 168, 141, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse farthest-side at 72% 18%, rgba(156, 168, 141, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse farthest-side at 40% 65%, rgba(156, 168, 141, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse farthest-side at 85% 78%, rgba(156, 168, 141, 0.04) 0%, transparent 65%),
        radial-gradient(ellipse farthest-side at 25% 88%, rgba(156, 168, 141, 0.05) 0%, transparent 45%);
    pointer-events: none;
}

.marble-veins-deep {
    background:
        radial-gradient(ellipse farthest-side at 20% 30%, rgba(156, 168, 141, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse farthest-side at 65% 15%, rgba(156, 168, 141, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse farthest-side at 45% 70%, rgba(156, 168, 141, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse farthest-side at 80% 82%, rgba(156, 168, 141, 0.06) 0%, transparent 65%),
        radial-gradient(ellipse farthest-side at 30% 92%, rgba(156, 168, 141, 0.07) 0%, transparent 45%);
}

.gold-line {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 60vh;
    max-height: 400px;
}

#seal-line {
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    animation: drawLine 2s ease-out forwards;
}

#seal-diamond {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawDiamond 1.2s ease-out 1.8s forwards;
}

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

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

.seal-label {
    position: absolute;
    bottom: 12vh;
    right: 8vw;
    z-index: 3;
}

.seal-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #8c7a63;
    opacity: 0;
    animation: fadeInDomain 1.5s ease-out 2.5s forwards;
}

@keyframes fadeInDomain {
    to { opacity: 1; }
}

/* ===== RHINESTONE SEPARATORS ===== */
.rhinestone-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.5rem 0;
}

.rhinestone-inline {
    break-inside: avoid;
    padding: 0.75rem 0;
}

.diamond {
    width: 4px;
    height: 4px;
    background: #c4a265;
    transform: rotate(45deg);
    opacity: 0.4;
    animation: sparkle 3s ease-in-out infinite;
}

.diamond:nth-child(3n+1) { animation-delay: 0s; }
.diamond:nth-child(3n+2) { animation-delay: 1s; }
.diamond:nth-child(3n) { animation-delay: 2s; }
.diamond:nth-child(5n) { animation-delay: 0.5s; }
.diamond:nth-child(7n) { animation-delay: 1.5s; }

@keyframes sparkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ===== THE CASCADE (MASONRY) ===== */
.the-cascade {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

/* ===== VITRINE (DISPLAY CASE) BLOCKS ===== */
.vitrine {
    break-inside: avoid;
    position: relative;
    background: #ece4d0;
    border: 2px solid #c4a265;
    box-shadow: inset 0 0 30px rgba(196, 162, 101, 0.08);
    margin-bottom: 1.5rem;
    padding: 2rem;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.vitrine:hover {
    box-shadow: inset 0 0 30px rgba(196, 162, 101, 0.08),
                0 4px 20px rgba(212, 196, 168, 0.4);
}

/* Vitrine variants */
.vitrine-razr {
    border-radius: 12px;
    border-image: linear-gradient(135deg, #c4a265, #b8856e, #c4a265) 1;
    aspect-ratio: auto;
    min-height: 380px;
    padding: 2.5rem 1.5rem;
}

.vitrine-wide {
    column-span: all;
    padding: 2.5rem 3rem;
}

.vitrine-mirror {
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    background: radial-gradient(circle at 35% 35%, rgba(245, 238, 217, 0.9) 0%, #ece4d0 40%, rgba(212, 196, 168, 0.6) 100%);
}

.vitrine-small {
    padding: 1.5rem;
}

.vitrine-small h3 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* Shimmer loading animation */
.vitrine-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: #ece4d0;
    opacity: 0;
    pointer-events: none;
}

.vitrine.loading .vitrine-shimmer {
    opacity: 1;
    background: linear-gradient(
        90deg,
        #ece4d0 0%,
        #ece4d0 30%,
        rgba(196, 162, 101, 0.15) 50%,
        #ece4d0 70%,
        #ece4d0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

.vitrine.loading .vitrine-content {
    opacity: 0;
}

.vitrine-content {
    position: relative;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Revealed state */
.vitrine.revealed .vitrine-shimmer {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.vitrine.revealed .vitrine-content {
    opacity: 1;
}

/* Watermark numerals */
.watermark-numeral {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 12vw;
    color: #c4a265;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

/* Mirror surface effect */
.mirror-surface {
    position: relative;
    z-index: 3;
}

.vitrine-mirror .mirror-surface h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
}

/* Gold fern corner ornaments */
.gold-fern {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 3;
    pointer-events: none;
}

.gold-fern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #c4a265;
    clip-path: polygon(0 0, 30% 0, 50% 50%, 30% 100%, 0 100%, 20% 50%);
    filter: drop-shadow(0 2px 4px rgba(61, 43, 26, 0.15));
    opacity: 0.6;
}

.fern-tl {
    top: 8px;
    left: 8px;
}

.fern-br {
    bottom: 8px;
    right: 8px;
    transform: rotate(180deg);
}

/* Vine border */
.vine-border {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
}

.vine-border svg {
    width: 100%;
    height: 100%;
}

.vine-border-right {
    left: auto;
    right: 0;
}

.vine-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 1.5s ease-out;
}

.vitrine.revealed .vine-path {
    stroke-dashoffset: 0;
}

/* Crystal flower icons */
.crystal-flowers {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.crystal-flower {
    width: 24px;
    height: 24px;
}

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

.signature-plinth {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
}

.curatorial-statement {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.8;
    color: #5a4635;
    padding: 2rem 0;
    border: none;
}

.signature-domain {
    margin-top: 3rem;
    display: inline-flex;
    gap: 0.1em;
}

.sig-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    color: #3d2b1a;
    display: inline-block;
    background: linear-gradient(90deg, #3d2b1a 0%, #c4a265 50%, #3d2b1a 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmerLetter 4s ease-in-out infinite;
}

.sig-letter:nth-child(1) { animation-delay: 0s; }
.sig-letter:nth-child(2) { animation-delay: 0.15s; }
.sig-letter:nth-child(3) { animation-delay: 0.3s; }
.sig-letter:nth-child(4) { animation-delay: 0.45s; }
.sig-letter:nth-child(5) { animation-delay: 0.6s; }
.sig-letter:nth-child(6) { animation-delay: 0.75s; }
.sig-letter:nth-child(7) { animation-delay: 0.9s; }

@keyframes goldShimmerLetter {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    background: #ece4d0;
    border-top: 1px solid rgba(196, 162, 101, 0.3);
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: #8c7a63;
    margin-bottom: 0.25rem;
}

.footer-location {
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
    .vitrine-wide {
        column-span: none;
    }
}

@media (max-width: 640px) {
    .masonry-grid {
        column-count: 1;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-link {
        font-size: 0.7rem;
    }
    .vitrine {
        padding: 1.5rem;
    }
    .vitrine-mirror {
        padding: 2rem;
    }
    .vitrine-razr {
        min-height: 280px;
    }
    .seal-label {
        right: 5vw;
        bottom: 8vh;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: no-preference) {
    .vitrine {
        transform: translateY(0);
    }
}

/* ===== ADDITIONAL COLOR USAGE ===== */
/* Sage Vein (#9ca88d) for marble vein accents */
.vitrine-razr::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9ca88d, transparent);
    opacity: 0.3;
}

/* Sepia Shadow (#d4c4a8) for depth */
.vitrine {
    box-shadow: inset 0 0 30px rgba(196, 162, 101, 0.08), 0 2px 8px #d4c4a8;
}

.vitrine:hover {
    box-shadow: inset 0 0 30px rgba(196, 162, 101, 0.08),
                0 4px 20px #d4c4a8;
}
