/* ============================================================
   domain -- Luxury Domain Presentation
   Colors: #f5e6c8, #e8d4b0, #f0dcc0, #c4a44e, #3d3020,
           #8a7040, #faf5ec, #7a8a6a
   Fonts: Space Grotesk, Cormorant Garamond, Space Mono
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3d3020;
    background: #f5e6c8;
    overflow-x: hidden;
    position: relative;
}

/* --- Skeleton Loading --- */
.skeleton {
    display: block;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(196,164,78,0.1), rgba(196,164,78,0.3), rgba(196,164,78,0.1));
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

.hero-skeleton {
    width: 60%;
    height: 80px;
    margin: 0 auto;
}

.cell-skeleton {
    width: 80%;
    height: 24px;
    margin-bottom: 12px;
}

.loaded .skeleton {
    display: none;
}

.content {
    opacity: 0;
}

.loaded .content {
    opacity: 1;
    transition: opacity 0.8s ease;
}

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

/* --- Floating Bubbles --- */
.bubbles-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    width: var(--size);
    height: var(--size);
    left: var(--left);
    bottom: -100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: float var(--duration) var(--delay) ease-in-out infinite;
}

.bubble::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.7), rgba(255,255,255,0) 70%);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(calc(-100vh - 120px)) translateX(var(--drift));
        opacity: 0;
    }
}

/* --- Particle Field Canvas --- */
#particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --- Hero Section: The Charter --- */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f5e6c8, #e8d4b0, #f0dcc0);
    text-align: center;
    padding: 2rem;
}

.hero-inner {
    max-width: 900px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.3em;
    text-transform: lowercase;
    background: linear-gradient(90deg, #8a7040, #c4a44e, #f5e6c8, #c4a44e, #8a7040);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sheen 4s linear infinite;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #8a7040;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

/* --- Showcase Grid --- */
.showcase-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #c4a44e;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-cell {
    background: #faf5ec;
    border: 1px solid #c4a44e;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-cell.hero-card {
    grid-column: span 2;
}

.cell-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a7040;
    display: block;
    margin-bottom: 1rem;
}

.cell-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.05em;
    color: #3d3020;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cell-body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3d3020;
    max-width: 540px;
    margin-bottom: 1.5rem;
}

.cell-mark {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c4a44e;
    display: block;
}

/* --- Hero Eyebrow --- */
.hero-eyebrow {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a7040;
    display: block;
    margin-bottom: 2rem;
}

/* --- Hero Meta --- */
.hero-meta {
    margin-top: 2rem;
}

.meta-item {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a7040;
    display: inline;
}

.meta-divider {
    margin: 0 1rem;
    color: #c4a44e;
}

/* --- Hero Scroll Indicator --- */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a7040;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: #c4a44e;
    margin: 0.5rem auto;
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* --- Charter Strip --- */
.charter-strip {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #f5e6c8, #e8d4b0);
    padding: 4rem 2rem;
    text-align: center;
}

.charter-inner {
    max-width: 900px;
    margin: 0 auto;
}

.charter-eyebrow {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a7040;
    display: block;
    margin-bottom: 2rem;
}

.charter-line {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.8;
    color: #3d3020;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.charter-divider {
    color: #c4a44e;
    margin: 0 0.5rem;
}

.charter-attr {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8a7040;
    display: block;
}

/* --- The Seal (Footer) --- */
.seal {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(180deg, #f0dcc0, #f5e6c8);
}

.seal-emblem {
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #c4a44e;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-line {
    width: 60%;
    height: 2px;
    background: #c4a44e;
}

.seal-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    text-transform: lowercase;
    color: #3d3020;
    margin-bottom: 0.5rem;
}

.seal-sub {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a7040;
    margin-bottom: 0.5rem;
}

.seal-meta {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #7a8a6a;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .grid-cell.hero-card {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .hero-title {
        letter-spacing: 0.15em;
    }

    .grid-cell {
        padding: 2rem;
    }
}
