/* mystical.day - Swiss-Occult Opulence */
/* Colors: #8B1A1A, #7A7A7A, #E8D5A3, #8B7340, #C9A84C, #141414, #0A0A0A */
/* Fonts: Playfair Display, IBM Plex Sans, IBM Plex Mono */

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

body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #E8D5A3;
    background: #0A0A0A;
    overflow-x: hidden;
}

/* Swiss Grid Lines */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: gridFadeIn 2s ease 1s forwards;
}

.grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #C9A84C;
    opacity: 0.08;
}

/* Viewports */
.viewport {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    z-index: 5;
}

.viewport--hero {
    background: #0A0A0A;
}

.viewport--arcana {
    background: #0A0A0A;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.viewport--geometry {
    background: #141414;
}

.viewport--alchemy {
    background: #0A0A0A;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.viewport--footer {
    background: #0A0A0A;
    min-height: 40vh;
    text-align: center;
}

.viewport__content {
    max-width: 900px;
    width: 100%;
}

/* Z-Pattern layout */
.viewport__content--z {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 40px;
}

.z-top {
    text-align: left;
}

.z-top--right {
    text-align: right;
}

.z-diagonal {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.z-bottom {
    text-align: left;
}

.z-bottom--left {
    text-align: left;
}

/* Typography */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    color: #C9A84C;
}

.hero-title__word {
    display: inline-block;
    opacity: 0;
    animation: titleReveal 1.2s ease forwards;
}

.hero-title__word:nth-child(1) {
    animation-delay: 1.5s;
}

.hero-title__dot {
    display: inline-block;
    color: #8B1A1A;
    opacity: 0;
    animation: titleReveal 0.6s ease 2.2s forwards;
}

.hero-title__word:nth-child(3) {
    animation-delay: 2.5s;
}

.hero-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7A7A7A;
    text-align: center;
    margin-top: 24px;
    opacity: 0;
    animation: fadeUp 1s ease 3.2s forwards;
}

.numeral {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #8B7340;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 8px;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #C9A84C;
}

.body-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: #E8D5A3;
    max-width: 600px;
}

/* Angular Frame */
.angular-frame {
    width: 200px;
    height: 120px;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.15);
    position: relative;
}

.angular-frame__inner {
    position: absolute;
    inset: 8px;
    background: rgba(141, 26, 26, 0.1);
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
}

/* Sacred SVG */
.sacred-svg {
    width: 180px;
    height: 180px;
    animation: slowRotate 60s linear infinite;
}

/* Alchemy Symbols */
.alchemy-symbols {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.alchemy-symbol {
    font-size: 2.5rem;
    color: #C9A84C;
    opacity: 0.5;
}

/* Footer */
.footer-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #C9A84C;
    margin-bottom: 8px;
}

.footer-sub {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: #7A7A7A;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Scroll Reveal */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes gridFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes titleReveal {
    from { opacity: 0; letter-spacing: 0.15em; }
    to { opacity: 1; letter-spacing: 0.02em; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .viewport {
        padding: 60px 24px;
    }

    .alchemy-symbols {
        gap: 24px;
    }

    .alchemy-symbol {
        font-size: 2rem;
    }
}
