:root {
    --bg-main: #090b11;
    --bg-alt: #10141d;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(242, 204, 110, 0.22);
    --gold: #f2cc6e;
    --gold-strong: #ffcf5a;
    --text: #f5f5f7;
    --muted: #aeb5c2;
    --shadow-soft: 0 0 22px rgba(242, 204, 110, 0.06);
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.26);
    --radius: 22px;
    --radius-sm: 14px;
    --container: 1320px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top center, rgba(242, 204, 110, 0.08), transparent 30%),
        linear-gradient(180deg, #090b11 0%, #0d1118 40%, #090b11 100%);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 14s ease-in-out infinite;
}

.orb-1 {
    top: -80px;
    left: -100px;
    background: radial-gradient(circle, rgba(242, 204, 110, 0.18) 0%, rgba(242, 204, 110, 0.05) 40%, transparent 72%);
}

.orb-2 {
    right: -100px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(242, 204, 110, 0.16) 0%, rgba(242, 204, 110, 0.04) 40%, transparent 72%);
    animation-delay: -5s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(18px, 20px);
    }
}

.topbar,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.topbar {
    position: sticky;
    top: 0;
    backdrop-filter: blur(14px);
    background: rgba(9, 11, 17, 0.82);
    border-bottom: 1px solid rgba(242, 204, 110, 0.14);
    z-index: 20;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-logo {
    height: 80px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 14px rgba(242, 204, 110, 0.14));
}

.top-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.top-nav a,
.top-nav a:visited,
.top-nav a:active,
.top-nav a:focus {
    color: var(--text);
    padding: 11px 16px;
    border-radius: 14px;
    border: 1px solid rgba(242, 204, 110, 0.14);
    background: rgba(255, 255, 255, 0.03);
    transition: 0.22s ease;
    font-weight: 600;
}

.top-nav a:hover {
    color: var(--text);
    border-color: rgba(242, 204, 110, 0.30);
    box-shadow: 0 0 14px rgba(242, 204, 110, 0.08);
    transform: translateY(-1px);
}

.hero {
    padding: 28px 0 14px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 30px 30px 24px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.022)),
        rgba(14, 17, 26, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(242, 204, 110, 0.10), transparent 28%),
        radial-gradient(circle at bottom left, rgba(242, 204, 110, 0.05), transparent 26%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: block;
}

.hero-copy {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 14px;
    max-width: 100%;
    font-size: clamp(2.4rem, 3.6vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: -0.028em;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        #f5f7fa 0%,
        #d6dde6 22%,
        #aeb7c2 48%,
        #e9edf2 78%,
        #cfd6df 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(220, 228, 236, 0.06);
}

.hero-copy h1 span {
    background: linear-gradient(
        135deg,
        #fff2bf 0%,
        #f2cc6e 22%,
        #d9a73a 50%,
        #ffdf87 78%,
        #c98d18 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(242, 204, 110, 0.12));
}

.hero-copy h1::after {
    content: "";
    display: block;
    width: 100%;
    max-width: 220px;
    height: 1px;
    margin: 25px auto 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(242, 204, 110, 0.16) 18%,
        rgba(242, 204, 110, 0.46) 50%,
        rgba(242, 204, 110, 0.16) 82%,
        transparent 100%
    );
    opacity: 0.95;
}

.hero-text {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
    max-width: 100%;
    text-align: center;
}

.featured-project {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(242, 204, 110, 0.16);
    background: linear-gradient(
        135deg,
        rgba(242, 204, 110, 0.06),
        rgba(255, 255, 255, 0.02)
    );
    box-shadow: 0 0 14px rgba(242, 204, 110, 0.04);
    max-width: 100%;
    text-align: left;
}

.featured-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.featured-project h3 {
    margin: 0 0 8px;
    font-size: 1.22rem;
    line-height: 1.22;
    letter-spacing: -0.01em;
    color: var(--text);
    font-weight: 600;
}

.featured-project p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.62;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 700;
    transition: 0.2s ease;
}

.featured-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.featured-link:hover {
    color: #ffffff;
}

.featured-link:hover::after {
    transform: translateX(4px);
}

.hero-buttons {
    display: none;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 999px;
    font-size: 0.92rem;
    color: #e7eaf0;
    border: 1px solid rgba(242, 204, 110, 0.16);
    background: rgba(255, 255, 255, 0.03);
    transition: 0.22s ease;
}

.pill:hover {
    color: #ffffff;
    border-color: rgba(242, 204, 110, 0.32);
    box-shadow: 0 0 14px rgba(242, 204, 110, 0.08);
    transform: translateY(-1px);
}

.hero-logo-wrap,
.hero-logo-card {
    display: none;
}

.section {
    padding: 28px 0;
    position: relative;
    z-index: 1;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2,
.status-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.2vw, 2.2rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    font-weight: 650;
    background: linear-gradient(
        135deg,
        #f3f6fa 0%,
        #d8dfe8 24%,
        #bcc5d0 50%,
        #eef2f6 78%,
        #d2d9e1 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 14px rgba(220, 228, 236, 0.04);
}

.section-heading h2::after,
.status-heading h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 2px;
    margin-top: 8px;
    background: linear-gradient(
        90deg,
        rgba(242, 204, 110, 0.75),
        rgba(242, 204, 110, 0.28),
        transparent
    );
    opacity: 0.5;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 860px;
    line-height: 1.7;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.glass-card {
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.022)),
        rgba(14, 17, 26, 0.86);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.glass-card:hover {
    border-color: rgba(242, 204, 110, 0.32);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.28),
        0 0 16px rgba(242, 204, 110, 0.08);
}

.glass-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text);
    font-weight: 600;
}

.glass-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.68;
}

.card-icon {
    margin: 0 0 20px;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    padding: 0;
}

.card-icon-image {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible;
    padding: 0;
}

.card-icon-image::before,
.card-icon-image::after {
    content: none !important;
    display: none !important;
}

.card-icon-image img {
    width: 82px;
    height: 82px;
    display: block;
    object-fit: cover;
    object-position: center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 14px;
    opacity: 0.95;
    filter: brightness(0.9) saturate(0.92) drop-shadow(0 0 8px rgba(242, 204, 110, 0.14));
    transition: filter 0.24s ease, opacity 0.24s ease;
}

.glass-card:hover .card-icon-image img {
    transform: none !important;
    filter: brightness(0.98) saturate(0.98) drop-shadow(0 0 10px rgba(242, 204, 110, 0.18));
    opacity: 1;
}

.card-link,
.card-link:visited,
.card-link:focus,
.card-link:active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 700;
    transition: 0.2s ease;
}

.card-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.card-link:hover {
    color: #ffffff;
}

.card-link:hover::after {
    transform: translateX(4px);
}

.status-panel {
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
        rgba(14, 17, 26, 0.84);
    box-shadow: var(--shadow-soft);
}

.status-heading {
    margin-bottom: 16px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.status-box {
    border-radius: 18px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(242, 204, 110, 0.14);
}

.status-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.status-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--text);
}

.status-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
    font-size: 0.97rem;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card .post-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.post-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--gold);
    border: 1px solid rgba(242, 204, 110, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.post-date {
    font-size: 0.88rem;
    color: var(--muted);
}

.latest-updates-section {
    padding-top: 8px;
}

#projects-latest-meta,
#control-panel-latest-meta,
#homelab-latest-meta {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.62;
}

.site-footer {
    padding: 28px 0 36px;
    border-top: 1px solid rgba(242, 204, 110, 0.10);
    margin-top: 20px;
    background: rgba(9, 11, 17, 0.6);
    backdrop-filter: blur(10px);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a,
.footer-links a:visited {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--gold);
}

@media (max-width: 1100px) {
    .card-grid,
    .status-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .hero-text,
    .featured-project {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .topbar-inner,
    .footer-inner,
    .post-card .post-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-logo {
        height: 42px;
    }

    .top-nav,
    .hero-pills,
    .footer-links {
        width: 100%;
    }

    .top-nav a,
    .pill {
        width: 100%;
        justify-content: center;
    }

    .hero-copy h1 {
        font-size: clamp(1.95rem, 8vw, 2.85rem);
    }

    .section-heading h2,
    .status-heading h2 {
        font-size: clamp(1.45rem, 6vw, 1.9rem);
    }

    .glass-card h3 {
        font-size: 1.2rem;
    }

    .card-icon,
    .card-icon-image img {
        width: 72px;
        height: 72px;
    }

    .glass-card,
    .status-panel {
        padding: 20px;
    }

    .section {
        padding: 22px 0;
    }
}