@charset "UTF-8";

/* =========================================
   Theme: Pastel Dream
   Concept: Soft / Milky / Airy / Cute
   ========================================= */

:root {
    /* Modern Glass Palette: Twilight & Dawn */
    --c-bg: #fdfdfd; 
    --c-surface: #ffffff;
    
    /* Text */
    --c-text-main: #1a1a2e; /* Deep Navy */
    --c-text-sub: #4a5568;  /* Cool Gray */

    /* Accents */
    --c-accent: #FF6B6B; /* Vibrant Coral (Warmth) */
    --c-accent-blue: #4facfe; /* Electric Blue (Intelligence) */
    
    /* Gradients: Sophisticated & Smooth */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Deep Purple/Blue */
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); /* Pink/Coral */
    --gradient-text: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%); /* Subtle Dark Gradient */
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));

    /* Glass Effect (Standardized) */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: blur(12px);

    /* Typography */
    --font-en: 'Montserrat', sans-serif;
    --font-ja: 'Zen Kaku Gothic New', sans-serif;

    /* Spacing */
    --section-pad: 120px 5%; /* Slightly tighter than 180px */
}

/* Base Setup */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    /* Clean Modern White */
    background-image: none;
    color: var(--c-text-main);
    font-family: var(--font-ja);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
.en-font {
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    /* Specific for Pastel: slightly wider */
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Utilities --- */
.container {
    max-width: 1280px;
    width: 90%;
    margin-inline: auto !important;
    position: relative;
}

/* --- Header (Floating Milky Pill) --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
    transition: all 0.4s ease;
}

header.glass-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.logo img {
    height: 24px;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-main);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--c-accent-blue);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    /* Grid Background */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Liner Animation (Moving Lines) */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 59px,
        rgba(0, 0, 0, 0.05) 60px
    );
    background-size: 100% 60px;
    animation: scrollGrid 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Vertical Liner */
#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 59px,
        rgba(0, 0, 0, 0.05) 60px
    );
    background-size: 60px 100%;
    animation: scrollGridHorizontal 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes scrollGrid {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

@keyframes scrollGridHorizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(60px); }
}

#webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.5;
    /* Blend with pastel bg */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

/* Liquid Reality Hero Typography */
.hero-message-modern {
    position: relative;
    z-index: 20;
    text-align: center;
    mix-blend-mode: overlay; /* Interaction with liquid background */
}

.jp-slogan {
    font-family: var(--font-ja);
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--c-text-main);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    opacity: 0; /* Animated by JS */
    transform: translateY(30px);
}

.highlight-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--c-accent-blue);
    opacity: 0.2;
    z-index: -1;
    transform: skewX(-10deg);
}

.hero-sub-text {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--c-text-sub);
    text-transform: uppercase;
    opacity: 0;
}

/* --- Section Global --- */
.section-modern {
    padding: var(--section-pad);
    position: relative;
}

.section-head-modern {
    margin-bottom: 100px;
    text-align: left;
}

.section-head-modern h2 {
    font-size: clamp(40px, 6vw, 100px);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1;
    color: var(--c-text-main);
    /* Fallback */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-head-modern p {
    font-size: 18px;
    color: var(--c-text-sub);
    font-weight: 400;
}

/* --- Mission --- */
#mission {
    background: transparent;
    position: relative;
    z-index: 1;
}

#mission::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, rgba(98, 0, 234, 0.05) 60%, transparent 80%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

.mission-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.03);
    position: relative;
    /* overflow is already hidden */
}

.mission-wrapper::after {
    display: none;
}

.mission-media {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.mission-media img.parallax-img {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    opacity: 0.7; /* Adjusted from 0.9 to 0.7 */
}

.mission-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.mission-copy h3 {
    font-size: 32px;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #7986cb;
    /* Soft Indigo */
}

/* --- Management --- */
#management {
    background: transparent;
}

.bg-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: conic-gradient(from 0deg at 50% 50%, rgba(41, 121, 255, 0.15), rgba(101, 31, 255, 0.15), rgba(0, 229, 255, 0.15), rgba(41, 121, 255, 0.15));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
    animation: rotateBlob 20s linear infinite;
}

@keyframes rotateBlob {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

@keyframes pulseBlob {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.m-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
}

/* Glass Card with better visibility and performance */
.glass-card {
    position: relative;
    padding: 50px 30px;
    border-radius: 20px; /* Slightly sharper */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    overflow: hidden; 
}

/* Removing overly decorative shark fin and corner gradients for minimal look */
.glass-card::after {
    display: none;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-10px);
    /* Removed rotateX for simplicity/performance */
    box-shadow:
        0 20px 40px rgba(255, 182, 193, 0.3),
        0 0 0 2px #fff inset;
}

.glass-card h3 {
    font-size: 24px;
    margin-bottom: 25px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.glass-card p {
    font-size: 15px;
    color: var(--c-text-main);
    line-height: 1.8;
}

/* --- Business --- */
#business {
    background: transparent;
    position: relative;
    will-change: transform;
}

#business::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.15) 0%, transparent 70%); /* Marigold */
    filter: blur(50px);
    z-index: -1;
}

#business::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.1) 0%, transparent 70%); /* Sunset Orange */
    filter: blur(60px);
    z-index: -1;
}

.b-list-modern {
    display: flex;
    padding-left: 10vw;
    gap: 10vw;
    width: fit-content;
    height: 70vh;
    align-items: center;
    will-change: transform;
    /* Important for smooth scroll */
}

/* Hover Reveal Layout for Business Section */
.reveal-section {
    position: relative;
    overflow: hidden;
    /* Ensure height is sufficient */
    min-height: 80vh;
}

.reveal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Hidden by default or shows first image */
    transition: opacity 0.5s ease, background-image 0.5s ease;
    z-index: 0;
    pointer-events: none;
    background-image: url('../img/b_ses_real.png'); /* Default fallback */
}
/* Show bg slightly by default or on hover? Let's make it vivid on hover */
.reveal-bg.active {
    opacity: 0.3; /* Subtle background */
}

.reveal-list {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 60px auto 0;
}

.reveal-item {
    display: flex;
    align-items: center;
    padding: 35px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: padding 0.3s, border-color 0.3s;
}

.reveal-item:hover {
    padding-left: 30px;
    border-color: var(--c-accent);
}

.reveal-num {
    font-family: var(--font-head);
    font-size: 14px;
    color: #999;
    margin-right: 30px;
    width: 30px;
}

.reveal-item h3 {
    font-size: 32px;
    font-weight: 500;
    margin-right: 30px;
    min-width: 250px;
    transition: color 0.3s;
}

.reveal-item:hover h3 {
    color: var(--c-accent);
}

.reveal-item p {
    font-size: 15px;
    color: #666;
    flex: 1;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reveal-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .reveal-item h3 {
        font-size: 24px;
        min-width: auto;
    }
    
    .reveal-bg {
        opacity: 0.1 !important; /* Always show faint bg on mobile */
    }
}

.b-tag-modern {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%); /* Marigold -> Sunset Orange */
    color: #fff; /* White text for contrast */
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3); /* Warm glow */
}

/* --- Benefit --- */
#benefit {
    background: transparent;
    position: relative;
}

#benefit::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(41, 121, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 20%);
    z-index: -1;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    /* Removed background/radius to let cards stand alone */
}

.b-stat {
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s;
}

.b-stat:hover {
    transform: translateY(-5px);
}

.b-stat h3 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #b2ebf2;
    /* Pastel Cyan */
    text-shadow: 1px 1px 0 #80deea;
}

.b-stat p {
    font-size: 14px;
    color: var(--c-text-main);
    font-weight: 600;
}

/* --- CTA --- */
.footer-cta-modern {
    padding: 200px 5%;
    background: var(--gradient-secondary);
    color: #fff;
    text-align: center;
    position: relative;
    border-radius: 60px 60px 0 0;
}

.footer-cta-modern h2 {
    font-size: clamp(50px, 10vw, 150px);
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer-cta-modern p {
    font-size: 20px;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 60px;
}

.btn-modern {
    display: inline-block;
    padding: 20px 60px;
    background: #fff;
    color: #a18cd1;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-modern:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Giant Typography Watermark */
.bg-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: min(20vw, 400px); /* Huge! */
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03); /* Subtle dark for light theme */
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
    font-family: var(--font-en);
    user-select: none;
    line-height: 1;
}

body {
    transition: background-color 0.8s ease;
}

/* --- Responsive: Researcher-Level Accuracy --- */

/* Tablet & Smaller Desktop (Max 1024px) */
@media (max-width: 1024px) {
    /* Layout Stacking */
    .mission-wrapper {
        display: flex; /* Switch from Grid */
        flex-direction: column-reverse; /* Image on top? No, usually image first. Let's stack naturally. */
        flex-direction: column;
        height: auto;
    }

    .mission-media {
        height: 60vh; /* Shorter image area */
        min-height: 300px;
    }

    .mission-content {
        padding: 60px 5%;
    }

    .m-grid-modern {
        grid-template-columns: repeat(2, 1fr); /* 2 cols for tablet */
        gap: 30px;
    }

    .benefit-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cols for tablet */
    }

    /* Borders handling removed for glass cards */
    
    /* Decoration Scaling */
    .bg-watermark {
        font-size: 15vw; /* Smaller relative size */
    }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {
    /* Global Spacing */
    :root {
        --section-pad: 80px 5%;
    }

    /* Header Nav - FORCE Clean 2-Row Grid for Mobile */
    .header-modern .container {
        padding: 10px 15px;
        flex-direction: column !important; /* Force Stack */
        align-items: center;
        width: 100%;
    }

    .header-modern h1 {
        font-size: 18px; /* Smaller Logo */
        margin-bottom: 5px;
    }

    .nav-modern {
        width: 100%;
    }

    .nav-modern ul {
        display: grid !important; /* Force Grid */
        grid-template-columns: 1fr 1fr; /* 2 cols */
        gap: 8px;
        width: 100%;
        margin-top: 5px;
        justify-content: stretch;
    }

    .nav-modern li {
        text-align: center;
        width: 100%;
    }

    .nav-modern a {
        display: block;
        font-size: 11px;
        padding: 8px 5px;
        background: rgba(255,255,255,0.6);
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
        white-space: nowrap; /* Prevent wrapping inside button */
    }

    /* Hero */
    .hero-title-modern {
        font-size: clamp(40px, 13vw, 80px); /* Smaller max */
        padding: 0 10px;
    }

    .hero-sub {
        font-size: 11px;
        letter-spacing: 0.15em;
    }

    /* Watermark - Fix Clustering */
    .bg-watermark {
        font-size: 15vw;
        letter-spacing: -0.05em;
        opacity: 0.03; /* Very Faint */
        top: 30%; 
    }

    /* Mission */
    .mission-media {
        height: 35vh;
    }

    .mission-content {
        padding: 40px 20px;
    }
    
    .mission-wrapper {
        border-radius: 20px;
    }

    /* Management */
    .m-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .glass-card {
        padding: 30px 20px;
        isolation: isolate; /* Create new stacking context */
        overflow: hidden; /* Ensure clipped */
    }

    .glass-card h3,
    .glass-card p {
        position: relative;
        z-index: 10; /* Text strictly on top */
    }

    .glass-card::after {
        width: 60px; /* Minimal size */
        height: 60px;
        top: 0;
        right: 0;
        opacity: 0.3; /* Faint */
        z-index: 1; /* Low z-index */
        pointer-events: none;
    }
    
    .glass-card::before {
        display: none; /* Remove extra decoration on mobile for cleanliness */
    }

    /* Business - Stack & Overlap Fix */
    .b-list-modern {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding-left: 0;
        overflow: visible;
        height: auto;
        width: 100%;
        margin-left: 0; /* Reset margin */
    }

    .b-list-modern::before {
        display: none; /* Remove horizontal line if any */
    }

    .b-item-modern, 
    .b-item-modern.reverse {
        width: 100%;
        max-width: 100%;
        margin: 0;
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
        border-radius: 30px;
        isolation: isolate;
    }

    .b-visual {
        width: 100%;
        height: 200px;
        flex: none;
        order: -1; /* Image first */
    }
    
    .b-content-modern {
        position: relative;
        z-index: 10;
    }

    .b-item-modern::after {
        width: 100px; /* Smaller */
        height: 100px;
        z-index: 1;
        opacity: 0.4;
    }

    /* Benefit */
    .benefit-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .footer-cta-modern {
        padding: 80px 20px;
    }

    .footer-cta-modern h2 {
        font-size: 40px;
    }
}

/* =========================================
   Idea 6: Glass Magazine (Business Section)
   ========================================= */
.magazine-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 40px;
    display: flex;
    overflow: hidden;
    min-height: 500px;
}

.mag-content {
    flex: 0 0 45%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mag-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mag-list li {
    display: flex;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.5;
}

.mag-list li:hover,
.mag-list li.active {
    opacity: 1;
    transform: translateX(10px);
}

.mag-list li.active {
    border-bottom-color: var(--c-accent-blue);
}

.mag-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    color: var(--c-accent-blue);
    margin-right: 20px;
    width: 25px;
}

.mag-text h3 {
    font-size: 18px;
    margin: 0 0 5px;
    font-weight: 700;
    color: var(--c-text-main);
}

.mag-text p {
    font-size: 13px;
    color: var(--c-text-sub);
    margin: 0;
}

.mag-visual {
    flex: 1;
    background: #fdfdfd;
    position: relative;
    overflow: hidden;
}

.mag-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Tablet & Smaller Desktop (Max 1024px) */
@media (max-width: 1024px) {
    .magazine-card {
        flex-direction: column;
    }
    .mag-visual {
        min-height: 300px;
        order: -1;
    }
    .mag-content {
        padding: 40px;
    }
}

/* --- Mobile Toggle Menu --- */
@media (max-width: 768px) {
    header { justify-content: space-between; }
    
    .menu-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 2002;
    }
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--c-text-main);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .menu-toggle span:nth-child(3) { bottom: 0; }

    /* Active State */
    .menu-open .menu-toggle span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* Nav Overlay */
    nav ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1500;
        gap: 30px;
        margin: 0;
        padding: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        visibility: hidden;
    }

    .menu-open nav ul {
        transform: translateX(0);
        visibility: visible;
    }

    nav a {
        font-size: 20px;
        font-weight: 700;
    }
}

@media (min-width: 769px) {
    .menu-toggle { display: none; }
}

@media (max-width: 768px) {
    .menu-toggle {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: -2px;
    }
}

/* --- Fixes for Mobile Layout Issues --- */
@media (max-width: 768px) {
    /* Prevent Horizontal Scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    main {
        overflow-x: hidden;
        width: 100%;
    }

    /* Fix Header Logo Distortion */
    header.glass-header .logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        z-index: 2005; /* Ensure above toggle if needed, or consistent */
    }
    header.glass-header .logo img {
        width: auto;
        height: 24px; /* Ensure height is fixed */
        object-fit: contain;
    }

    /* Constrain Slogan Width */
    .jp-slogan {
        font-size: clamp(32px, 10vw, 50px); /* Reduce max size */
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
        word-wrap: break-word;
    }

    /* Constrain Business List */
    .b-list-modern {
        width: 100%;
        flex-direction: column; /* Stack on mobile to avoid wide horizontal layout */
        padding-left: 0;
        gap: 40px;
        transform: none !important; /* Disable GSAP horizontal shift effects if possible via CSS */
    }
    /* Note: GSAP might override transform. JS check is better, but CSS stacking helps layout. */
    .business-card {
        min-width: unset;
        width: 90%;
        margin: 0 auto;
    }
}

/* --- Researcher Level Scroll Fixes --- */
canvas#webgl-canvas {
    display: block; /* Remove inline whitespace */
    width: 100%;
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
}

#bg-bubbles-group {
    max-width: 100vw;
    overflow: hidden;
}

/* Force containment on business list items to prevent flex expansion */
.b-list-modern {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Ensure no negative margins on rows if present (Bootstrap safety) */
.row {
    margin-right: 0;
    margin-left: 0;
}

/* --- Agent Fixes for Mobile Layout & Header --- */
@media (max-width: 768px) {
    /* Prevent Horizontal Scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Header Logo Fix (Prevent Squash) */
    header.glass-header .logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        z-index: 2005;
    }
    header.glass-header .logo img {
        width: auto;
        height: 24px;
        object-fit: contain;
    }
    
    /* Header Container Constraint */
    header.glass-header {
        width: 95%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Slogan Constraint */
    .jp-slogan {
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
        word-wrap: break-word;
        white-space: normal;
    }
    
    /* Business Section constraint */
    .b-list-modern, 
    .magazine-card, 
    .mag-content, 
    .mag-visual {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .magazine-card {
        width: 90%;
        margin: 0 auto;
    }
}

