:root {
    color-scheme: light;
    --bg: #0c0f1a;
    --panel-bg: rgba(255, 255, 255, 0.08);
    --panel-border: rgba(255, 255, 255, 0.15);
    --text: #f5f7ff;
    --accent: #8ed3ff;
    --muted: rgba(245, 247, 255, 0.75);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at top, #1b2548 0%, #0c0f1a 55%, #080a12 100%);
    color: var(--text);
    min-height: 100vh;
    scroll-behavior: smooth;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6vw;
    background: rgba(8, 10, 18, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.site-nav a:hover {
    border-color: var(--accent);
}

main {
    padding: 2rem 6vw 4rem;
}

.panels {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    scroll-snap-type: y mandatory;
    scroll-padding: 10vh;
}

.panel {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-radius: 32px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: 0 24px 60px rgba(4, 8, 20, 0.55);
    opacity: 0.25;
    transform: scale(0.9);
    transition: transform 0.8s ease, opacity 0.8s ease;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    overflow: hidden;
}

.panel-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    background: rgba(12, 15, 26, 0.6);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(8px);
}

.panel.is-visible {
    opacity: 1;
    transform: scale(1);
}

.panel-content {
    width: 100%;
    max-width: 680px;
    text-align: center;
}

.intro-layout {
    display: flex;
    align-items: stretch;
    gap: 2.5rem;
}

.intro-image {
    flex: 0 0 28%;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.intro-photo {
    width: 100%;
    max-width: 220px;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 18px 36px rgba(4, 8, 20, 0.45);
}

.intro-text {
    flex: 1;
    text-align: left;
}

.panel-logo {
    max-width: 260px;
    max-height: 110px;
    width: auto;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(4, 8, 20, 0.45));
}

.panel-content h2 {
    font-size: clamp(1.4rem, 4.5vw, 3.5rem);
    margin: 0 0 1rem;
    white-space: nowrap;
    max-width: 100%;
}

.panel-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 1.5rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 480px) {
    .panel-content h2 {
        font-size: clamp(1.2rem, 5.5vw, 2.1rem);
    }
}

.panel-content a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.panel-content a:hover {
    text-decoration: underline;
}

.scroll-hint {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem 3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 6vw 6rem;
    line-height: 1.8;
}

.page-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 1.2rem;
}

.page-content a {
    color: var(--accent);
}

@media (max-width: 720px) {
    .panel {
        min-height: 75vh;
        padding: 2.2rem;
    }

    .intro-layout {
        flex-direction: column;
        text-align: center;
    }

    .intro-text {
        text-align: center;
    }

    .site-header {
        padding: 1rem 5vw;
    }
}
