﻿:root {
    --bg: #edf6ff;
    --bg-soft: #f7fbff;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: rgba(255, 255, 255, 0.95);
    --line: rgba(27, 63, 96, 0.14);
    --text: #102033;
    --muted: #52677f;
    --accent: #078fc5;
    --accent-2: #5d6df0;
    --success: #3ee08f;
    --warning: #ffcc66;
    --shadow: 0 24px 70px rgba(42, 81, 120, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M0 .5H28M.5 0V28' fill='none' stroke='%231b3f60' stroke-opacity='.14' stroke-width='1' stroke-dasharray='3 6'/%3E%3C/svg%3E"),
        radial-gradient(circle at 12% 8%, rgba(7, 143, 197, 0.16), transparent 32%),
        radial-gradient(circle at 88% 16%, rgba(93, 109, 240, 0.14), transparent 30%),
        linear-gradient(180deg, #f8fcff 0%, #edf6ff 38%, #dbeaf7 72%, #cbddeb 100%);
    background-size: 28px 28px, auto, auto, auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cpath d='M0 .5H112M.5 0V112' fill='none' stroke='%231b3f60' stroke-opacity='.12' stroke-width='1' stroke-dasharray='5 10'/%3E%3C/svg%3E");
    background-size: 112px 112px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
}

a {
    color: inherit;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 143, 197, 0.18), transparent 68%);
}

.topbar {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.brand,
.contact-panel a {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px 9px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
}

.brand-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #071827;
    box-shadow: 0 12px 30px rgba(7, 143, 197, 0.18);
    font-weight: 900;
    letter-spacing: -0.06em;
    overflow: hidden;
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-top: 1px solid rgba(7, 24, 39, 0.38);
    border-right: 1px solid rgba(7, 24, 39, 0.38);
    border-radius: 9px;
}

.brand-mark i,
.brand-mark b {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #071827;
    opacity: 0.78;
}

.brand-mark i {
    right: 8px;
    top: 8px;
}

.brand-mark b {
    left: 8px;
    bottom: 8px;
}

.brand-name {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.brand-name strong {
    color: var(--accent);
    font-weight: 900;
}

.contact-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(7, 143, 197, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 36px rgba(42, 81, 120, 0.1);
}

.hero-content {
    width: min(1180px, 100%);
    margin: 0 auto;
    align-self: center;
    padding: 72px 0;
    position: relative;
    z-index: 2;
}

.kicker {
    width: fit-content;
    margin: 0 0 22px;
    padding: 8px 12px;
    border: 1px solid rgba(7, 143, 197, 0.18);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(7, 143, 197, 0.07);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 930px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.lead {
    max-width: 720px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 1.22rem;
    line-height: 1.65;
}

.story-section {
    width: min(1180px, calc(100% - 32px));
    margin: 90px auto 0;
    padding-bottom: 84px;
}

.scene {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, 560px) minmax(280px, 1fr);
    gap: clamp(28px, 6vw, 96px);
    align-items: center;
    margin: 0 0 86px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.scene.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scene-right .story-card {
    grid-column: 2;
}

.scene-right .scene-copy {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.scene::before {
    content: "";
    position: absolute;
    right: 50%;
    bottom: -62px;
    width: 1px;
    height: 62px;
    background: linear-gradient(to bottom, rgba(7, 143, 197, 0.35), transparent);
}

.scene:last-child::before {
    display: none;
}

.story-card {
    position: relative;
    min-height: 380px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.76)),
        rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.story-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(7, 143, 197, 0.12), transparent 38%, rgba(93, 109, 240, 0.08));
    opacity: 0.65;
}

.scene-media {
    position: absolute;
    inset: 14px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.68);
}

.scene-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.02) contrast(1.04);
}

.scene-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(16, 32, 51, 0.14)),
        linear-gradient(135deg, rgba(7, 143, 197, 0.08), transparent 42%);
}

.scene-copy {
    position: relative;
    padding: 26px 0;
    cursor: help;
    outline: none;
}

.scene-copy h2,
.contact-panel h2 {
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 4vw, 4.2rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
}

.scene-copy p,
.contact-panel p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.scene-hint {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
}

.scene-hint::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.floating-details {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(237, 246, 255, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    backdrop-filter: blur(12px);
}

.scene:has(.scene-copy:hover) .floating-details,
.scene:has(.scene-copy:focus) .floating-details,
.scene:has(.scene-copy:focus-within) .floating-details,
.floating-details:hover {
    opacity: 1;
    pointer-events: auto;
}

.floating-details-card {
    width: min(560px, 100%);
    padding: 30px;
    border: 1px solid rgba(7, 143, 197, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.92)),
        var(--panel-strong);
    box-shadow: 0 34px 100px rgba(42, 81, 120, 0.28);
    color: var(--text);
    transform: translateY(12px) scale(0.98);
    transition: transform 180ms ease;
}

.scene:has(.scene-copy:hover) .floating-details-card,
.scene:has(.scene-copy:focus) .floating-details-card,
.scene:has(.scene-copy:focus-within) .floating-details-card,
.floating-details:hover .floating-details-card {
    transform: translateY(0) scale(1);
}

.modal-close-hint {
    display: block;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.84rem;
}

.floating-details h3 {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.floating-details ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}

.floating-details li {
    color: var(--muted);
    line-height: 1.45;
}

.contact-panel {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto 80px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.82)),
        rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    text-align: center;
    backdrop-filter: blur(22px);
}

.contact-panel .kicker {
    margin-left: auto;
    margin-right: auto;
}

.contact-panel a {
    margin-top: 8px;
    color: #071827;
    background: linear-gradient(135deg, var(--accent), #9ff0ff);
    border-color: transparent;
}

.contact-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.contact-panel a.secondary-link {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 36px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: rgba(16, 32, 51, 0.58);
    font-size: 0.92rem;
}

@media (max-width: 760px) {
    .hero {
        min-height: auto;
        padding: 16px;
    }

    .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .brand {
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        padding: 56px 0 98px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .scene,
    .scene-right {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 64px;
    }

    .scene-right .story-card,
    .scene-right .scene-copy {
        grid-column: auto;
        grid-row: auto;
        text-align: left;
    }

    .scene::before {
        left: 28px;
        right: auto;
    }

    .story-card {
        min-height: 330px;
        border-radius: 22px;
    }

    .scene-copy {
        padding: 0;
    }

    .floating-details-card {
        padding: 24px;
        border-radius: 22px;
    }

    .contact-panel {
        padding: 28px;
        border-radius: 22px;
    }

    .contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .site-footer {
        margin-top: -36px;
        flex-direction: column;
        text-align: center;
    }
}

