/* --------------------------------------------
   Matsumoto Dengyo - Strategic Hybrid Revision
   Theme: Multi-Domain Strategic Platform
-------------------------------------------- */

:root {
    --c-bg: #030303;
    --c-surface: #0a0a0a;
    --c-accent: #00ffd5;
    --c-accent-dim: rgba(0, 255, 213, 0.15);
    --c-txt-1: #ffffff;
    --c-txt-2: rgba(255, 255, 255, 0.85);
    --c-txt-3: rgba(255, 255, 255, 0.45);
    --c-border: rgba(255, 255, 255, 0.1);

    --f-heading: 'Syne', sans-serif;
    --f-sans: 'Outfit', sans-serif;
    --f-jp: 'Noto Serif JP', serif;
    --f-mono: 'Space Grotesk', sans-serif;

    --easing: cubic-bezier(0.16, 1, 0.3, 1);
    --p-gutter: clamp(1.5rem, 6vw, 15rem);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    background: var(--c-bg);
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-sans);
    color: var(--c-txt-1);
    background: var(--c-bg);
    overflow-x: hidden;
    cursor: none;
}

body.is-loading {
    overflow: hidden;
}

@media (hover: none) {
    body {
        cursor: auto;
    }
}

/* Backgrounds */
.texture-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    background-image: url('lux_industrial_texture_bg_1772809896788.png');
    background-size: cover;
    opacity: 0.1;
    mix-blend-mode: soft-light;
}

.grid-system {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background-image: linear-gradient(var(--c-border) 1px, transparent 1px), linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
    background-size: 8vw 8vw;
    opacity: 0.3;
}

/* Preloader */
#app-preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 1s var(--easing);
}

.loader-bar {
    width: 120px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--c-accent);
    animation: loadPulse 2s forwards;
}

@keyframes loadPulse {
    to {
        left: 0;
    }
}

body.is-initialized #app-preloader {
    transform: translateY(-100%);
}

/* Navigation - STRATEGIC BRANDING */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem var(--p-gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5000;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
}

.branding-logo-box {
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px var(--c-accent-dim));
}

.header-name-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.company-kanji {
    font-family: var(--f-jp);
    font-weight: 900;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 0.15em;
}

.company-en {
    font-family: var(--f-heading);
    font-weight: 700;
    font-size: 0.65rem;
    color: var(--c-txt-3);
    letter-spacing: 0.3em;
}

.logo-accent {
    color: var(--c-accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 4vw, 4rem);
}

.nav-item {
    color: var(--c-txt-2);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: 0.3s;
}

.nav-cta {
    padding: 0.7rem 2rem;
    background: var(--c-accent);
    color: #000;
    text-decoration: none;
    font-size: 0.7rem;
    font-family: var(--f-mono);
    text-transform: uppercase;
    font-weight: 800;
    border-radius: 2px;
    transition: 0.3s;
}

/* Typography */
.mono-text {
    font-family: var(--f-mono);
    font-size: clamp(0.6rem, 0.8vw, 0.7rem);
    color: var(--c-accent);
    text-transform: uppercase;
    letter-spacing: 0.4em;
}

.main-statement {
    font-family: var(--f-jp);
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 7.5rem);
    line-height: 1.15;
    margin-top: 1rem;
}

.main-statement em {
    color: #fff;
    position: relative;
    font-style: normal;
}

.main-statement em::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 100%;
    height: clamp(4px, 1vw, 8px);
    background: var(--c-accent);
    z-index: -1;
    opacity: 0.6;
}

.sub-statement {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--c-txt-2);
    margin-top: 2.5rem;
    max-width: 850px;
    line-height: 1.85;
    font-weight: 300;
}

.section-title {
    font-family: var(--f-heading);
    font-size: clamp(2.2rem, 5.5vw, 4.8rem);
    line-height: 1.1;
    margin: 1.5rem 0 3rem;
    text-transform: uppercase;
    font-weight: 800;
}

.section-title em {
    font-style: normal;
    color: var(--c-accent);
}

/* Sections */
.section {
    padding: 12rem var(--p-gutter);
    position: relative;
}

.section--hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-bg-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('modern_cable_hero_1772806578336.png') no-repeat center;
    background-size: cover;
    opacity: 0.08;
    filter: grayscale(1);
}

.body-text {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 2.2;
    color: var(--c-txt-2);
    max-width: 800px;
}

/* Abstract Orbit */
.visualization-area {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.abstract-component-orbit {
    position: relative;
    width: 320px;
    height: 320px;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

.orbit-unit {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--c-accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--c-accent);
}

.orbit-unit:nth-child(1) {
    top: -4px;
    left: 50%;
}

.orbit-unit:nth-child(2) {
    bottom: -4px;
    left: 50%;
}

.orbit-unit:nth-child(3) {
    left: -4px;
    top: 50%;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Bento Grid - NO CLIPPING */
.bento-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
}

.bento-tile {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: clamp(2rem, 3.5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.6s var(--easing);
    position: relative;
    /* Removed overflow:hidden to prevent text clipping */
}

.bento-tile--primary {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 550px;
    background: linear-gradient(135deg, #0a0a0a 0%, #030303 100%);
}

.bento-tile--secondary {
    grid-column: span 2;
    min-height: 280px;
}

.bento-tile--tertiary {
    grid-column: span 1;
    min-height: 280px;
}

.bento-tile--quart {
    grid-column: span 1;
    min-height: 280px;
}

.tile-meta {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    color: var(--c-accent);
    margin-bottom: 2rem;
    opacity: 0.6;
}

.tile-title {
    font-family: var(--f-heading);
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.tile-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-txt-2);
    word-break: break-all;
}

.bento-tile:hover {
    transform: translateY(-12px);
    border-color: var(--c-accent-dim);
    background: #0c0c0c;
}

/* Entrance Gateway - WARP GATE DESIGN */
.section--entrance {
    background: #000;
    text-align: center;
    padding: clamp(15rem, 30vh, 30rem) var(--p-gutter);
    position: relative;
    overflow: hidden;
}

/* Vortex Element */
.warp-vortex {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at center, var(--c-accent-dim) 0%, transparent 70%);
    opacity: 0;
    transition: 1s cubic-bezier(0.7, 0, 0.3, 1);
}

.is-warping .warp-vortex {
    opacity: 1;
    background: radial-gradient(circle at center, #fff 0%, var(--c-accent) 30%, transparent 70%);
    transform: scale(5);
}

.entrance-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transition: 0.8s var(--easing);
}

.is-warping .entrance-content {
    transform: scale(0) rotate(720deg);
    opacity: 0;
    filter: blur(20px);
}

/* Strategic Portal Button (The Trigger) */
.portal-btn {
    margin-top: 6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 6rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-family: var(--f-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    position: relative;
    border-radius: 4px;
    transition: 0.4s var(--easing);
    box-shadow: 0 0 50px rgba(0, 255, 213, 0.2);
}

.portal-btn::after {
    content: '';
    position: absolute;
    inset: -15px;
    border: 2px solid var(--c-accent);
    border-radius: 8px;
    opacity: 0;
    animation: warpFieldPulse 2s infinite;
}

@keyframes warpFieldPulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
        border-width: 4px;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
        border-width: 1px;
    }
}

.portal-btn:hover {
    scale: 1.1;
    background: var(--c-accent);
    box-shadow: 0 0 80px var(--c-accent);
}

.portal-btn span {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-arrow-icon {
    font-size: 1.6rem;
    transition: 0.4s var(--easing);
}

.portal-btn:hover .btn-arrow-icon {
    transform: translateX(15px) scale(1.2);
}

/* Global Warping Flash */
body.is-warping::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10000;
    opacity: 0;
    animation: warpFlashFinal 1.5s forwards;
    pointer-events: none;
}

@keyframes warpFlashFinal {
    0% {
        opacity: 0;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

/* Footer */
.global-footer {
    background: #050505;
    border-top: 1px solid var(--c-border);
    padding: 10rem var(--p-gutter) 4rem;
}

.footer-primary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8rem;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--f-heading);
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -0.05em;
    margin-bottom: 2.5rem;
}

.footer-mission {
    color: var(--c-txt-3);
    line-height: 1.9;
    font-size: 1rem;
    max-width: 500px;
}

.footer-nav-groups {
    display: flex;
    gap: clamp(2rem, 10vw, 15rem);
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.group-title {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    color: var(--c-accent);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.nav-group a {
    color: var(--c-txt-2);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-group a:hover {
    color: var(--c-accent);
}

.footer-secondary {
    padding-top: 4rem;
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.copyright {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    color: var(--c-txt-3);
}

.est {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    color: var(--c-accent);
    opacity: 0.4;
}

.footer-address {
    font-size: 0.9rem;
    color: var(--c-txt-3);
}

/* Cable Interaction */
#cable-system {
    pointer-events: none;
    z-index: 8000;
    position: fixed;
    inset: 0;
}

#cable-canvas {
    width: 100vw;
    height: 100vh;
}

#cable-base {
    stroke: #111;
    stroke-width: 4;
    stroke-linecap: round;
}

#cable-pulse {
    stroke: var(--c-accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px var(--c-accent));
}

#cable-terminal-unit {
    position: fixed;
    width: 16px;
    height: 26px;
    z-index: 8001;
}

.terminal-shell {
    width: 100%;
    height: 100%;
    background: #222;
    border: 1px solid #444;
}

/* Animation */
.reveal-container {
    overflow: hidden;
}

.reveal-container>* {
    transform: translateY(110%);
    transition: 1.4s var(--easing);
}

.reveal-container.visible>* {
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .bento-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-tile--quart,
    .bento-tile--tertiary {
        grid-column: span 1;
    }
}

@media (max-width: 1000px) {
    .section {
        padding: 8rem 5%;
    }

    .global-header {
        padding: 1.2rem 5%;
    }

    .header-nav {
        display: none;
    }

    .bento-layout {
        grid-template-columns: 1fr;
    }

    .bento-tile--primary,
    .bento-tile--secondary,
    .bento-tile--tertiary,
    .bento-tile--quart {
        grid-column: span 1;
        min-height: 320px;
    }

    .footer-primary {
        flex-direction: column;
    }

    .footer-nav-groups {
        gap: 3rem;
        flex-wrap: wrap;
    }
}