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

:root {
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --gold-dark: #9a7a2e;
    --dark: #0d0d0d;
    --dark2: #151515;
}

html, body { height: 100%; }

body {
    background-color: var(--dark);
    color: #aaa;
    font-family: 'Work Sans', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ── Animated grid background ── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridDrift 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* ── Radial glow ── */
.bg-glow {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(201,168,76,.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1;  transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: .5; transform: translate(-50%, -50%) scale(1.08); }
}

/* ── Particles ── */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0%   { transform: translateY(105vh); opacity: 0; }
    10%  { opacity: .4; }
    90%  { opacity: .15; }
    100% { transform: translateY(-5vh); opacity: 0; }
}

/* ── Card ── */
.card {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 620px;
    width: 90%;
    padding: 4rem 3rem;
    background: rgba(18,18,18,.9);
    border: 1px solid rgba(201,168,76,.22);
    border-radius: 3px;
    backdrop-filter: blur(14px);
    box-shadow:
        0 0 50px rgba(201,168,76,.07),
        0 25px 70px rgba(0,0,0,.65);
    animation: cardIn 1s cubic-bezier(.22,1,.36,1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(40px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Corner ornaments */
.corner {
    position: absolute;
    width: 30px; height: 30px;
    border-color: rgba(201,168,76,.3);
    border-style: solid;
}
.corner-tl { top: 14px; left: 14px;    border-width: 1px 0 0 1px; }
.corner-tr { top: 14px; right: 14px;   border-width: 1px 1px 0 0; }
.corner-bl { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; }
.corner-br { bottom: 14px; right: 14px;border-width: 0 1px 1px 0; }

/* Logo */
.logo-wrap {
    margin-bottom: 2rem;
    min-height: 10px;
}
.logo-wrap img {
    height: 95px;
    filter: grayscale(40%) drop-shadow(0 0 14px rgba(201,168,76,.2));
    opacity: .75;
}

/* Ornament rule */
.ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 2rem;
    width: 70%;
}
.ornament-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.3), transparent);
}
.ornament-icon {
    color: rgba(201,168,76,.35);
    font-size: .8rem;
}

/* Badge */
.badge {
    display: inline-block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-dark);
    border: 1px solid rgba(201,168,76,.2);
    padding: .3rem 1rem;
    border-radius: 2px;
    margin-bottom: 1.6rem;
}

/* Heading */
h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ddd;
    line-height: 1.2;
    margin-bottom: 1.8rem;
}

/* Divider */
.divider {
    width: 55px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
    margin: 0 auto 1.8rem;
}

/* Body text */
p {
    font-size: .95rem;
    color: #666;
    line-height: 1.9;
    margin-bottom: 1rem;
    padding: 0 .5rem;
}
p:last-of-type { margin-bottom: 0; }
p strong {
    color: #999;
    font-weight: 500;
}

/* Signature */
.sig {
    margin-top: 2.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201,168,76,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
}
.sig-name {
    font-family: 'Josefin Sans', sans-serif;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #2e2e2e;
}
.sig-name a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color .2s;
}
.sig-name a:hover { color: var(--gold); }
.sig-year {
    font-size: .68rem;
    color: #2a2a2a;
    letter-spacing: .1em;
}

/* Responsive */
@media (max-width: 480px) {
    .card { padding: 2.8rem 1.6rem; }
    .ornament { width: 90%; }
    .sig { flex-direction: column; align-items: center; text-align: center; }
}
