:root {
    --bg: #0b0c0f;
    --panel: #0f1116;
    --text: #e8e9ee;
    --muted: #a7abb7;
    --ring: rgba(255, 255, 255, .12);
    --brand: #6366f1;
    --notable: #38bdf8;
    --notable-outline: rgba(56, 189, 248, .75);
    --notable-glow: rgba(56, 189, 248, .16);
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
    --gold: #facc15;
}

.tile.awarded {
    outline: 1.5px solid rgba(250, 204, 21, .75);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, .12), var(--shadow);
}

.tile.notable {
    outline: 1.5px solid var(--notable-outline);
    box-shadow: 0 0 0 3px var(--notable-glow), var(--shadow);
}

.ribbon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    width: 140px;
    height: 140px;
    pointer-events: none;
    overflow: hidden;
}

.ribbon .ribbon-label {
    position: absolute;
    top: 22px;
    right: -54px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 49px 6px 48px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .35);
}

.ribbon .ribbon-label .icon {
    font-size: 20px;
}

.ribbon .label-text {
    display: inline-block;
    transform: translateY(1px);
}

.award-ribbon .ribbon-label {
    background: linear-gradient(135deg, #fde047, var(--gold));
    color: #1a1625;
}

.notable-ribbon .ribbon-label {
    background: linear-gradient(135deg, var(--notable), var(--brand));
    color: #0f172a;
}

.notable-ribbon .ribbon-label {
    translate: 4px 4px;
}

.award-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--muted);
    background: rgba(50, 50, 50, .70);
    box-shadow: var(--shadow);
    margin: 0;
}

.award-note.gold {
    color: var(--gold);
    background: rgba(250, 204, 21, .12);
    outline: 1px solid rgba(250, 204, 21, .18);
}

.award-note[hidden] {
    display: none;
}

.award-note .icon {
    font-size: 16px;
    margin-top: 2px;
}

.award-note a {
    flex: 1;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}

.award-note a:hover {
    border-bottom-color: currentColor;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: radial-gradient(1200px 800px at 80% -10%, rgba(99, 102, 241, .12), transparent 60%),
        radial-gradient(900px 600px at 10% -5%, rgba(16, 185, 129, .10), transparent 55%), var(--bg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: auto, auto, cover;
    color: var(--text);
    line-height: 1.45;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 12px;
}

.header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
}

@media (min-width: 720px) {
    .header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.identity {
    display: flex;
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.identity-text {
    min-width: 0;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow);
    outline: 2px solid var(--ring);
}

.title {
    font-weight: 800;
    font-size: clamp(22px, 3vw, 28px);
    letter-spacing: .2px;
    margin: 0 0 8px;
}

.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
    color: var(--muted);
}

.contact a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}

.contact a:hover {
    color: var(--text);
    border-bottom-color: currentColor;
}

.contact .item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

.icon-nexusmods {
    width: 1em;
    height: 1em;
    background-color: currentColor;
    mask: url('./images/nexusmods.svg') no-repeat center / contain;
    -webkit-mask: url('./images/nexusmods.svg') no-repeat center / contain;
}

.contact .icon {
    font-size: 18px;
}

.btn .icon {
    font-size: 15px;
}

section {
    margin: 30px 0;
}

h2 {
    font-size: clamp(18px, 2.6vw, 22px);
    margin: 0 0 12px;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 720px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tile {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    outline: 1px solid var(--ring);
    background: var(--panel);
    transition: transform .15s ease, box-shadow .2s ease;
    min-height: clamp(180px, 20vw, 240px);
}

.tile:hover {
    transform: translateY(-2px);
}

.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: filter .2s ease, transform .2s ease, opacity .2s ease;
}

.bg-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-size: clamp(28px, 8vw, 72px);
    font-weight: 800;
    text-align: center;
    color: rgba(255, 255, 255, .25);
    letter-spacing: .08em;
    z-index: 0;
    pointer-events: none;
}

.bg-placeholder .icon {
    font-size: clamp(42px, 10vw, 96px);
    opacity: .65;
    padding-top: 40px;
}

.bg-placeholder[hidden] {
    display: none;
}

.scrim-base {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .42) 36%, rgba(0, 0, 0, .12) 70%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(120deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .14) 52%, rgba(0, 0, 0, .08) 88%);
    transition: background .2s ease;
}

.tile:hover .bg,
.tile:focus-within .bg {
    filter: blur(5px) brightness(.30);
}

.tile:hover .scrim-base,
.tile:focus-within .scrim-base {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .52) 40%, rgba(0, 0, 0, .2) 78%, rgba(0, 0, 0, .06) 100%),
        linear-gradient(120deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .24) 56%, rgba(0, 0, 0, .14) 92%);
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.tile-title {
    color: #fff;
    font-weight: 700;
    font-size: clamp(16px, 2.2vw, 20px);
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.summary {
    color: #fff;
    font-size: 14px;
    opacity: .95;
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.details-block {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    color: #fff;
}

.details-block .fade {
    opacity: 0;
    transition: opacity .18s ease;
}

.tile:hover .details-block .fade,
.tile:focus-within .details-block .fade {
    opacity: 1;
}

.client {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    outline: 2px solid rgba(255, 255, 255, .45);
}

.client .meta {
    font-size: 13px;
    opacity: .9;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.details {
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
    outline: 1px solid rgba(255, 255, 255, .25);
}

.btn:hover {
    background: rgba(255, 255, 255, .18);
}
