/* EVA Style - Home Page Only */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@700;900&display=swap');

/* Scope everything to the start-page / home section */
.start-page {
    /* Variables Scope */
    --eva-black: #111111;
    --eva-orange: #fa6a00;
    --eva-red: #fa6a00;
    --eva-white: #ffffff;
    --eva-font-serif: 'Noto Serif TC', serif;

    background-color: var(--eva-white) !important;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    color: var(--eva-black) !important;
    font-family: var(--eva-font-serif);
}

/* Section Content Override */
.start-page .section-content {
    background-color: transparent !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Title Block */
.start-page .title-block {
    position: relative;
    border: 3px solid var(--eva-black);
    padding: 40px 60px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 10px 10px 0 rgba(250, 106, 0, 0.2);
}

/* Decorative Corners */
.start-page .title-block::before,
.start-page .title-block::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--eva-orange);
    transition: all 0.3s ease;
}

.start-page .title-block::before {
    top: -9px;
    left: -9px;
    border-right: none;
    border-bottom: none;
}

.start-page .title-block::after {
    bottom: -9px;
    right: -9px;
    border-left: none;
    border-top: none;
}

/* Main Name Title */
.start-page h2[data-i18n="home.name"] {
    font-family: var(--eva-font-serif);
    font-weight: 900;
    font-size: 80px;
    color: var(--eva-black);
    margin: 0;
    line-height: 1;
    letter-spacing: -2px;
    transform: scaleY(1.3);
    /* The classic "Matisse" stretch */
    text-transform: uppercase;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

/* Subtitles / Roles */
.start-page .sp-subtitle {
    font-family: var(--eva-font-serif);
    font-weight: 700;
    font-size: 24px;
    color: var(--eva-white);
    background-color: var(--eva-black);
    padding: 5px 15px;
    margin-top: 20px;
    display: inline-block;
    letter-spacing: 2px;
    text-transform: uppercase;
    /* Create the sharp hexagonal cut or just sharp box */
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

/* Carousel/Text Rotation overrides */
.start-page .owl-carousel {
    margin-top: 15px;
}

/* Add "Top Secret" or decorative text */
/* Decorative Text Layer */
/* Decorative Text Layer */
.start-page .eva-deco-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    font-family: var(--eva-font-serif);
    font-weight: 900;
    /* Simulate Matisse: Condensed width, Tighter spacing */
    letter-spacing: -1px;
}

/* Interleaved Text Styles */
.start-page .eva-text-v {
    position: absolute;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: var(--eva-font-serif);
    font-weight: 900;
    color: var(--eva-black);
    opacity: 0.15;
    letter-spacing: 5px;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

.start-page .eva-text-h {
    position: absolute;
    font-family: var(--eva-font-serif);
    font-weight: 900;
    color: var(--eva-black);
    opacity: 0.15;
    text-transform: uppercase;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: -1px;
}

.start-page .eva-block {
    position: absolute;
    font-family: var(--eva-font-serif);
    font-weight: 700;
    font-size: 10px;
    line-height: 1.4;
    color: var(--eva-black);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    border: 1px solid var(--eva-black);
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
}

.start-page .eva-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 100px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    width: 200%;
    text-align: center;
}

/* Vertical Positions */
.start-page .eva-text-v.v1 {
    right: 5%;
    top: 10%;
    font-size: 40px;
}

.start-page .eva-text-v.v2 {
    right: 15%;
    top: 20%;
    font-size: 24px;
    opacity: 0.2;
}

.start-page .eva-text-v.v3 {
    left: 10%;
    top: 15%;
    font-size: 32px;
}

.start-page .eva-text-v.v4 {
    left: 5%;
    bottom: 10%;
    font-size: 48px;
    opacity: 0.1;
}

.start-page .eva-text-v.v5 {
    right: 25%;
    bottom: 5%;
    font-size: 18px;
}

.start-page .eva-text-v.v6 {
    left: 20%;
    top: 50%;
    font-size: 60px;
    opacity: 0.05;
    letter-spacing: 20px;
}

.start-page .eva-text-v.v7 {
    right: 10%;
    top: 60%;
    font-size: 14px;
    border-right: 1px solid #000;
    padding-right: 5px;
}

.start-page .eva-text-v.v8 {
    left: 15%;
    bottom: 30%;
    font-size: 16px;
    border-left: 1px solid #000;
    padding-left: 5px;
}

/* Horizontal Positions */
.start-page .eva-text-h.h1 {
    top: 5%;
    left: 30%;
    font-size: 30px;
    letter-spacing: 10px;
    color: var(--eva-orange);
    opacity: 0.4;
}

.start-page .eva-text-h.h2 {
    bottom: 15%;
    right: 10%;
    font-size: 20px;
}

.start-page .eva-text-h.h3 {
    top: 30%;
    left: 5%;
    font-size: 16px;
    transform: rotate(90deg);
}

.start-page .eva-text-h.h4 {
    bottom: 5%;
    left: 20%;
    font-size: 24px;
    border-bottom: 2px solid var(--eva-black);
}

.start-page .eva-text-h.h5 {
    top: 40%;
    right: 5%;
    font-size: 50px;
    opacity: 0.05;
}

.start-page .eva-text-h.h6 {
    top: 80%;
    left: 40%;
    font-size: 12px;
    font-family: monospace;
}

/* Block Positions */
.start-page .eva-block.b1 {
    top: 10%;
    left: 10%;
}

.start-page .eva-block.b2 {
    bottom: 20%;
    right: 20%;
}

/* Emergency Overlay */
.start-page .eva-emergency-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /* Minimalist White Screen */
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Pattern for texture */
    background: repeating-linear-gradient(0deg,
            #ffffff,
            #ffffff 4px,
            #f0f0f0 4px,
            #f0f0f0 6px);
    animation: eva-overlay-vanish 0.5s ease-in forwards;
    animation-delay: 2.5s;
    pointer-events: none;
}

.start-page .eva-emergency-text {
    text-align: center;
    color: var(--eva-red);
    font-family: var(--eva-font-serif);
    font-weight: 900;
    z-index: 10;
    transform: scaleY(1.3);
    animation: eva-text-pulse 0.8s infinite;
    /* Slowed down Pulse */
    mix-blend-mode: normal;
}

.start-page .eva-emergency-text .en {
    display: block;
    font-size: 100px;
    letter-spacing: 5px;
    line-height: 1;
}

.start-page .eva-emergency-text .jp {
    display: block;
    font-size: 60px;
    letter-spacing: 20px;
    border-top: 4px solid var(--eva-red);
    border-bottom: 4px solid var(--eva-red);
    margin-top: 10px;
    padding: 10px 0;
}

.start-page .eva-warning-stripe {
    position: absolute;
    width: 100%;
    height: 80px;
    background: #ffffff;
    border-top: 4px solid var(--eva-red);
    border-bottom: 4px solid var(--eva-red);
    color: var(--eva-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 5px;
    overflow: hidden;
}

.start-page .eva-warning-stripe::after {
    content: "SYSTEM OPTIMIZED SYSTEM OPTIMIZED SYSTEM OPTIMIZED SYSTEM OPTIMIZED";
    white-space: nowrap;
    animation: eva-text-pulse 1s infinite alternate;
}

.start-page .eva-warning-stripe.top {
    top: 15%;
}

.start-page .eva-warning-stripe.bottom {
    bottom: 15%;
}

/* Animations Keyframes */
@keyframes eva-overlay-vanish {
    0% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }

    100% {
        opacity: 0;
        clip-path: inset(0 50% 0 50%);
    }
}

@keyframes eva-text-pulse {
    0% {
        opacity: 1;
        transform: scaleY(1.3);
    }

    50% {
        opacity: 0.6;
        transform: scaleY(1.25);
    }

    100% {
        opacity: 1;
        transform: scaleY(1.3);
    }
}

@keyframes eva-block-entry {
    0% {
        opacity: 0;
        transform: scaleX(0.1) scaleY(0.1);
        clip-path: inset(50% 0 50% 0);
    }

    40% {
        opacity: 1;
        transform: scaleX(1) scaleY(0.05);
        clip-path: inset(40% 0 40% 0);
    }

    60% {
        opacity: 1;
        transform: scaleX(1) scaleY(1.2);
        clip-path: inset(0 0 0 0);
    }

    80% {
        transform: scaleX(1) scaleY(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes eva-text-flicker {
    0% {
        opacity: 0.1;
    }

    5% {
        opacity: 0.4;
    }

    10% {
        opacity: 0.1;
    }

    15% {
        opacity: 0.5;
    }

    20% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.1;
    }

    55% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.15;
    }
}

/* Apply Animations */
.start-page .title-block {
    opacity: 0;
    /* Start hidden */
    animation: eva-block-entry 0.6s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
    animation-delay: 2.8s;
    /* Wait for emergency (2.5s) + transition */
}

/* Make background text active/alive */
.start-page .eva-text-v,
.start-page .eva-text-h {
    animation: eva-text-flicker 2s infinite;
}

/* Stagger animations for chaos */
.start-page .eva-text-v.v1 {
    animation-delay: 0s;
}

.start-page .eva-text-v.v2 {
    animation-delay: 0.3s;
}

.start-page .eva-text-v.v3 {
    animation-delay: 0.7s;
}

.start-page .eva-text-v.v4 {
    animation-delay: 1.1s;
}

.start-page .eva-text-h.h1 {
    animation-delay: 0.2s;
}

.start-page .eva-text-h.h2 {
    animation-delay: 0.5s;
}

.start-page .eva-text-h.h3 {
    animation-delay: 0.9s;
}

/* Mobile Adjustments */
@media only screen and (max-width: 768px) {
    .start-page h2[data-i18n="home.name"] {
        font-size: 50px;
    }

    .start-page .title-block {
        padding: 30px;
        margin: 20px;
    }

    .start-page .eva-emergency-text .en {
        font-size: 40px;
        letter-spacing: 2px;
    }

    .start-page .eva-emergency-text .jp {
        font-size: 30px;
        letter-spacing: 5px;
    }

    .start-page .eva-warning-stripe {
        height: 40px;
        font-size: 14px;
    }
}