/* mujun.studio - Cinematic Armory */
/* Palette: #0a0a0a, #d4920a, #f2e8d5, #c4b89a, #5c5244, #e85d3a, #2a9d8f, #a8231a, #3d2e1f, #4a3829, #8a7d6a */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #0a0a0a;
    color: #f2e8d5;
    font-family: 'Source Serif 4', Georgia, serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* =============================================
   LETTERBOX BARS
   ============================================= */
.letterbox-top,
.letterbox-bottom {
    position: fixed;
    left: 0;
    width: 100%;
    height: 8vh;
    background: #0a0a0a;
    z-index: 100;
}

.letterbox-top {
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
}

.letterbox-bottom {
    bottom: 0;
}

.watermark {
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #f2e8d5;
    text-transform: uppercase;
    opacity: 0.7;
}

.scene-indicators {
    display: flex;
    gap: 10px;
    align-items: center;
}

.scene-dot {
    width: 8px;
    height: 2px;
    background: #5c5244;
    transition: background 0.4s ease, width 0.4s ease;
    display: block;
}

.scene-dot.active {
    background: #d4920a;
    width: 20px;
}

/* =============================================
   FILM CONTAINER (Scroll Snap)
   ============================================= */
.film {
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    height: 100vh;
    width: 100%;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.film::-webkit-scrollbar {
    display: none;
}

/* =============================================
   SCENES
   ============================================= */
.scene {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.scene-content {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 8vh 0;
}

/* Scene transition */
.scene-content {
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
}

.scene.is-visible .scene-content {
    opacity: 1;
}

/* =============================================
   Z-PATTERN LAYOUT
   ============================================= */
.z-top-left {
    position: absolute;
    top: 12vh;
    left: 6vw;
    z-index: 10;
}

.z-top-right {
    position: absolute;
    top: 10vh;
    right: 4vw;
    z-index: 5;
}

.z-bottom {
    position: absolute;
    bottom: 15vh;
    left: 6vw;
    right: 6vw;
    z-index: 10;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.scene-label {
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5c5244;
    display: block;
    margin-bottom: 1rem;
}

.scene-title {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: 0.03em;
    line-height: 1.05;
    text-transform: uppercase;
    color: #f2e8d5;
}

.scene-title--teal {
    color: #2a9d8f;
}

.scene-title--small {
    font-size: clamp(2rem, 5vw, 4rem);
}

.title-sub {
    font-size: 0.45em;
    letter-spacing: 0.1em;
    color: #d4920a;
    display: block;
    margin-top: 0.2em;
}

.title-sub--teal {
    color: #2a9d8f;
}

.scene-body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.65;
    letter-spacing: 0.005em;
    color: #c4b89a;
    max-width: 55ch;
}

.scene-body--teal {
    color: #8a7d6a;
}

/* Headline underline on hover */
.scene-title {
    position: relative;
    display: inline-block;
}

.scene-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4920a;
    transition: width 0.3s ease;
}

.scene-title:hover::after {
    width: 100%;
}

/* =============================================
   LEATHER TEXTURE PANELS
   ============================================= */
.leather-panel {
    background-color: #3d2e1f;
    background-image:
        radial-gradient(ellipse at 30% 40%, #4a3829 0%, #2e2117 100%),
        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.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.leather-panel--large {
    width: clamp(200px, 30vw, 400px);
    height: clamp(200px, 35vh, 380px);
    border-radius: 4px;
}

/* =============================================
   SHIELD CIRCLE
   ============================================= */
.shield-circle {
    width: clamp(180px, 25vw, 320px);
    height: clamp(180px, 25vw, 320px);
    border-radius: 50%;
    background-color: #3d2e1f;
    background-image:
        radial-gradient(ellipse at 40% 35%, #4a3829 0%, #2e2117 100%),
        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.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(42, 157, 143, 0.08);
    border: 1px solid rgba(42, 157, 143, 0.15);
}

/* =============================================
   SVG UNDERLINE DRAWS
   ============================================= */
.underline-draw {
    position: absolute;
    left: 10%;
    width: 50%;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}

.underline-draw--diagonal-reverse {
    left: 25%;
    width: 55%;
}

.underline-draw--multi-left {
    left: 10%;
    width: 45%;
    top: 45%;
}

.underline-draw--multi-right {
    left: 30%;
    width: 45%;
    top: 55%;
}

.draw-line {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    transition: stroke-dashoffset 1.5s ease;
}

.scene.is-visible .draw-line {
    stroke-dashoffset: 0;
}

.draw-line--reverse {
    stroke-dasharray: 800;
    stroke-dashoffset: -800;
}

.scene.is-visible .draw-line--reverse {
    stroke-dashoffset: 0;
}

/* =============================================
   SPEAR SVG
   ============================================= */
.spear-svg {
    width: clamp(80px, 10vw, 150px);
    height: auto;
}

.spear-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.5s ease 0.3s;
}

.spear-detail {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s ease 0.8s;
}

.scene.is-visible .spear-path,
.scene.is-visible .spear-detail {
    stroke-dashoffset: 0;
}

/* =============================================
   CROSSED WEAPONS (Scene 04)
   ============================================= */
.crossed-weapons {
    width: clamp(150px, 20vw, 250px);
    height: auto;
}

.weapon-spear {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.5s ease 0.2s;
}

.weapon-shield {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.5s ease 0.5s;
}

.scene.is-visible .weapon-spear,
.scene.is-visible .weapon-shield {
    stroke-dashoffset: 0;
}

/* =============================================
   TROPICAL FISH
   ============================================= */
.fish-container {
    position: absolute;
    z-index: 8;
    pointer-events: none;
}

.fish {
    display: block;
}

/* Scene 01 — Clownfish bottom-right */
.fish--clownfish {
    bottom: 18vh;
    right: 8vw;
    width: 80px;
    animation: fishDriftH 25s ease-in-out infinite, fishBreath 8s ease-in-out infinite;
}

/* Scene 02 — Angel fish near spear */
.fish--angel {
    position: relative;
    width: 60px;
    margin-top: 20px;
    animation: fishDriftH 22s ease-in-out infinite, fishBreath 7s ease-in-out infinite 1s;
}

/* Scene 03 — Betta fish near shield */
.fish--betta {
    position: relative;
    width: 100px;
    margin-top: 15px;
    animation: fishDriftH 28s ease-in-out infinite, fishBreath 9s ease-in-out infinite 0.5s;
}

/* Scene 04 — Fish cluster */
.fish--cluster {
    bottom: 25vh;
    right: 15vw;
    display: flex;
    gap: 15px;
    align-items: center;
}

.fish--small-clown {
    width: 60px;
    animation: fishDriftH 20s ease-in-out infinite, fishBreath 6s ease-in-out infinite;
}

.fish--small-angel {
    width: 45px;
    animation: fishDriftH 24s ease-in-out infinite 2s, fishBreath 8s ease-in-out infinite 1s;
}

.fish--small-betta {
    width: 70px;
    animation: fishDriftH 18s ease-in-out infinite 4s, fishBreath 7s ease-in-out infinite 3s;
}

/* Scene 05 — Ascending fish */
.fish--ascending {
    position: absolute;
    right: 20vw;
    bottom: 30vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.fish--rise-1 {
    width: 65px;
    animation: fishRise 30s ease-in-out infinite, fishDriftH 20s ease-in-out infinite, fishBreath 8s ease-in-out infinite;
}

.fish--rise-2 {
    width: 50px;
    animation: fishRise 26s ease-in-out infinite 3s, fishDriftH 22s ease-in-out infinite 1s, fishBreath 7s ease-in-out infinite 2s;
}

.fish--rise-3 {
    width: 75px;
    animation: fishRise 34s ease-in-out infinite 6s, fishDriftH 18s ease-in-out infinite 4s, fishBreath 9s ease-in-out infinite 1s;
}

.fish--rise-4 {
    width: 55px;
    animation: fishRise 28s ease-in-out infinite 9s, fishDriftH 24s ease-in-out infinite 2s, fishBreath 6s ease-in-out infinite 4s;
}

/* =============================================
   FISH ANIMATIONS
   ============================================= */
@keyframes fishDriftH {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(15px); }
    50% { transform: translateX(-10px); }
    75% { transform: translateX(8px); }
}

@keyframes fishBreath {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes fishRise {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-40px); }
}

/* =============================================
   SCENE 05 — CONTACT
   ============================================= */
.z-center-contact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.contact-line {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    color: #c4b89a;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.contact-email {
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    letter-spacing: 0.08em;
    color: #d4920a;
    text-transform: lowercase;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .z-top-left {
        top: 12vh;
        left: 5vw;
    }

    .z-top-right {
        top: auto;
        bottom: 40vh;
        right: 5vw;
        opacity: 0.5;
    }

    .z-bottom {
        bottom: 12vh;
        left: 5vw;
        right: 5vw;
    }

    .leather-panel--large {
        width: 150px;
        height: 150px;
    }

    .shield-circle {
        width: 130px;
        height: 130px;
    }

    .scene-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .fish--cluster {
        right: 5vw;
        bottom: 35vh;
    }

    .fish--ascending {
        right: 10vw;
    }
}
