/* =============================================
   mujun.studio — Luxury Paradox Design
   Colors: #0A0A0A, #F0EDE5, #C9A84C, #8B6914, #6B5B3E, #3A3632, #D4A89A
   Fonts: Poiret One, Cormorant Garamond, Space Mono
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0A0A0A;
    color: #F0EDE5;
    overflow-x: hidden;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    line-height: 1.8;
}

::selection {
    background: #C9A84C;
    color: #0A0A0A;
}

/* ---- Acts (Full Viewport Sections) ---- */
.act {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

.act-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.narrow-column {
    max-width: 720px;
    margin: 0 auto;
}

/* ---- Act Labels & Titles ---- */
.act-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: #6B5B3E;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.act-title {
    font-family: 'Poiret One', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.15em;
    color: #F0EDE5;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.gold-rule {
    width: 60px;
    height: 1px;
    background: #C9A84C;
    margin: 0 auto 2.5rem;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.visible .act-label,
.visible .act-title,
.visible .gold-rule,
.visible .philosophy-text,
.visible .method-item,
.visible .closing-kanji,
.visible .closing-text,
.visible .contact-link,
.visible .closing-rule,
.visible .copyright {
    opacity: 1;
    transform: translateY(0) scaleX(1);
}

/* ---- ACT I: Hero ---- */
.act-i {
    background: #000000;
    flex-direction: column;
}

.hero-kanji {
    display: flex;
    gap: 0.1em;
    justify-content: center;
    margin-bottom: 2rem;
}

.kanji {
    font-family: 'Poiret One', serif;
    font-size: clamp(6rem, 15vw, 12rem);
    color: #C9A84C;
    letter-spacing: 0.05em;
    display: inline-block;
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.kanji-spear {
    transform: translateX(-30px);
}

.kanji-shield {
    transform: translateX(30px);
}

.kanji.revealed {
    opacity: 1;
    transform: translateX(0);
}

.hero-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: #6B5B3E;
    opacity: 0;
    transition: opacity 1.5s ease 0.8s;
}

.hero-tagline.revealed {
    opacity: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1.5s ease 1.5s;
}

.scroll-indicator.revealed {
    opacity: 1;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, #C9A84C, 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); }
}

/* ---- ACT II: Philosophy ---- */
.philosophy-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    font-style: italic;
    line-height: 2;
    color: #F0EDE5;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.philosophy-text.secondary {
    color: #D4A89A;
    font-size: clamp(1rem, 2vw, 1.2rem);
    transition-delay: 0.6s;
}

/* ---- ACT III: Geometry ---- */
.act-iii {
    overflow: hidden;
}

.geometric-field {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Sunburst */
.sunburst {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 15%;
    left: 10%;
    border-radius: 50%;
    background: repeating-conic-gradient(
        #C9A84C 0deg 2deg,
        transparent 2deg 15deg
    );
    opacity: 0.15;
    animation: floatSlow 20s ease-in-out infinite;
}

/* Diamond Frame */
.diamond-frame {
    position: absolute;
    width: 120px;
    height: 120px;
    top: 25%;
    right: 12%;
    border: 1px solid #C9A84C;
    transform: rotate(45deg);
    opacity: 0.2;
    animation: floatSlow 16s ease-in-out infinite reverse;
}

.diamond-frame::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid #8B6914;
}

/* Concentric Rings */
.concentric-rings {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 180px;
    height: 180px;
    animation: floatSlow 22s ease-in-out infinite;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #C9A84C;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 { width: 180px; height: 180px; opacity: 0.1; }
.ring-2 { width: 120px; height: 120px; opacity: 0.15; }
.ring-3 { width: 60px; height: 60px; opacity: 0.2; }

/* Chevron Stack */
.chevron-stack {
    position: absolute;
    bottom: 30%;
    right: 18%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: floatSlow 18s ease-in-out infinite reverse;
}

.chevron {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 10px solid #C9A84C;
}

.c1 { opacity: 0.3; }
.c2 { opacity: 0.2; }
.c3 { opacity: 0.1; }

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(var(--base-rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--base-rotation, 0deg)); }
}

.diamond-frame {
    --base-rotation: 45deg;
}

/* ---- ACT IV: Method ---- */
.method-items {
    text-align: left;
    margin-top: 2rem;
}

.method-item {
    padding: 2.5rem 0;
    border-bottom: 1px solid #3A3632;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.method-item:nth-child(1) { transition-delay: 0.3s; }
.method-item:nth-child(2) { transition-delay: 0.5s; }
.method-item:nth-child(3) { transition-delay: 0.7s; }

.method-number {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #C9A84C;
    letter-spacing: 0.2em;
}

.method-name {
    font-family: 'Poiret One', cursive;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: 0.15em;
    font-weight: 400;
    margin: 0.5rem 0 1rem;
    color: #F0EDE5;
}

.method-desc {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #6B5B3E;
}

/* ---- ACT V: Closing ---- */
.act-v {
    padding-bottom: 6rem;
}

.closing-kanji {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.kanji-small {
    font-family: 'Poiret One', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #C9A84C;
    letter-spacing: 0.1em;
}

.closing-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic;
    font-weight: 300;
    color: #F0EDE5;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.contact-link {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #C9A84C;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 1px solid #C9A84C;
    transition: background 0.4s ease, color 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.contact-link:hover {
    background: #C9A84C;
    color: #0A0A0A;
}

.visible .contact-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s, background 0.4s ease, color 0.4s ease;
}

.closing-rule {
    margin-top: 3rem;
    opacity: 0;
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

.copyright {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: #3A3632;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
}

/* ---- Subtle Background Gradient per Act ---- */
.act-ii {
    background: radial-gradient(ellipse at center, #0A0A0A 0%, #000000 100%);
}

.act-iii {
    background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.03) 0%, #0A0A0A 60%);
}

.act-iv {
    background: #0A0A0A;
}

.act-v {
    background: radial-gradient(ellipse at center bottom, rgba(201,168,76,0.05) 0%, #000000 70%);
}

/* ---- Gold Vignette (top/bottom of viewport) ---- */
body::before,
body::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 100;
}

body::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

body::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
