@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #030407;
    --panel: #171922;
    --panel-2: #202027;
    --field: #08090e;
    --line: #4a3d29;
    --line-2: #6f5730;
    --gold: #f1c95d;
    --cream: #f5ecd6;
    --text: #c9bba0;
    --muted: #8f8068;
    --font-display: "Montserrat", Arial, sans-serif;
    --font-label: "Montserrat", Arial, sans-serif;
    --font-serif: "Montserrat", Arial, sans-serif;
    --font-body: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px;
    background:
        radial-gradient(circle at 24% 8%, rgba(180, 139, 51, .1), transparent 24rem),
        linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, .025) 50%, transparent 52%),
        linear-gradient(135deg, #020307 0%, #07080d 48%, #020307 100%);
}

a { color: inherit; }

.shell {
    position: relative;
    width: min(1080px, calc(100vw - 44px));
    margin: 30px auto;
}

.hero {
    position: relative;
    min-height: 170px;
    display: grid;
    align-items: center;
    padding: 34px 42px;
    border: 1px solid var(--line-2);
    background: linear-gradient(145deg, #191b25, #13151e 58%, #10121a);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.mascot-power {
    position: absolute;
    right: 44px;
    bottom: -10px;
    z-index: 3;
    margin: 0;
    width: 172px;
    height: 190px;
    animation: thalmor-float 4.8s ease-in-out infinite;
    pointer-events: none;
}

.mascot-power:before,
.mascot-power:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10px;
    translate: -50% 0;
    border-radius: 50%;
    pointer-events: none;
}

.mascot-power:before {
    width: 132px;
    height: 28px;
    background: radial-gradient(ellipse, rgba(241, 201, 93, .34), rgba(106, 77, 28, .14) 48%, transparent 72%);
    filter: blur(8px);
    animation: smoke-pulse 3.2s ease-in-out infinite;
}

.mascot-power:after {
    width: 102px;
    height: 42px;
    bottom: 2px;
    background:
        radial-gradient(circle at 25% 55%, rgba(245, 236, 214, .18), transparent 32%),
        radial-gradient(circle at 55% 45%, rgba(241, 201, 93, .2), transparent 34%),
        radial-gradient(circle at 78% 58%, rgba(245, 236, 214, .12), transparent 28%);
    filter: blur(6px);
    opacity: .8;
    animation: smoke-drift 4.6s ease-in-out infinite;
}

.mascot-power img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .65)) drop-shadow(0 0 18px rgba(241, 201, 93, .18));
}

@keyframes thalmor-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@keyframes smoke-pulse {
    0%, 100% { opacity: .55; transform: scaleX(.92); }
    50% { opacity: .95; transform: scaleX(1.08); }
}

@keyframes smoke-drift {
    0%, 100% { opacity: .45; transform: translateX(-4px) scale(.96); }
    50% { opacity: .85; transform: translateX(5px) scale(1.08); }
}

.hero p,
.service-topline span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .24em;
    font-size: 11px;
    font-weight: 900;
    font-family: var(--font-label);
}

.hero h1 {
    margin: 14px 0 0;
    color: var(--cream);
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 58px);
    line-height: .94;
    letter-spacing: -.045em;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
    align-items: stretch;
}

.service-card {
    position: relative;
    min-height: 300px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 16px;
    padding: 24px 24px 22px;
    border: 1px solid var(--line-2);
    background: #14161f;
    text-decoration: none;
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.service-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), transparent 72%);
}

.service-card:after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(241, 201, 93, .12);
    rotate: 45deg;
    pointer-events: none;
}

.service-card-archives {
    background:
        radial-gradient(circle at 18% 12%, rgba(241, 201, 93, .1), transparent 9rem),
        linear-gradient(145deg, #20222c, #14161f 62%, #101119);
}

.service-card-potions {
    background:
        radial-gradient(circle at 82% 14%, rgba(151, 104, 201, .13), transparent 8rem),
        linear-gradient(145deg, #1d1f2a, #141722 62%, #101119);
}

.service-card-future {
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.035), transparent 8rem),
        linear-gradient(145deg, #181820, #111219 62%, #0d0e13);
}

.service-card-future h2,
.service-card-future p {
    color: rgba(245, 236, 214, .62);
}

.service-card:not(.disabled):hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    background: linear-gradient(145deg, #25252e, #181a23 56%, #14161f);
}

.service-card.disabled {
    opacity: .62;
}

.service-number {
    position: absolute;
    right: 18px;
    top: 14px;
    color: rgba(245, 236, 214, .08);
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.service-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.service-topline small {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 9px;
    font-weight: 900;
    font-family: var(--font-label);
}

.service-card h2 {
    margin: 0;
    color: var(--cream);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    letter-spacing: -.032em;
}

.service-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.62;
}

.service-card > strong {
    align-self: end;
    width: max-content;
    margin-top: 10px;
    padding: 10px 15px;
    color: #11100d;
    border: 1px solid var(--gold);
    background: linear-gradient(90deg, #f4d77c, #c99333);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 950;
    font-family: var(--font-label);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding: 16px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 10px;
    font-weight: 900;
}

@media (max-width: 980px) {
    .services { grid-template-columns: 1fr; }
    .service-card { min-height: 0; }
}

@media (max-width: 640px) {
    body {
        display: block;
        overflow-x: hidden;
    }

    .shell {
        width: 100%;
        margin: 12px 0 28px;
        padding: 0 10px;
    }

    .hero {
        min-height: 0;
        padding: 24px 16px;
        padding-right: 120px;
        border-left: 0;
        border-right: 0;
    }

    .mascot-power {
        width: 104px;
        height: 124px;
        right: 12px;
        bottom: -10px;
        margin: 0;
    }

    .hero p,
    .service-topline span {
        letter-spacing: .1em;
        font-size: 10px;
    }

    .hero h1 {
        margin: 12px 0;
        font-size: clamp(38px, 15vw, 58px);
        line-height: .96;
    }

    .hero span,
    .service-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    .service-card {
        padding: 16px;
        border-left: 0;
        border-right: 0;
    }

    .services { gap: 14px; }

    .service-topline {
        display: grid;
        gap: 8px;
    }

    .service-card h2 {
        font-size: 30px;
    }

    .service-card > strong {
        width: 100%;
        text-align: center;
    }

    footer {
        display: grid;
        padding: 18px 10px;
        line-height: 1.6;
    }
}
