:root {
    --bg: #161616;
    --panel: #24201d;
    --panel-soft: #2d2823;
    --text: #f5e8c8;
    --muted: #cdbf9d;
    --accent: #f2b84b;
    --accent-soft: rgba(242, 184, 75, 0.16);
    --border: rgba(245, 232, 200, 0.14);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(242, 184, 75, 0.12), transparent 34rem),
        linear-gradient(135deg, #151515 0%, #24201d 100%);
}

img,
video {
    max-width: 100%;
    display: block;
}

video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #0d0d0d;
    border: 1px solid var(--border);
}

.page-shell {
    width: min(1500px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.hero {
    text-align: center;
    margin-bottom: 44px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 0.95;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

h3 {
    margin-bottom: 14px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.2;
}

.hero-text {
    width: min(860px, 100%);
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.65;
}

.section {
    margin-top: 44px;
}

.section-heading {
    margin-bottom: 20px;
    text-align: left;
}

.featured-grid,
.project-grid {
    display: grid;
    gap: 22px;
}

.featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(36, 32, 29, 0.82);
    box-shadow: var(--shadow);
}

.project-card p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.featured-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 22px;
}

.media-link {
    color: inherit;
    text-decoration: none;
}

.logo-card,
.stream-kingdoms-preview {
    min-height: 220px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--panel-soft);
    transition: transform 160ms ease, border-color 160ms ease;
}

.logo-card:hover,
.stream-kingdoms-preview:hover,
.project-link:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 184, 75, 0.62);
}

.logo-card img {
    width: min(170px, 80%);
    height: auto;
    border-radius: 18px;
}

.stream-kingdoms-preview {
    overflow: hidden;
    padding: 0;
    background: #071532;
}

.stream-kingdoms-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.project-title-row h3 {
    margin: 0;
}

.badge {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 6px;
    padding: 0 16px;
    border: 1px solid rgba(242, 184, 75, 0.4);
    border-radius: 999px;
    color: var(--text);
    background: rgba(242, 184, 75, 0.1);
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-link:hover {
    background: rgba(242, 184, 75, 0.18);
}

@media (max-width: 1100px) {
    .featured-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 22px, 1500px);
        padding-top: 30px;
    }

    .featured-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        text-align: center;
    }

    .project-card {
        padding: 14px;
        border-radius: 18px;
    }
}
