@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/dmsans-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/fraunces-700-latin.woff2') format('woff2');
}

:root {
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-700: #c2410c;
    --warm-50: #fffbf5;
    --slate-600: #475569;
    --slate-900: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--warm-50);
    color: var(--slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
    animation: drift 22s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--orange-200), var(--orange-100));
    top: -200px;
    right: -120px;
}

.blob-2 {
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, var(--orange-300), var(--orange-200));
    bottom: -120px;
    left: -100px;
    animation-delay: -8s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #bef264, #a3e635);
    top: 50%;
    right: 12%;
    opacity: 0.3;
    animation-delay: -14s;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -30px); }
    66% { transform: translate(-30px, 25px); }
}

.stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 2rem;
    text-align: center;
}

.bloom {
    width: 120px;
    height: 120px;
}

.petal {
    fill: var(--orange-400);
    transform-box: fill-box;
    transform-origin: 50% 100%;
    transform: scale(0);
    animation: open 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bloom g:nth-of-type(1) .petal { animation-delay: 0.05s; }
.bloom g:nth-of-type(2) .petal { animation-delay: 0.15s; }
.bloom g:nth-of-type(3) .petal { animation-delay: 0.25s; }
.bloom g:nth-of-type(4) .petal { animation-delay: 0.35s; }
.bloom g:nth-of-type(5) .petal { animation-delay: 0.45s; }

@keyframes open {
    to { transform: scale(1); }
}

.center {
    fill: var(--orange-700);
    transform-box: fill-box;
    transform-origin: 50% 50%;
    transform: scale(0);
    animation: pop 0.5s 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pop {
    to { transform: scale(1); }
}

.wordmark {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--slate-900);
    opacity: 0;
    animation: fade-up 0.8s 0.9s ease-out forwards;
}

.wordmark .highlight {
    color: var(--orange-500);
    font-style: italic;
}

.caption {
    font-size: 1.05rem;
    color: var(--slate-600);
    opacity: 0;
    animation: fade-up 0.8s 1.2s ease-out forwards;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .petal, .center, .wordmark, .caption, .blob {
        animation: none;
    }
    .petal { transform: scale(1); }
    .center { transform: scale(1); }
    .wordmark, .caption { opacity: 1; }
}
