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

:root {
    --blood:  #ff4433;
    --ember:  #e8560a;
    --char:   #0d0b09;
    --bone:   #e8dfd0;
    --smoke:  #6b6058;
}

@font-face {
  font-family: Bahianita;
  src: url(/static/Bahianita-Regular.ttf);
}

html, body {
    height: 100%;
}

body {
    background: var(--char);
    color: var(--bone);
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Noise grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
    z-index: 10;
}

/* Ember glow from below */
body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 50vh;
    background: radial-gradient(ellipse, rgba(192,23,15,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* ── STAGE ── */
.stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

/* Logo */
.logo-wrap {
    max-width: 40%;
    min-width: 256px;
    opacity: 0;
    animation: up 0.9s cubic-bezier(0.16,1,0.3,1) forwards 0.1s;
    filter: drop-shadow(0 0 24px rgba(232,86,10,0.4));
}

.logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-wrap.missing {
    border: 1.5px solid rgba(192,23,15,0.4);
    border-radius: 50%;
    filter: none;
}

/* Name */
h1.business-name {
    font-family: Bahianita, sans-serif;
    font-size: clamp(3.5rem, 16vw, 8.5rem);
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--blood);
    opacity: 0;
    animation: up 0.9s cubic-bezier(0.16,1,0.3,1) forwards 0.25s;
}

.rule {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--blood);
    margin: 1.5rem auto 1.75rem;
    opacity: 0;
    animation: up 0.9s cubic-bezier(0.16,1,0.3,1) forwards 0.4s;
}

p.tag {
    font-size: 0.82rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--smoke);
    line-height: 1.9;
    opacity: 0;
    animation: up 0.9s cubic-bezier(0.16,1,0.3,1) forwards 0.52s;
}

/* CTA */
.cta {
    margin-top: 3rem;
    opacity: 0;
    animation: up 0.9s cubic-bezier(0.16,1,0.3,1) forwards 0.68s;
}

.btn-devlog {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2.25rem;
    background: var(--blood);
    color: var(--bone);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-devlog:hover {
    background: var(--bone);
    color: var(--blood);
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(192,23,15,0.4);
}

.btn-devlog:hover svg {
    transform: translateX(3px);
}

.btn-devlog svg {
    transition: transform 0.2s;
}

/* Footer stamp */
.stamp {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bone);
    white-space: nowrap;
    opacity: 0;
    animation: up 0.9s cubic-bezier(0.16,1,0.3,1) forwards 1s;
}

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