﻿/*
Theme Name: RABILIS Esports
Theme URI: 
Description: Custom theme for RABILIS Esports
Version: 1.1
Author: RABILIS
Author URI: 
*/

@import url('https://fonts.googleapis.com/css2?family=Teko:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@400;700;900&family=Dancing+Script:wght@700&display=swap');

:root {
    --neon-green: #00FF00;
    /* More vibrant RGB green */
    --dark-bg: #000000;
    --card-bg: #111;
    --text-white: #ffffff;
    --text-gray: #888;
    --transition: cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Overhaul for CR Style */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.font-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1600px;
    /* Wider layout */
    margin: 0 auto;
    padding: 0 40px;
}

/* Header - Minimalist & Slightly Transparent */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0;
    /* Handled by inner */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.7);
    /* Slightly transparent */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Top Green Band REMOVED as per user request */

/* Top Marquee - Matching Bottom Style */
.marquee-top {
    position: absolute;
    top: 100px;
    /* Positioned below header */
    left: -10%;
    width: 120%;
    background: var(--neon-green);
    z-index: 10;
    overflow: hidden;
    padding: 5px 0;
    /* Match bottom 5px */
    transform: rotate(-2deg);
    /* Match bottom -2deg */
    pointer-events: none;
    mix-blend-mode: normal;
    /* Normal mode for visibility */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.marquee-top .marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-top .marquee-item {
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    color: #000;
    padding: 0 40px;
    font-size: 1.5rem;
    /* Match bottom size */
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.logo-text {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* Navigation */
.global-nav {
    display: flex;
    align-items: center;
}

/* New Header Structure */
.header-inner,
.footer-inner {
    /* Shared structure */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0;
}

/* Admin Bar Fix */
body.admin-bar header {
    top: 32px;
}

/* Mobile Admin Bar: Admin bar scrolls, so header should stick to top (top:0) to avoid gap */
@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 0;
    }
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex !important;
    /* Override .desktop-only display: block */
    align-items: center;
}

.nav-left {
    justify-content: flex-end !important;
    padding-right: 20px;
    /* Reduced space */
}

.nav-right {
    justify-content: flex-start !important;
    padding-left: 20px;
    /* Reduced space */
}

.logo-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    /* Reduced from 1.5rem as requested */
    font-weight: 500;
    color: #fff;
    position: relative;
    letter-spacing: 0.1em;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.3s;
}

.nav-list a:hover {
    color: var(--neon-green);
}

.nav-list a:hover::after {
    width: 100%;
}

/* Visibility Utilities */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none !important;
}

/* Hamburger Content */
.hamburger {
    display: none;
    /* Hidden on Desktop */
    width: 40px;
    height: 30px;
    position: relative;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 12px;
}

.hamburger span:nth-child(3) {
    top: 24px;
}

/* Hamburger Active State */
.hamburger.active span:nth-child(1) {
    top: 12px;
    transform: rotate(135deg);
    background: var(--neon-green);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 12px;
    transform: rotate(-135deg);
    background: var(--neon-green);
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
    .header-inner {
        padding: 10px 20px;
    }

    .nav-left,
    .nav-right {
        display: none !important;
        /* Force Hide (Overrides global !important) */
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    /* Mobile News & Event List - 1 Column */
    .news-list {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .mobile-only {
        display: flex !important;
    }

    .logo-center {
        /* On mobile, logo might need to be left or center. 
           If user wants center logo on mobile too, this is fine. 
           But usually hamburger is Right, Logo Left/Center. */
        margin: 0 auto;
    }

    /* Header Adjustments */
    header {
        padding: 0 20px;
        height: 70px;
        justify-content: space-between;
        /* Ensure logo and hamburger space out */
    }

    /* Mobile Logo Constraints */
    .logo-center img.custom-logo {
        max-height: 40px !important;
        /* Fit in 70px header */
        max-width: 60vw;
        /* Prevent hitting hamburger */
        width: auto;
        height: auto;
    }

    /* Re-enable Hamburger */
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }

    /* Mobile Overlay Nav */
    .global-nav.mobile-only {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1500;
        display: flex;
        /* Ensure flex is applied */
    }

    .global-nav.mobile-only.active {
        right: 0;
        /* Slide in */
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        /* Tightly reduced from 30/40px */
        text-align: center;
        align-items: center;
    }

    .nav-list a {
        font-size: 1.5rem;
        /* Reduced font size */
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s, transform 0.4s;
    }

    /* Staggered animation for list items */
    .global-nav.active .nav-list a {
        opacity: 1;
        transform: translateY(0);
    }

    .global-nav.active .nav-list li:nth-child(1) a {
        transition-delay: 0.1s;
    }

    .global-nav.active .nav-list li:nth-child(2) a {
        transition-delay: 0.2s;
    }

    .global-nav.active .nav-list li:nth-child(3) a {
        transition-delay: 0.3s;
    }

    .global-nav.active .nav-list li:nth-child(4) a {
        transition-delay: 0.4s;
    }

    .global-nav.active .nav-list li:nth-child(5) a {
        transition-delay: 0.5s;
    }

    /* No Scroll Body */
    body.no-scroll {
        overflow: hidden;
    }
}



/* Animations */
@keyframes neonTurnOn {
    0% {
        opacity: 0;
        filter: blur(20px) drop-shadow(0 0 0px var(--neon-green));
        transform: scale(0.9);
    }

    10% {
        opacity: 0.5;
        filter: blur(5px) drop-shadow(0 0 10px var(--neon-green));
    }

    15% {
        opacity: 0.1;
    }

    20% {
        opacity: 0.7;
    }

    25% {
        opacity: 0.2;
    }

    30% {
        opacity: 1;
        transform: scale(1.02);
        filter: blur(0px) drop-shadow(0 0 40px var(--neon-green));
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px) drop-shadow(0 0 15px var(--neon-green));
    }
}

@keyframes glitch {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes simpleFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Hero Text Drop-In Animation */
@keyframes textDropIn {
    0% {
        opacity: 0;
        transform: translateY(-80px) scaleX(1.1);
    }

    100% {
        opacity: var(--final-opacity);
        transform: translateY(0) scaleX(1.1);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #050505;
    overflow: hidden;
}

/* Glitch Appear Animation */
@keyframes glitchSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px) skewX(0deg);
        filter: brightness(1);
    }

    10% {
        opacity: 1;
        transform: translateX(0) skewX(-20deg);
        filter: brightness(2) drop-shadow(5px 0 0 #00FF00) drop-shadow(-5px 0 0 #fff);
    }

    15% {
        transform: translateX(0) skewX(10deg);
        filter: brightness(1.5);
    }

    20% {
        transform: translateX(0) skewX(0deg);
        filter: brightness(1) drop-shadow(2px 0 0 var(--neon-green));
    }

    25% {
        filter: none;
    }

    80% {
        opacity: 1;
        transform: translateX(0);
        filter: none;
    }

    90% {
        opacity: 0;
        transform: translateX(-50px);
        filter: blur(10px);
    }

    100% {
        opacity: 0;
        transform: translateX(-50px);
    }
}

/* Grid Background Effect */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 1;
}

.hero-visual {
    position: relative;
    z-index: 5;
    text-align: center;
    margin-bottom: 50px;
}

.hero-logo-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    animation: simpleFadeIn 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes squadCycle {

    /* PHASE 1: GLITCH APPEAR (0% - 15%) */
    0% {
        opacity: 0;
        transform: translateX(-50px);
        filter: blur(10px);
    }

    2% {
        opacity: 1;
        transform: translateX(-40px) skewX(20deg);
        filter: invert(0);
    }

    4% {
        transform: translateX(-40px) skewX(-20deg);
        filter: none;
        clip-path: inset(0 0 50% 0);
    }

    6% {
        transform: translateX(-42px) skewX(10deg);
        /* GREEN GLITCH */
        filter: brightness(2) drop-shadow(5px 0 0 #00FF00);
        clip-path: inset(0 0 0 0);
    }

    8% {
        transform: translateX(-38px) skewX(-5deg);
        /* DARKER GREEN / WHITE GLITCH OFFSET */
        filter: brightness(1.5) drop-shadow(-5px 0 0 #ffffff);
    }

    10% {
        transform: translateX(-40px);
        /* Settle */
        filter: none;
        opacity: 1;
    }

    /* PHASE 2: SLOW PAN (10% - 80%) */
    80% {
        opacity: 1;
        transform: translateX(40px);
        filter: none;
    }

    /* PHASE 3: GLITCH DISAPPEAR (80% - 100%) */
    82% {
        transform: translateX(42px) skewX(20deg);
        filter: invert(0);
        clip-path: inset(20% 0 0 0);
    }

    84% {
        transform: translateX(38px) skewX(-20deg);
        /* Green hue rotate? or just blur */
        filter: blur(2px) drop-shadow(5px 0 0 #00FF00);
        clip-path: inset(0 0 50% 0);
    }

    86% {
        transform: translateX(40px) skewX(10deg);
        opacity: 0.5;
    }

    90% {
        opacity: 0;
        transform: translateX(50px);
        filter: blur(20px);
    }

    100% {
        opacity: 0;
    }
}

/* Switcher (Hidden trigger for testing) */
.switcher {
    position: fixed;
    top: 50%;
    right: 20px;
    width: 20px;
    height: 20px;
    background: transparent;
    z-index: 9999;
}

/* HERO TEXT LAYERS */
/* HERO TEXT LAYERS */
.hero-text-layer {
    position: absolute;
    top: 50%;
    right: 12%;
    /* MOVED INWARDS from -5% to 12% */
    left: auto;
    transform: translateY(-50%) rotate(-5deg);
    z-index: 1;
    width: auto;
    text-align: left;
    pointer-events: none;
    line-height: 0.85;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* MASSIVE Left Symbol (Global Positioning) */
/* MASSIVE Left Symbol (Global Positioning) */
.hero-text-symbol {
    position: absolute;
    top: -10vh;
    /* Start above viewport */
    transform: rotate(-5deg);
    /* Match RABILIS Text Angle */
    left: 40px;
    /* Appear from left side */
    right: auto;
    width: auto;
    height: 120vh;
    /* Bleed off top and bottom for continuous look */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 0;
    pointer-events: none;
}






/* ... existing Unified Text Line Style ... */
/* ... existing Unified Text Line Style ... */
.hero-text-line {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 8vw, 9rem);
    /* Middle ground size */
    text-transform: uppercase;
    transform: scaleX(1.1);
    transform-origin: left;
    /* Scale from left to match align */
    letter-spacing: 0.05em;
    font-style: italic;
    white-space: nowrap;

    /* Animation Init */
    opacity: 0;
    /* Star invisible */
    animation: textDropIn 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
    /* Ease Out Cubic */
}

/* Modifiers */
.hero-text-line.solid {
    color: var(--neon-green);
    --final-opacity: 1;
}

.hero-text-line.outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--neon-green);
    --final-opacity: 0.3;
}

/* Stagger Delays */
.hero-text-line:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-text-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-text-line:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-text-line:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-text-line:nth-child(5) {
    animation-delay: 0.5s;
}

.hero-text-line:nth-child(6) {
    animation-delay: 0.6s;
}

.hero-text-line:nth-child(7) {
    animation-delay: 0.7s;
}

/* SQUAD GLITCH ANIMATION (4 Members) */
/* Container fits usually in front of text but behind UI */
.hero-slider-container {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Align center */
    transform: translate(-50%, -40%);
    width: 90%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-squad-group {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    /* Spacing added */
    width: 100%;
    max-width: 1400px;
}

/* Character Item with Animation */
.hero-char-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    /* Apply Squad Animation: Glitch Appear -> Pan -> Glitch Disappear */
    animation: squadCycle 10s linear infinite;
    /* Adjust size */
    max-width: 25%;
    /* Stagger delays manually here if needed, or use nth-child */
}

/* Stagger for slight crowd feel if desired, or sync for squad feel. 
   User wants "Batch", so minimal stagger */
.hero-char-item:nth-child(1) {
    animation-delay: 0s;
    z-index: 4;
}

.hero-char-item:nth-child(2) {
    animation-delay: 0.1s;
    z-index: 3;
}

.hero-char-item:nth-child(3) {
    animation-delay: 0.2s;
    z-index: 2;
    /* margin-left removed */
}

.hero-char-item:nth-child(4) {
    animation-delay: 0.3s;
    z-index: 1;
    /* margin-left removed */
}



.hero-char-img {
    height: 40vh;
    /* Reduced size as requested (was 55vh) */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8)) contrast(1.1) brightness(0.9);
}

/* Character Names - White Only */
.hero-char-name {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    /* White Only */
    -webkit-text-stroke: 0;
    /* No stroke */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    margin-top: -30px;
    z-index: 10;
    position: relative;
}

/* The .screen.glitch class triggered by JS */
.screen.glitch {
    animation: screenGlitch 0.2s cubic-bezier(.25, .46, .45, .94) both infinite;
    filter: invert(0);
}

@keyframes screenGlitch {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px) skewX(2deg);
        filter: hue-rotate(90deg);
    }

    40% {
        transform: translate(-2px, -2px) skewX(-2deg);
    }

    60% {
        transform: translate(2px, 2px) skewX(5deg);
        filter: grayscale(1);
    }

    80% {
        transform: translate(2px, -2px) skewX(-5deg);
    }

    100% {
        transform: translate(0)
    }
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.scroll-text {
    font-family: 'Teko', sans-serif;
    letter-spacing: 0.2em;
    font-size: 1.2rem;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neon-green);
    animation: scrollLine 1.5s infinite;
}


/* Sections Common */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    margin-bottom: 80px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.section-title {
    font-size: 5rem;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px #fff;
    position: relative;
}

.section-title.filled {
    color: #fff;
    -webkit-text-stroke: 0;
}

.section-subtitle {
    font-family: 'Teko', sans-serif;
    color: var(--neon-green);
    font-size: 1.5rem;
    margin-bottom: 10px;
}


/* News List - CR Style (List view, clean) */
/* News Grid Layout */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.news-item-card {
    display: flex;
    flex-direction: column;
    /* background: rgba(255, 255, 255, 0.02); */
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--neon-green);
}

.news-item-card:hover .news-title {
    color: var(--neon-green);
}

.news-item-card:hover .news-thumb img {
    transform: scale(1.05);
}

/* News Thumb - Flash Effect Container */
.news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 0;
    background: #222;
    position: relative;
    /* Needed for absolute pseudo-element */
}

/* The Green Flash Element */
.news-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    /* Start off-screen left */
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 255, 0, 0.8), transparent);
    /* Green Flash */
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

/* Trigger Flash on Hover */
.news-item-card:hover .news-thumb::before {
    animation: flashEffect 0.7s;
}

/* Flash Keyframes */
@keyframes flashEffect {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
        /* Move completely across */
    }
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-info {
    display: flex;
    flex-direction: column;
    background: #000;
    padding: 20px;
    flex-grow: 1;
    border-top: 1px solid var(--neon-green);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.news-date {
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-green);
    font-weight: 700;
}

.news-cat {
    font-size: 0.7rem;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.news-title {
    font-size: 1rem;
    /* Not too big */
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    transition: var(--transition);
}


/* Member Section - Big Cards */
.member-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.member-slider::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.member-card {
    min-width: 350px;
    /* Wider cards */
    height: 600px;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #333;
    /* Removed skew for a more solid CR look, or keep it subtle */
}

.member-card-inner {
    /* un-skew content */
    transform: skewX(5deg);
    width: 100%;
    height: 100%;
    position: relative;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition);
}

.member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(0deg, #000 0%, transparent 100%);
    z-index: 2;
}

.member-name {
    font-family: 'Teko', sans-serif;
    font-size: 4rem;
    /* Bigger */
    line-height: 0.8;
    color: #fff;
    transition: var(--transition);
    text-transform: uppercase;
}

.member-role {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: var(--neon-green);
    margin-top: 10px;
    display: block;
    opacity: 0.8;
}

.member-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-10px);
}

.member-card:hover .member-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.member-card:hover .member-name {
    color: var(--neon-green);
    padding-left: 10px;
}

/* Footer */
footer {
    background: #000;
    padding: 80px 0;
    border-top: 1px solid #222;
    position: relative;
    overflow: hidden;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 8vw;
    /* Massive footer logo like CR */
    font-family: 'Teko', sans-serif;
    line-height: 0.8;
    color: #111;
    user-select: none;
    pointer-events: none;
}

/* Infinite Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--neon-green);
    padding: 5px 0;
    margin-bottom: 50px;
    transform: rotate(-2deg);
    /* Slightly tilted like CR often does */
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    padding: 0 30px;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* =========================================
   3D Carousel Hero (Kumonosu Slider) 
   ========================================= */
.kumonosu-sliderWrap {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
    z-index: 2;
    /* Ensure above grid but below marquee/header */
}

.kumonosu-slider {
    /* Fixed Physics: Radius ~0.45 for tighter spacing */
    --slider-width: min(30vw, 50vh);
    /* Keep simplified size */
    --slider-depth: min(50vw, 80vh);
    --slider-radius: 0.45;
    /* Reduced from 0.65 to narrow gap */
    --slider-time: 25;
    width: var(--slider-width);
    height: calc(var(--slider-width) * 9 / 16);
    position: absolute;
    top: 50%;
    /* Centered vertically (was 33%) */
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    /* animation: kumonosu-sliderAnim calc(var(--slider-time) * 1s) linear infinite; REMOVED for JS Control */
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {

    /* Fix Hero Height */
    .hero {
        height: 100dvh;
        /* Use dynamic viewport height */
        min-height: 500px;
    }

    /* Resize Carousel to be wider on mobile */
    .kumonosu-slider {
        --slider-width: 90vw;
        /* Increased from 85vw */
        /* Wider relative to screen */
        --slider-depth: 50vw;
        top: 55%;
        /* Pushed down from 45% to reduce bottom gap */
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Shrink Title Text - Adjusted for better impact */
    .hero-text-line {
        font-size: 6rem !important;
        /* Increased from 3.5rem */
    }

    .hero-text-layer {
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-5deg);
        width: 100%;
        text-align: center;
        align-items: center;
        opacity: 0.5;
    }

    /* Hide Giant Symbol on Mobile */
    .hero-text-symbol {
        display: none;
    }

    .kumonosu-slider__title {
        font-size: 2rem !important;
    }
}

@keyframes kumonosu-sliderAnim {
    from {
        transform: translate(-50%, -50%) perspective(var(--slider-depth)) rotateX(-10deg) rotateY(0deg);
    }

    to {
        transform: translate(-50%, -50%) perspective(var(--slider-depth)) rotateX(-10deg) rotateY(360deg);
    }
}

.kumonosu-slider__title {
    font-size: 5rem;
    /* Bigger for R A B I L I S */
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2em;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: kumonosu-sliderTitleAnim calc(var(--slider-time) * 1s) linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    display: none;
}

@keyframes kumonosu-sliderTitleAnim {
    0% {
        transform: translate(-50%, -50%) rotateY(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateY(-360deg);
    }
}

/* .kumonosu-slider__item changes reverted */
.kumonosu-slider__item {
    /* Removed Card Styling for Transparent PNGs */
    /* border-radius: 6px; box-shadow... border... removed */
    overflow: visible;
    /* Allow name to hang outside */
    position: absolute;
    inset: 0;
    transform: rotateY(calc(var(--img-num) * (360 / var(--img-count)) * 1deg)) translateZ(calc(var(--slider-depth) * var(--slider-radius)));
    /* backface-visibility: hidden; REMOVED per user request */
}

.kumonosu-slider__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Contain for cutouts */
    vertical-align: bottom;
    /* filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.3)); REMOVED Glow */
    image-rendering: auto;
    /* backface-visibility: hidden; REMOVED - Caused side images to vanish */
    transform: translateZ(0);
    outline: 1px solid transparent;
}

/* Name Overlay - Floating Below */
/* Name Overlay - Floating Below */
.kumonosu-slider__name {
    /* Position: Exact Center */
    top: 50%;
    left: 50%;
    bottom: auto;
    right: auto;

    transform: translate(-50%, -50%) translateZ(60px);

    width: auto;
    text-align: center;
    color: #fff;
    z-index: 9999;

    font-family: 'Teko', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
    background: transparent;
    /* No bar */
    text-shadow: 2px 2px 4px #000;
    /* Shadow for readability */
    padding: 0;
    pointer-events: none;
}

/* =========================================
   Glitch Title (Green) - User Request
   ========================================= */
:root {
    /* Renamed to avoid conflicts if needed, but using user's names */
    --kumonosu-accent-cyan: #00FF00;
    /* Main Green */
    --kumonosu-accent-pink: #FFFFFF;
    /* White for contrast */
    --kumonosu-main-gradient: linear-gradient(100deg, #00FF00, #CCFF00);
    /* Green Gradient */
    --kumonosu-sub-color: #00FF00;
    --kumonosu-glitch-interval: 3s;
    /* Faster */
}

/* =========================================
   Glitch Photo (Green/Cyan/Pink) - User Request
   ========================================= */
.kumonosu-slider__img.base {
    position: relative;
    z-index: 2;
}

.kumonosu-slider__img.glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
    /* Blend with base */
}

/* Green/Cyan Layer */
.kumonosu-slider__img.glitch.cyan {
    filter: hue-rotate(90deg) sepia(100%) saturate(300%) hue-rotate(90deg);
    /* Make it Greenish */
    animation: kumonosu-slice-cyan var(--kumonosu-glitch-interval) infinite linear;
    left: -5px;
}

/* Pink Layer */
.kumonosu-slider__img.glitch.pink {
    filter: sepia(100%) saturate(300%) hue-rotate(300deg);
    /* Make it Pinkish */
    animation: kumonosu-slice-pink var(--kumonosu-glitch-interval) infinite linear;
    left: 5px;
}

/* Animation Keyframes (Reused) */
@keyframes kumonosu-slice-cyan {
    0% {
        opacity: 1;
        clip-path: inset(80% 0 0 0);
        transform: translateX(-5px);
    }

    2% {
        clip-path: inset(10% 0 60% 0);
        transform: translateX(5px);
    }

    4% {
        clip-path: inset(40% 0 30% 0);
        transform: translateX(-3px);
    }

    6% {
        clip-path: inset(0 0 90% 0);
        transform: translateX(3px);
    }

    8% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes kumonosu-slice-pink {
    0% {
        opacity: 1;
        clip-path: inset(0 0 70% 0);
        transform: translateX(5px);
    }

    3% {
        clip-path: inset(50% 0 10% 0);
        transform: translateX(-5px);
    }

    5% {
        clip-path: inset(20% 0 50% 0);
        transform: translateX(3px);
    }

    7% {
        clip-path: inset(80% 0 0 0);
        transform: translateX(-3px);
    }

    9% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* =========================================
   About Page
   ========================================= */
.rabilis-about {
    padding: 150px 20px;
    background: #000;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background Effect */
/* Background Effect REMOVED per user request */
/* .rabilis-about::before { ... } */

/* Page Header & Title Styles */
.page-header {
    text-align: center;
    /* Switched to Center */
    margin-top: 140px;
    /* Fix Overlap (Header height approx 80-100px) */
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Stacked Header Container - HORIZONTAL */
.stacked-title-container {
    display: flex;
    flex-direction: row;
    /* Horizontal */
    align-items: center;
    justify-content: center;
    /* Center aligned flow */
    gap: 1rem;
    white-space: nowrap;
}

/* Stacked Line Style */
.stacked-line {
    font-family: 'Teko', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1;
    position: relative;
}

/* Modifier: Outline */
.stacked-line.outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--neon-green);
    /* Green Outline */
    opacity: 0.3;
}

/* Modifier: Solid */
.stacked-line.solid {
    color: var(--neon-green);
    /* Green Solid */
    opacity: 1;
    z-index: 2;
}

/* Character Animation (One by One) */
.stacked-line .c {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: stackCharAppear 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: calc(var(--delay) * 0.05s);
}

@keyframes stackCharAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.c-space {
    display: inline-block;
    white-space: pre;
    width: 0.2em;
}

.c-space {
    display: inline-block;
    white-space: pre;
    width: 0.2em;
}

/* Subtitle */
.page-subtitle {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    color: var(--neon-green);
    margin-top: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: simpleFadeIn 1s 0.5s forwards;
    text-align: center;
    /* Center subtitle too */
}

.rabilis-about__content {
    width: 100%;
    z-index: 2;
    position: relative;
    /* align handled by header */
}

.rabilis-about__text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    line-height: 2.8;
    color: #fff;
    font-weight: 500;
    margin-bottom: 80px;
    text-align: center;
    /* Explicitly Center */
}

.rabilis-about__highlight {
    color: var(--neon-green);
    font-weight: 700;
}

/* TEAM REACH */
.rabilis-reach {
    margin: 60px 0 100px;
    text-align: center;
}

.rabilis-reach__title {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: var(--neon-green);
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.rabilis-reach__grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rabilis-reach__item {
    width: 280px;
    /* Rectangular width */
    height: 120px;
    /* Rectangular height */
    border: 1px solid var(--neon-green);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;

    /* Cyber Background */
    background: #000;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px),
        linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    background-size: 20px 20px, 20px 20px, 100% 100%;

    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

/* Cyber Corner Accents */
.rabilis-reach__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--neon-green);
    border-left: 2px solid var(--neon-green);
}

.rabilis-reach__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--neon-green);
    border-right: 2px solid var(--neon-green);
}

.rabilis-reach__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3) inset;
    border-color: #fff;
}

.rabilis-reach__sub {
    font-family: 'Teko', sans-serif;
    font-size: 0.9rem;
    color: var(--neon-green);
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 0px;
}

.rabilis-reach__value {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    /* Larger */
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.rabilis-reach__label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.75rem;
    color: #ccc;
    margin-top: 0px;
    text-transform: uppercase;
}

.about-signature {
    text-align: right;
    margin-top: 40px;
    padding-right: 5%;
    margin-bottom: 100px;
    /* spacing to prevent footer overlap */
}

.about-signature__title {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 5px;
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.1em;
}

.about-signature__name {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 5vw, 4rem);
    color: #fff;
    transform: rotate(-10deg);
    display: inline-block;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    margin-top: 10px;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* FOOTER STYLES (Consolidated) */
footer {
    background: #000;
    color: #fff;
    padding: 30px 20px;
    /* Reduced padding */
    border-top: 1px solid var(--neon-green);
    /* Green border */
    margin-top: auto;
    /* e.g. if we have sticky footer needs */
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    font-family: 'Teko', sans-serif;
    /* Header Font */
    font-weight: 500;
}

.footer-links a {
    color: var(--neon-green);
    /* Green */
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-divider {
    color: var(--neon-green);
    font-weight: 300;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Right align */
    gap: 5px;
}

.footer-logo-img {
    height: 70px;
    /* Larger size */
    width: auto;
}

/* =========================================
   Loading Screen
   ========================================= */
/* =========================================
   Cyber Loading Screen
   ========================================= */
#rabilis-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 999999;
    /* Higher than header */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Scanline Effect */
.loader-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(0, 255, 65, 0.1);
    opacity: 0.5;
    animation: scanlineMove 2s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scanlineMove {
    0% {
        transform: translateY(-100vh);
    }

    100% {
        transform: translateY(100vh);
    }
}

.loader-content-cyber {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 80%;
    max-width: 400px;
}

/* Glitch Logo */
.loader-logo-glitch {
    font-family: 'Teko', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    display: inline-block;
    letter-spacing: 0.1em;
}

.loader-logo-glitch::before,
.loader-logo-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.loader-logo-glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.loader-logo-glitch::after {
    left: -2px;
    text-shadow: -1px 0blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

/* Subtitle */
.loader-sub {
    font-family: 'Courier New', monospace;
    color: var(--neon-green);
    margin-top: 10px;
    font-size: 1rem;
    letter-spacing: 0.2em;
    animation: blinkText 1s infinite alternate;
}

/* Cyber Progress Bar */
.loader-progress-bar-cyber {
    width: 100%;
    height: 6px;
    background: #111;
    border: 1px solid #333;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.loader-progress-fill {
    height: 100%;
    background: var(--neon-green);
    width: 0%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: cyberLoad 2.5s cubic-bezier(0.1, 0.7, 1.0, 0.1) forwards;
}

@keyframes cyberLoad {
    0% {
        width: 0%;
    }

    20% {
        width: 10%;
    }

    40% {
        width: 45%;
    }

    60% {
        width: 50%;
    }

    80% {
        width: 90%;
    }

    100% {
        width: 100%;
    }
}

/* Tech Text Terminal */
.loader-tech-text {
    margin-top: 20px;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
}

.loader-tech-text span {
    display: inline-block;
    opacity: 0;
    animation: fadeInStep 0.5s forwards;
}

.loader-tech-text span:nth-child(1) {
    animation-delay: 0.5s;
}

.loader-tech-text span:nth-child(2) {
    animation-delay: 1.2s;
}

.loader-tech-text span:nth-child(3) {
    animation-delay: 1.8s;
    color: var(--neon-green);
}

@keyframes fadeInStep {
    to {
        opacity: 1;
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(30px, 9999px, 100px, 0);
    }

    60% {
        clip: rect(60px, 9999px, 40px, 0);
    }

    80% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    100% {
        clip: rect(50px, 9999px, 80px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(90px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(50px, 9999px, 30px, 0);
    }

    60% {
        clip: rect(20px, 9999px, 90px, 0);
    }

    80% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 60px, 0);
    }
}

/* =========================================
   Member Page Styles
   ========================================= */

/* Division Filters */
.division-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

.division-btn {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    padding: 10px 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.division-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-green);
    transition: left 0.3s;
    z-index: -1;
}

.division-btn:hover,
.division-btn.active {
    color: #000;
}

.division-btn:hover::before,
.division-btn.active::before {
    left: 0;
}

/* Member List */
.member-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on PC */
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Cyber Member Card Refined */
.member-list-item {
    transition: all 0.3s ease;
    /* Remove outer border/bg as requested */
    border: none;
    background: transparent;
    clip-path: none;
    padding: 0;
}

/* Link Wrapper */
.member-link-wrapper {
    position: relative;
    /* Fix arrow positioning */
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    /* No gap on wrapper, use margin on icon */
}

/* Icon (Left) */
.member-icon-box {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
    border: 2px solid var(--neon-green);
    /* Restore Photo Frame */
    margin-right: 20px;
    background: #000;
}

.member-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on face */
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.member-link-wrapper:hover .member-icon {
    filter: grayscale(0%);
}

/* Name Box (Right) - Rectangular Box with Cyber Style (No Cut) */
.member-info-box {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.85);
    /* Cyber Grid Background */
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;

    /* Cyber Border: Dark with Green Accent Left */
    border: 1px solid #333;
    border-left: 3px solid var(--neon-green);

    padding: 15px 25px;
    position: relative;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
    /* clip-path removed to prevent border cut-off */
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.05);
}

.member-link-wrapper:hover .member-info-box {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.member-name-en {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
}

.member-divisions {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 5px;
    font-family: 'Noto Sans JP', sans-serif;
}

.arrow-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);

    width: 24px;
    height: 24px;
    background: var(--neon-green);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s, right 0.3s;

    /* Reset Potential Ghost Styles */
    border: none;
    box-shadow: none;
    text-shadow: none;
    text-decoration: none;
    z-index: 10;
}

.arrow-indicator::after {
    content: '\25B6';
    /* Unicode Play Button to avoid WP Emoji */
    font-size: 0.6rem;
    line-height: 1;
    display: block;
}

.member-link-wrapper:hover .arrow-indicator {
    opacity: 1;
    right: 15px;
}

@media (max-width: 768px) {
    .member-list-grid {
        grid-template-columns: 1fr;
    }

    /* Allow box to expand for 2 lines */
    .member-info-box {
        height: auto;
        min-height: 80px;
        padding: 15px;
    }

    /* Reduce font size to fit better */
    .member-name-en {
        font-size: 1.5rem;
        word-break: break-all;
        /* Ensure wrapping if ultra long */
    }
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes blinkText {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   Sponsor Slider (Slow Flow)
   ========================================= */
/* =========================================
   Sponsor Slider (Seamless Loop)
   ========================================= */
.sponsor-slider-section {
    padding: 60px 0;
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.sponsor-track {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 0;
    /* Gap handled by group padding/gap */
}

.sponsor-scroll-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 80px;
    /* Increased gap between logos */
    min-width: 100%;
    animation: scrollSponsors 60s linear infinite;
    padding-right: 80px;
    /* Ensure gap at end of group matches gap between items */
}

/* Pause on hover optional */
/* .sponsor-track:hover .sponsor-scroll-group {
    animation-play-state: paused;
} */

.sponsor-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 30px;
    border-radius: 8px;
    width: 240px;
    /* Fixed width for consistency */
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 100px;
    filter: grayscale(100%) brightness(1.2);
    transition: filter 0.3s;
}

.sponsor-item:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);
}

.sponsor-item:hover img {
    filter: grayscale(0%) brightness(1);
}

@keyframes scrollSponsors {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* =========================================
   About Excerpt Frame
   ========================================= */
.front-about-excerpt {
    margin-top: 100px;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.front-about-box {
    border: 1px solid var(--neon-green);
    padding: 40px;
    max-width: 800px;
    text-align: center;
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    /* Cyber Background */
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}

.front-about-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #fff;
    font-weight: 500;
}

.front-about-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--neon-green);
    text-decoration: none;
    border-bottom: 1px solid var(--neon-green);
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.front-about-link:hover {
    color: #fff;
    border-color: #fff;
}

.about-signature__name {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    /* Larger for script font */
    color: var(--neon-green);
    letter-spacing: 0.1em;
    transform: rotate(-5deg);
    /* Slight rotation for signature feel */
    margin-top: 80px;
}

.copyright {

    /* =========================================
   News Page Styles
   ========================================= */
    .news-list {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
    }

    .news-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background 0.3s;
    }

    .news-item:hover {
        background: rgba(0, 255, 65, 0.05);
    }

    .news-link {
        display: flex;
        align-items: center;
        padding: 25px 20px;
        text-decoration: none;
        color: #fff;
        transition: padding 0.3s;
    }

    .news-link:hover {
        padding-left: 30px;
        color: #fff;
    }

    .news-meta {
        display: flex;
        flex-direction: column;
        min-width: 120px;
        margin-right: 30px;
    }

    .news-date {
        font-family: 'Teko', sans-serif;
        color: var(--neon-green);
        font-size: 1.2rem;
        line-height: 1;
    }

    .news-cat {
        display: inline-block;
        font-size: 0.75rem;
        color: #888;
        margin-top: 5px;
        border: 1px solid #444;
        padding: 2px 8px;
        text-align: center;
        width: fit-content;
        border-radius: 3px;
    }

    .news-title {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 1.1rem;
        font-weight: 500;
        flex-grow: 1;
        margin: 0;
        line-height: 1.5;
    }

    .news-arrow {
        color: var(--neon-green);
        font-family: 'Teko', sans-serif;
        font-size: 1.5rem;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s;
    }

    .news-link:hover .news-arrow {
        opacity: 1;
        transform: translateX(0);
    }

    .news-pagination {
        margin-top: 60px;
        text-align: center;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .news-pagination .page-numbers {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        border: 1px solid #444;
        color: #fff;
        text-decoration: none;
        font-family: 'Teko', sans-serif;
        font-size: 1.2rem;
        transition: all 0.3s;
    }

    .news-pagination .page-numbers:hover,
    .news-pagination .page-numbers.current {
        background: var(--neon-green);
        color: #000;
        border-color: var(--neon-green);
    }

    @media (max-width: 768px) {
        .news-link {
            flex-direction: column;
            align-items: flex-start;
        }

        .news-meta {
            flex-direction: row;
            align-items: center;
            margin-bottom: 10px;
            width: 100%;
        }

        .news-date {
            margin-right: 15px;
        }

        .news-arrow {
            display: none;
        }
    }
}

/* =========================================
   Creative Page Styles
   ========================================= */
.creative-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 10px 30px;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--neon-green);
    z-index: -1;
    transition: width 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #000;
    border-color: var(--neon-green);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 100%;
}

.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.creative-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.creative-link {
    display: block;
    text-decoration: none;
}

.creative-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border: 1px solid #333;
    overflow: hidden;
    margin-bottom: 15px;
}

.creative-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
}

.creative-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.view-project {
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 10px 20px;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.creative-link:hover .creative-thumb img {
    transform: scale(1.05);
}

.creative-link:hover .creative-overlay {
    opacity: 1;
}

.creative-link:hover .view-project {
    transform: translateY(0);
}

.creative-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.4;
}

.creative-cats {
    font-family: 'Teko', sans-serif;
    color: var(--neon-green);
    font-size: 1rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .creative-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Stacked Header (Horizontal Style)
   ========================================= */
/* =========================================
   Stacked Header (Horizontal Style)
   ========================================= */
/* =========================================
   Stacked Header (Horizontal Style)
   ========================================= */
.stacked-header {
    text-align: center;
    padding: 200px 0 100px;
    position: relative;
    z-index: 9999;
    /* Full Viewport Breakout */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    pointer-events: none;
}

.stacked-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* Reduced gap */
    width: 100%;
    min-height: 150px;
}

.stacked-line {
    font-family: 'Teko', sans-serif;
    font-size: 13vw;
    /* Scaled to window width */
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    width: auto;
    pointer-events: none;
    flex-shrink: 0;
}

/* Center Solid Line (Middle) */
.stacked-line.solid {
    color: var(--neon-green);
    z-index: 2;
    opacity: 1;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

/* Outline Lines (Sides) */
.stacked-line.outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--neon-green);
    opacity: 0.5;
    /* Restore opacity */
    transform: none;
}

/* Optional: Scale down side outlines for depth? or keep constant size */
.stacked-line.outline:nth-child(1),
.stacked-line.outline:nth-child(5) {
    transform: scale(0.8);
    opacity: 0.3;
}

.stacked-line.outline:nth-child(2),
.stacked-line.outline:nth-child(4) {
    transform: scale(0.9);
    opacity: 0.4;
}

/* Animation Restored */
.stacked-line .c {
    display: inline-block;
    /* animation: floatText 3s ease-in-out infinite; */
    /* animation-delay: calc(var(--delay) * 0.1s); */
}

.page-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: #aaa;
    margin-top: 20px;
    display: block;
    position: absolute;
    /* Place subtitle below flex row */
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

/* Member Page Spacing */
.member-page {
    padding-bottom: 120px;
}



@keyframes floatText {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .stacked-line {
        font-size: 13vw;
        /* Mobile Scaling */
    }
}