/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    color: #1a1a2e;
    background: #f4efe9;
    overflow-x: hidden;
}

/* === HERO === */
.hero {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(175deg, #1b4965 0%, #3d85a3 45%, #81b29a 100%);
    display: grid;
    place-items: center;
}

.caustic-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(232,213,184,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(232,213,184,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(232,213,184,0.07) 0%, transparent 55%);
    background-size: 60% 60%, 50% 50%, 70% 70%;
    animation: caustic1 15s ease-in-out infinite, caustic2 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes caustic1 {
    0%, 100% { background-position: 20% 30%, 70% 60%, 50% 80%; }
    50% { background-position: 40% 50%, 50% 40%, 30% 60%; }
}
@keyframes caustic2 {
    0%, 100% { background-position: 20% 30%, 70% 60%, 50% 80%; }
    33% { background-position: 60% 20%, 30% 70%, 70% 50%; }
    66% { background-position: 35% 65%, 55% 35%, 45% 75%; }
}

.watermark {
    position: absolute;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: clamp(8rem, 22vw, 20rem);
    color: #e8d5b8;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.logotype {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(6rem, 18vw, 16rem);
    letter-spacing: 0.15em;
    color: #f4efe9;
    text-transform: uppercase;
    line-height: 1;
}

.tagline {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.75rem, 0.9vw, 0.875rem);
    color: #e8d5b8;
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

/* === BUBBLES === */
.bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(129, 178, 154, 0.4);
    background: rgba(61, 133, 163, 0.08);
    box-shadow: inset -4px -4px 8px rgba(255,255,255,0.2);
    animation: rise linear infinite;
    opacity: 0;
}

@keyframes rise {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) translateX(var(--drift)); opacity: 0; }
}

/* === GEOMETRIC DIVIDER === */
.geo-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    background: #f4efe9;
}

.geo-shape {
    width: 48px;
    height: 48px;
    animation: bob 2s ease-in-out infinite;
    transition: transform 300ms ease;
    cursor: default;
}

.geo-shape:hover { transform: scale(1.15); }
.geo-shape:nth-child(2) { animation-delay: 0.3s; }
.geo-shape:nth-child(3) { animation-delay: 0.6s; }

.geo-circle {
    border-radius: 50%;
    background: #f2cc8f;
}
.geo-square {
    background: #1b4965;
}
.geo-triangle {
    background: transparent;
    width: 0; height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-bottom: 48px solid #e07a5f;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* === SVG WAVES === */
.wave-decoration {
    display: block;
    width: 100%;
    height: 60px;
    background: #f4efe9;
}

.wave-path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: flowWave 8s linear infinite;
}
.wave-2 { animation-delay: -3s; animation-duration: 10s; }

@keyframes flowWave {
    0% { stroke-dashoffset: 1400; }
    100% { stroke-dashoffset: 0; }
}

/* === DASHBOARD BACKGROUND === */
.dashboard {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 3rem);
    background:
        radial-gradient(ellipse at 30% 40%, rgba(61,133,163,0.04) 0%, transparent 60%),
        #f4efe9;
    padding-bottom: 4rem;
}

/* === PANEL BASE === */
.panel {
    background: rgba(244, 239, 233, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(27, 73, 101, 0.08);
    box-shadow: 0 4px 24px rgba(27, 73, 101, 0.06);
    transition: all 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(27, 73, 101, 0.1);
}

/* Blur-focus scroll animation */
.panel.submerged {
    filter: blur(2px);
    opacity: 0.7;
    transform: translateY(20px);
}

.panel-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #1b4965;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.panel-label {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.75rem, 0.9vw, 0.875rem);
    color: #3d85a3;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.panel-body {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    color: #1a1a2e;
    margin-bottom: 1.5em;
}

/* === IDENTITY PANEL === */
.panel-identity {
    grid-column: span 7;
    grid-row: span 2;
}

.panel-corner-triangle {
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-left: 60px solid transparent;
    border-top: 60px solid #e07a5f;
    opacity: 0.6;
}

.jp-inline {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    color: #3d85a3;
}

/* === PROJECT PANEL === */
.panel-project {
    grid-column: span 5;
}

.project-art {
    position: relative;
    height: 120px;
    margin: 1rem 0;
}

.project-geo {
    position: absolute;
}

.project-geo-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #f2cc8f;
    opacity: 0.7;
    top: 10px; left: 20px;
}
.project-geo-rect {
    width: 60px; height: 40px;
    background: #1b4965;
    opacity: 0.5;
    top: 40px; left: 80px;
}
.project-geo-tri {
    width: 0; height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid #e07a5f;
    opacity: 0.6;
    top: 15px; right: 40px;
}
.project-geo-circle-sm {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #81b29a;
    opacity: 0.5;
    bottom: 10px; right: 20px;
}

/* === MEMBERS PANEL === */
.panel-members {
    grid-column: span 5;
}

.members-grid {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.avatar {
    width: 56px; height: 56px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.av-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f2cc8f;
}
.av-triangle {
    position: absolute;
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid #e07a5f;
    top: 2px; right: 2px;
}
.av-tri-alt {
    border-bottom-color: #3d85a3;
    top: auto; bottom: 2px; left: 2px; right: auto;
}
.av-square {
    width: 36px; height: 36px;
    background: #1b4965;
}
.av-sq-sm {
    width: 28px; height: 28px;
    background: #e07a5f;
}
.av-circle-sm {
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #81b29a;
    top: 0; right: 4px;
}

.member-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    color: #1b4965;
    letter-spacing: 0.05em;
}
.member-role {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #3d85a3;
}

/* === ARCHIVE PANEL === */
.panel-archive {
    grid-column: span 7;
}

.archive-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.archive-tile {
    flex: 0 0 140px;
    background: rgba(27, 73, 101, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tile-geo {
    width: 48px; height: 48px;
}
.tile-geo-1 {
    border-radius: 50%;
    background: #e07a5f;
}
.tile-geo-2 {
    background: #3d85a3;
}
.tile-geo-3 {
    width: 0; height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-bottom: 48px solid #f2cc8f;
}
.tile-geo-4 {
    border-radius: 50%;
    background: #81b29a;
}

.tile-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #1a1a2e;
    text-align: center;
}
.tile-year {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #3d85a3;
}

/* === CONTACT PANEL === */
.panel-contact {
    grid-column: span 12;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.bauhaus-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    color: #1b4965;
    text-decoration: none;
    padding: 0.7rem 1.8rem;
    border: 2px solid #1b4965;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(#e07a5f, #e07a5f);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left;
    transition: background-size 400ms ease, color 400ms ease;
}

.bauhaus-btn:hover {
    background-size: 100% 100%;
    color: #f4efe9;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    .panel-identity,
    .panel-project,
    .panel-members,
    .panel-archive,
    .panel-contact {
        grid-column: span 1;
        grid-row: span 1;
    }
    .members-grid {
        justify-content: center;
    }
    .geo-shape {
        width: 32px; height: 32px;
    }
    .geo-triangle {
        border-left-width: 16px;
        border-right-width: 16px;
        border-bottom-width: 32px;
    }
    .panel {
        padding: clamp(1rem, 4vw, 1.5rem);
    }
}
