/* =========================================
   NOIR
   ========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;

    background: #050505;
    color: #e8e8e8;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    overflow: hidden;
}


/* =========================================
   UTILIDADES
   ========================================= */

.hidden {
    display: none !important;
}


/* =========================================
   INTRO
   ========================================= */

.intro,
.ending {
    position: fixed;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            #1a1a1a 0%,
            #080808 55%,
            #000 100%
        );

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 100;
}


.intro-content,
.ending-content {
    text-align: center;

    animation: fadeIn 2s ease;
}


.small-label {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;

    letter-spacing: 5px;

    color: #777;

    margin-bottom: 25px;
}


.intro h1 {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: clamp(70px, 11vw, 150px);

    font-weight: 200;

    letter-spacing: 20px;

    color: #f1f1f1;
}


.intro p {
    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;

    letter-spacing: 7px;

    color: #888;
}


.line {
    width: 80px;
    height: 1px;

    background: #666;

    margin: 25px auto;
}


#startButton,
#restartButton {

    margin-top: 40px;

    padding: 12px 28px;

    background: transparent;

    border: 1px solid #555;

    color: #ccc;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 10px;

    letter-spacing: 4px;

    cursor: pointer;

    transition:
        background 0.3s,
        color 0.3s,
        border 0.3s;
}


#startButton:hover,
#restartButton:hover {

    background: #ddd;

    color: #000;

    border-color: #ddd;
}


/* =========================================
   STORY
   ========================================= */

.story {

    width: 100%;
    height: 100vh;

    display: flex;

    flex-direction: column;

    background: #050505;

    animation: fadeIn 1.2s ease;
}


/* =========================================
   HEADER
   ========================================= */

.header {

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 35px;

    border-bottom: 1px solid #181818;

    font-family: Arial, Helvetica, sans-serif;

    flex-shrink: 0;
}


.brand {

    font-size: 11px;

    letter-spacing: 5px;

    color: #ddd;
}


.chapter {

    font-size: 9px;

    letter-spacing: 4px;

    color: #555;
}


.counter {

    font-size: 10px;

    letter-spacing: 3px;

    color: #777;
}


/* =========================================
   PAGE
   ========================================= */

.page {

    flex: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(320px, 0.75fr);

    min-height: 0;

    transition: opacity 0.5s ease;
}


/* =========================================
   VIDEO
   ========================================= */

.visual {

    position: relative;

    background: #000;

    overflow: hidden;

    border-right: 1px solid #181818;
}


.visual video {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    filter:
        grayscale(100%)
        contrast(1.12)
        brightness(0.88);
}


.visual-overlay {

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.08),
            rgba(0,0,0,0.0) 60%,
            rgba(0,0,0,0.25)
        );
}


.scene-number {

    position: absolute;

    left: 25px;

    bottom: 20px;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 9px;

    letter-spacing: 4px;

    color: rgba(255,255,255,0.45);
}


/* =========================================
   TEXT
   ========================================= */

.text-panel {

    position: relative;

    display: flex;

    align-items: center;

    padding: 8%;

    background:
        linear-gradient(
            135deg,
            #101010,
            #080808
        );
}


.text-inner {

    max-width: 500px;

    margin: auto;
}


.scene-title {

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;

    letter-spacing: 5px;

    color: #aaa;

    margin-bottom: 25px;
}


.separator {

    width: 45px;

    height: 1px;

    background: #555;

    margin-bottom: 30px;
}


.story-text {

    font-size: clamp(17px, 1.4vw, 23px);

    line-height: 1.8;

    color: #c9c9c9;

    font-weight: 400;
}


/* =========================================
   NAVIGATION
   ========================================= */

.navigation {

    height: 58px;

    border-top: 1px solid #181818;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 35px;

    flex-shrink: 0;
}


.nav-button {

    background: none;

    border: none;

    color: #777;

    font-size: 24px;

    cursor: pointer;

    padding: 5px 15px;

    transition: color 0.3s;
}


.nav-button:hover {

    color: white;
}


.nav-hint {

    font-family: Arial, Helvetica, sans-serif;

    font-size: 8px;

    letter-spacing: 3px;

    color: #444;
}


/* =========================================
   ENDING
   ========================================= */

.ending h2 {

    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: clamp(40px, 6vw, 80px);

    font-weight: 200;

    line-height: 1.05;

    letter-spacing: 10px;

    color: #eee;
}


/* =========================================
   ANIMACIONES
   ========================================= */

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.fade {

    opacity: 0;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 850px) {

    .page {

        grid-template-columns: 1fr;

        grid-template-rows: 55% 45%;
    }

    .visual {

        border-right: none;

        border-bottom: 1px solid #181818;
    }

    .text-panel {

        padding: 30px;
    }

    .story-text {

        font-size: 16px;

        line-height: 1.6;
    }

    .chapter {

        display: none;
    }
}
