@font-face {
    font-family: "AdmintySegoe";
    src: url("../adminty/fonts/SEGOEUI.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AdmintySegoe";
    src: url("../adminty/fonts/SEGOEUIB.TTF") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AdmintySegoe";
    src: url("../adminty/fonts/segoeuii.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --paper: #f8fbfa;
    --paper-warm: #fff7f3;
    --mist: #e8f4f2;
    --sky: #ddecf6;
    --mint: #badfce;
    --coral: #e7a092;
    --gold: #d8c38f;
    --ink: #26313b;
    --muted: #667785;
    --line: rgba(82, 113, 126, 0.22);
    --surface: rgba(255, 255, 255, 0.62);
    --surface-strong: rgba(255, 255, 255, 0.84);
    --shadow-soft: 0 28px 70px rgba(64, 91, 101, 0.16);
    --shadow-crisp: 0 12px 28px rgba(54, 74, 84, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: var(--ink);
    font-family: "AdmintySegoe", "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(120deg, rgba(232, 244, 242, 0.9), rgba(221, 236, 246, 0.78) 42%, rgba(255, 247, 243, 0.86)),
        var(--paper);
    overflow-x: hidden;
}

body::before,
body::after {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
}

body::before {
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(80, 112, 126, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 112, 126, 0.1) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6) 55%, transparent 92%);
}

body::after {
    background:
        linear-gradient(155deg, transparent 0 42%, rgba(186, 223, 206, 0.26) 42% 43%, transparent 43%),
        linear-gradient(25deg, transparent 0 62%, rgba(231, 160, 146, 0.16) 62% 63%, transparent 63%);
}

.site-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 28px 0 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 46px;
}

.site-mark {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--ink);
    text-decoration: none;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: var(--radius);
    box-shadow: var(--shadow-crisp);
    transform-style: preserve-3d;
}

.site-mark::before {
    position: absolute;
    inset: 8px;
    z-index: -1;
    background: linear-gradient(135deg, var(--mint), var(--sky), var(--coral));
    border-radius: 6px;
    opacity: 0.72;
    content: "";
    transform: translateZ(-8px);
}

.mark-core {
    font-size: 0.76rem;
    font-weight: 700;
}

.topbar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    flex: 1;
    padding: clamp(34px, 6vw, 74px) 0 clamp(28px, 5vw, 54px);
}

.hero-copy {
    max-width: 560px;
}

h1 {
    max-width: 11ch;
    margin: 0;
    color: var(--ink);
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
}

.lead {
    max-width: 34rem;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    line-height: 1.65;
}

.status-panel {
    width: min(100%, 500px);
    margin-top: 38px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.status-head strong {
    color: var(--ink);
    font-size: 1.02rem;
}

.progress-track {
    position: relative;
    height: 10px;
    margin-top: 14px;
    overflow: hidden;
    background: rgba(104, 130, 141, 0.12);
    border-radius: 999px;
}

.progress-track span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 72%;
    overflow: hidden;
    background: linear-gradient(90deg, var(--mint), var(--sky), var(--coral));
    border-radius: inherit;
    box-shadow: 0 0 24px rgba(154, 200, 188, 0.62);
    transform-origin: left;
    animation: progress-breathe 5.2s ease-in-out infinite;
}

.progress-track span::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    content: "";
    transform: translateX(-100%);
    animation: progress-shine 3.1s ease-in-out infinite;
}

.milestones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.milestones li {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 8px 9px;
    align-items: center;
    min-width: 0;
}

.dot {
    display: block;
    width: 10px;
    height: 10px;
    background: rgba(102, 119, 133, 0.28);
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.dot.is-done {
    background: var(--mint);
}

.dot.is-active {
    background: var(--coral);
    animation: dot-pulse 3.2s ease-in-out infinite;
}

.milestones strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.milestones small {
    grid-column: 2;
    color: var(--muted);
    font-size: 0.78rem;
}

.scene-stage {
    position: relative;
    display: grid;
    min-height: clamp(430px, 56vw, 650px);
    place-items: center;
    isolation: isolate;
    perspective: 1100px;
}

.scene-stage::before {
    position: absolute;
    inset: 8% 4% 7%;
    z-index: -2;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18)),
        linear-gradient(35deg, rgba(186, 223, 206, 0.28), rgba(221, 236, 246, 0.34), rgba(231, 160, 146, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius);
    box-shadow: 0 42px 90px rgba(48, 77, 87, 0.14);
    content: "";
    transform: rotateX(58deg) rotateZ(-8deg) translateY(42px);
    transform-origin: center bottom;
}

.scene-stage::after {
    position: absolute;
    right: 9%;
    bottom: 10%;
    left: 13%;
    z-index: -1;
    height: 30%;
    background: linear-gradient(90deg, transparent, rgba(52, 76, 86, 0.18), transparent);
    filter: blur(24px);
    content: "";
    transform: rotateX(72deg);
}

#construction-scene {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    filter: drop-shadow(0 24px 34px rgba(55, 81, 90, 0.2));
}

.scene-fallback {
    position: absolute;
    display: none;
    width: min(74vw, 430px);
    aspect-ratio: 1.2;
    transform: rotateX(58deg) rotateZ(-14deg);
    transform-style: preserve-3d;
}

.scene-fallback span {
    position: absolute;
    inset: 8%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.48);
    box-shadow: var(--shadow-soft);
    animation: fallback-float 4s ease-in-out infinite;
}

.scene-fallback span:nth-child(2) {
    inset: 19% 16%;
    animation-delay: -1.2s;
    transform: translateZ(52px);
}

.scene-fallback span:nth-child(3) {
    inset: 32% 27%;
    animation-delay: -2.4s;
    transform: translateZ(104px);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 30px;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-line {
    width: min(18vw, 150px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 112, 126, 0.36), transparent);
}

body.no-webgl #construction-scene {
    display: none;
}

body.no-webgl .scene-fallback {
    display: block;
}

@keyframes progress-breathe {
    0%, 100% {
        transform: scaleX(0.965);
    }
    50% {
        transform: scaleX(1);
    }
}

@keyframes progress-shine {
    0% {
        transform: translateX(-105%);
    }
    55%, 100% {
        transform: translateX(105%);
    }
}

@keyframes dot-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 160, 146, 0.36), inset 0 0 0 2px rgba(255, 255, 255, 0.82);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(231, 160, 146, 0), inset 0 0 0 2px rgba(255, 255, 255, 0.82);
    }
}

@keyframes fallback-float {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -14px;
    }
}

@media (max-width: 920px) {
    .site-shell {
        width: min(100% - 28px, 720px);
        padding-top: 18px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 42px;
    }

    .hero-copy {
        max-width: 100%;
    }

    h1 {
        max-width: 10.8ch;
    }

    .scene-stage {
        min-height: clamp(340px, 72vw, 500px);
        margin-top: 6px;
    }
}

@media (max-width: 560px) {
    .topbar p {
        font-size: 0.84rem;
    }

    h1 {
        font-size: clamp(2.7rem, 15vw, 4.1rem);
    }

    .lead {
        margin-top: 22px;
        font-size: 1rem;
    }

    .status-panel {
        padding: 16px;
    }

    .milestones {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .site-footer {
        flex-wrap: wrap;
        gap: 9px;
        padding-bottom: 10px;
        text-align: center;
    }

    .footer-line {
        width: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
}
