:root {
    color-scheme: light;
    --bg: #041724;
    --bg-alt: #02101a;
    --card: rgba(10, 28, 42, 0.85);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #f4fbff;
    --muted: rgba(244, 251, 255, 0.75);
    --accent: #3b82f6;
    --accent-strong: #8b5cf6;
    --accent-soft: rgba(59, 130, 246, 0.14);
    --border-radius: 20px;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --hero-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.project-profile__gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.65rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

#project-gallery {
    scroll-margin-top: 80px;
    width: 100%;
}

.project-profile__breadcrumb {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-profile__hero-inner .project-profile__breadcrumb {
    margin-bottom: 0.4rem;
}

.project-profile__hero-inner h1 {
    margin: 0 0 0.35rem;
}

.project-profile__breadcrumb a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 0.1rem;
}

.project-profile__label-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.project-profile__label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, #3b82f6);
    box-shadow: 0 0 10px rgba(114, 255, 200, 0.85);
}

.project-profile__chips span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-profile__summary-lede {
    margin-top: 0.75rem;
    max-width: 520px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.project-profile__stats {
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
}

.site-footer__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(139, 92, 246, 0.35);
}

.project-profile__stats li {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: auto;
    white-space: nowrap;
}

.project-profile__stats p {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.55);
}

.project-profile__stats strong {
    margin: 0;
    font-size: 0.95rem;
}

.project-profile__stats li::after {
    content: '·';
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.35);
}

.project-profile__stats li:last-child::after {
    content: '';
    margin: 0;
}

@media (max-width: 720px) {
    .project-profile__stats li {
        white-space: normal;
    }
}

.project-profile__cta {
    align-self: stretch;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 24px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
}

.project-profile__cta-note {
    flex: 1;
    min-width: 220px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 320px;
}

.project-profile__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.button--glow {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #031224;
    box-shadow: 0 20px 35px rgba(59, 130, 246, 0.35);
}

.section__related {
    margin-top: 4rem;
    padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
    border-radius: 36px;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.12), transparent 50%),
        linear-gradient(135deg, rgba(3, 16, 28, 0.95), rgba(3, 8, 16, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.section__related__title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.15), transparent 50%),
        radial-gradient(circle at 80% -10%, rgba(33, 150, 243, 0.18), transparent 45%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.holiday-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

.holiday-overlay--snow {
    background-image:
        url('data:image/svg+xml,%3Csvg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="10" cy="10" r="2" fill="white" opacity="0.45"/%3E%3Ccircle cx="60" cy="50" r="1.5" fill="white" opacity="0.35"/%3E%3Ccircle cx="90" cy="90" r="1.2" fill="white" opacity="0.3"/%3E%3Ccircle cx="30" cy="70" r="1.7" fill="white" opacity="0.4"/%3E%3C/svg%3E'),
        url('data:image/svg+xml,%3Csvg width="160" height="160" viewBox="0 0 160 160" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="40" cy="20" r="3" fill="white" opacity="0.25"/%3E%3Ccircle cx="20" cy="120" r="2.5" fill="white" opacity="0.25"/%3E%3Ccircle cx="120" cy="80" r="3" fill="white" opacity="0.25"/%3E%3C/svg%3E');
    background-size: 140px 140px, 220px 220px;
    animation: holidaySnow 18s linear infinite;
}

.holiday-overlay--snow::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 60%);
    opacity: 0.2;
    animation: holidaySnowDrift 10s ease-in-out infinite alternate;
}

.holiday-overlay--lights {
    height: 40px;
    top: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="220" height="40" viewBox="0 0 220 40" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="16" cy="20" r="7" fill="%23ff5f5f"/%3E%3Ccircle cx="66" cy="20" r="7" fill="%23ffe066"/%3E%3Ccircle cx="116" cy="20" r="7" fill="%2361dafb"/%3E%3Ccircle cx="166" cy="20" r="7" fill="%2390ee90"/%3E%3C/svg%3E');
    background-repeat: repeat-x;
    animation: holidayLights 4s linear infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.holiday-overlay--lights::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-image: url('data:image/svg+xml,%3Csvg width="220" height="40" viewBox="0 0 220 40" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="16" cy="20" r="7" fill="%23ff5f5f"/%3E%3Ccircle cx="66" cy="20" r="7" fill="%23ffe066"/%3E%3Ccircle cx="116" cy="20" r="7" fill="%2361dafb"/%3E%3Ccircle cx="166" cy="20" r="7" fill="%2390ee90"/%3E%3C/svg%3E');
    background-repeat: repeat-x;
    animation: holidayLights 4s linear infinite reverse;
    transform: rotateX(180deg);
}

@keyframes holidaySnow {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 400px, 0 600px; }
}

@keyframes holidaySnowDrift {
    from { transform: translateY(-3%); }
    to { transform: translateY(3%); }
}

@keyframes holidayLights {
    from { background-position: 0 0; }
    to { background-position: 200px 0; }
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
button:hover {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.project-profile__hero-thumb:hover,
.project-profile__hero-thumb:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.65), 0 0 30px rgba(139, 92, 246, 0.45);
}

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    backdrop-filter: blur(24px);
    background: linear-gradient(100deg, rgba(2, 16, 26, 0.95), rgba(6, 30, 44, 0.92));
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
    z-index: 10;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem clamp(1.5rem, 4vw, 4rem);
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo__signature {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 8px 28px rgba(139, 92, 246, 0.35));
}

.site-nav__list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__link {
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: color var(--transition), background var(--transition);
    color: var(--muted);
}

.site-nav__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.site-nav__toggle {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #01141f;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.38);
}

.button--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: rgba(255, 255, 255, 0.85);
}

.button--ghost:hover {
    border-color: rgba(59, 130, 246, 0.7);
    color: #fff;
}

.button--outline {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 4rem);
    width: 100%;
}

.section {
    margin-bottom: clamp(5rem, 10vw, 9rem);
    scroll-margin-top: 160px;
}

.section__intro {
    max-width: 640px;
    margin-bottom: 2.75rem;
}

.section__intro--wide {
    max-width: 900px;
}

.blog .section__intro {
    margin-bottom: 1.5rem;
}

.blog-filter {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 1.75rem;
}

.blog-filter label {
    font-size: 0.85rem;
    color: var(--muted);
}

.blog-filter select,
.blog-filter input[type="search"] {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(5, 18, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text);
    font-size: 0.9rem;
}

.blog-filter input[type="search"] {
    min-width: 180px;
}

.blog-detail {
    max-width: 860px;
    margin: 0 auto;
}

.blog-detail__header {
    margin-bottom: 2.5rem;
    padding: 2rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 55%), rgba(5, 18, 28, 0.9);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.blog-detail__header h1 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    line-height: 1.15;
    margin: 0.5rem 0 0;
}

.blog-detail__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

.blog-detail__meta::before {
    content: '';
    display: inline-flex;
    width: 36px;
    height: 2px;
    background: var(--accent);
    opacity: 0.8;
}

.blog-detail__author {
    margin-top: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.blog-detail__body {
    line-height: 1.75;
    font-size: 1.05rem;
}

.blog-detail__body table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 1.75rem 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    font-size: 0.95rem;
}

.blog-detail__body table th,
.blog-detail__body table td {
    padding: 0.85rem 1rem;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-align: left;
    vertical-align: top;
    color: rgba(244, 251, 255, 0.9);
}

.blog-detail__body table th:last-child,
.blog-detail__body table td:last-child {
    border-right: 0 !important;
}

.blog-detail__body table tr:last-child td {
    border-bottom: 0 !important;
}

.blog-detail__body table thead th,
.blog-detail__body table thead td {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(244, 251, 255, 0.88);
    background: rgba(0, 0, 0, 0.35) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.blog-detail__body table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02) !important;
}

.blog-detail__body table tbody tr:hover {
    background: rgba(139, 92, 246, 0.06) !important;
}

.blog-detail__body table caption {
    caption-side: bottom;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 720px) {
    .blog-detail__body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .blog-detail__body table th,
    .blog-detail__body table td {
        padding: 0.75rem 0.85rem;
    }
}

.blog-detail__media {
    float: right;
    width: min(360px, 42%);
    margin: 0 0 1.5rem 1.5rem;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(139, 92, 246, 0.15);
}

.blog-detail__media img {
    display: block;
    width: 100%;
}

.blog-detail__body::after {
    content: '';
    display: block;
    clear: both;
}

.blog-detail__more {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2.5rem;
}

.blog-detail__more-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.blog-detail__more-head h2 {
    margin: 0.25rem 0 0;
}

.blog-pagination {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.blog-pagination__summary {
    font-size: 0.9rem;
    color: var(--muted);
}

.blog-pagination__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.blog-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.blog-pagination__link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.blog-pagination__link.is-active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: #fff;
}

.blog-pagination__link--nav {
    font-weight: 600;
}

.blog-pagination__link--disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.blog-pagination__gap {
    padding: 0 0.2rem;
    color: rgba(255, 255, 255, 0.6);
}

.blog-detail__back {
    margin-top: 1.5rem;
    text-align: center;
}

.blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin: 1rem 0;
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-button--primary {
    background: var(--accent);
    color: #04131f;
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.35);
}

.blog-button--ghost {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: transparent;
}

.blog-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}
.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.lead {
    color: var(--muted);
    font-size: 1.1rem;
}

.hero {
    background: radial-gradient(circle at 24% 10%, rgba(59, 130, 246, 0.16), transparent 55%),
        linear-gradient(120deg, rgba(4, 20, 38, 0.96), rgba(5, 30, 46, 0.94));
    border-radius: 30px;
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.4);
    margin-bottom: clamp(2.25rem, 5.5vw, 4rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.26), transparent 46%),
        radial-gradient(circle at 82% 28%, rgba(16, 163, 224, 0.24), transparent 48%),
        radial-gradient(circle at 70% 85%, rgba(139, 92, 246, 0.16), transparent 52%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 42px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 42px);
    opacity: 0.8;
    mask-image: radial-gradient(circle at 35% 25%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.1) 78%, rgba(0, 0, 0, 0) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.22));
    opacity: 1;
}

.hero__header,
.hero__body {
    position: relative;
    z-index: 1;
}

.hero__header {
    max-width: 880px;
    margin-bottom: 2.75rem;
}

.hero__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.6rem, 3vw, 2.4rem);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__body {
        grid-template-columns: minmax(0, 3fr) minmax(0, 1.8fr);
    }
}

.hero__header h1 {
    font-size: clamp(2rem, 2.8vw, 2.7rem);
    line-height: 1.12;
    margin-bottom: 0.75rem;
}

.hero__headline-accent {
    background: linear-gradient(90deg, rgba(59, 130, 246, 1), rgba(139, 92, 246, 0.85));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 34px rgba(59, 130, 246, 0.18);
}

.hero__content .lead {
    margin-top: 0.25rem;
}

.hero__blog {
    margin-top: 1.6rem;
    padding: 1.2rem 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(160deg, rgba(5, 23, 38, 0.82), rgba(5, 30, 46, 0.78));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 0.6rem;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition), background var(--transition);
}

.hero__blog-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.hero__blog-body {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    justify-content: space-between;
}

.hero__blog-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.hero__blog-date {
    color: rgba(244, 251, 255, 0.7);
    font-size: 0.9rem;
}

.hero__blog-title {
    font-size: 1.12rem;
    margin: 0;
}

.hero__blog-title a {
    color: #f4fbff;
    text-decoration: none;
    transition: color var(--transition);
}

.hero__blog-title a:hover {
    color: var(--accent);
}

.hero__blog-excerpt {
    margin: 0;
    color: var(--muted);
}

.hero__blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.hero__blog-link::after {
    content: '↗';
    font-size: 0.9em;
    opacity: 0.85;
}

.hero__blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.hero__blog-thumb {
    flex: 0 0 110px;
    height: 72px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__blog-thumb-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

@media (max-width: 540px) {
    .hero__blog-footer {
        align-items: flex-start;
    }

    .hero__blog-thumb {
        flex: 0 0 70px;
        height: 52px;
    }

    .hero__blog-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .hero__blog-thumb-wrap {
        width: 100%;
    }
}

.hero__blog:hover {
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 36px rgba(59, 130, 246, 0.25);
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(160deg, rgba(5, 26, 42, 0.9), rgba(5, 34, 52, 0.86));
    transform: translateY(-1px);
}

.hero__blog:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.6);
    outline-offset: 4px;
}

.hero__eyebrow {
    color: var(--accent-strong);
    letter-spacing: 0.3em;
    font-size: 0.8rem;
}

.hero__stats {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 1.1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 16, 26, 0.28);
    overflow: hidden;
}

.hero__stats li {
    padding: 0.75rem 1.05rem;
    border: none;
    box-shadow: none;
    background: transparent;
}

.hero__stats li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

@media (max-width: 520px) {
    .hero__stats {
        grid-template-columns: 1fr;
    }

    .hero__stats li + li {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }
}

.hero__stats li strong {
    font-weight: 400;
    font-size: 0.95rem;
}

.hero__stat-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.hero__media {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero__media {
        margin-right: clamp(-0.6rem, -1.4vw, -1rem);
        margin-top: -0.65rem;
        align-self: center;
    }
}

.hero__media-card {
    position: relative;
    border-radius: 1.6rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(59, 130, 246, 0.18);
    background: linear-gradient(160deg, rgba(5, 20, 36, 0.92), rgba(5, 32, 48, 0.88));
    max-width: 360px;
    padding: 0.65rem;
}

@media (min-width: 1024px) {
    .hero__media-card {
        max-width: 380px;
        transform: translateX(6px);
    }
}

.hero__media-card::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 1.9rem;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.25), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.18), transparent 60%);
    filter: blur(16px);
    opacity: 0.85;
    z-index: -1;
}

.hero__photo {
    display: block;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1024px) {
    .hero__photo {
        aspect-ratio: 4 / 5;
        object-fit: cover;
        object-position: center top;
    }
}

.hero__quote {
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.55rem 0.9rem;
    background: linear-gradient(135deg, rgba(3, 18, 28, 0.96), rgba(1, 10, 18, 0.96));
    color: #fff;
    border-radius: 0.75rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.hero__quote p {
    margin: 0;
}

.hero__quote-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.hero__quote-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card,
.card.card--link {
    padding: 1.6rem;
    border-radius: 22px;
    background: radial-gradient(circle at 18% 20%, rgba(59, 130, 246, 0.08), transparent 50%),
        radial-gradient(circle at 80% 12%, rgba(139, 92, 246, 0.06), transparent 55%),
        rgba(4, 21, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
    color: #f4fbff;
    min-height: 220px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover,
.card.card--link:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.42), 0 0 26px rgba(59, 130, 246, 0.25);
}

.card--link .card__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    opacity: 0.85;
}

.card--link .card__hint::after {
    content: '↗';
    font-size: 0.85em;
    opacity: 0.9;
}

.card--link:hover .card__hint {
    opacity: 1;
}

.card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.25));
    color: #02101a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
    box-shadow:
        0 12px 22px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(59, 130, 246, 0.25);
}

.about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about__media {
    border-radius: calc(var(--border-radius) + 8px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        radial-gradient(circle at 18% 18%, rgba(139, 92, 246, 0.18), transparent 52%),
        radial-gradient(circle at 82% 28%, rgba(16, 163, 224, 0.16), transparent 54%),
        radial-gradient(circle at 70% 86%, rgba(124, 93, 255, 0.08), transparent 58%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 44px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 44px),
        linear-gradient(135deg, rgba(6, 10, 16, 0.94), rgba(6, 8, 12, 0.88));
    min-height: 520px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
    background-blend-mode: screen, screen, screen, normal, normal, normal;
}

@media (min-width: 960px) {
    .about__media {
        min-height: 620px;
    }
}

@media (min-width: 1024px) {
    .about__media {
        margin-left: -1.25rem;
    }
}

.about__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/kevin-champlin-ai-consultant-illinois.png') center/cover no-repeat;
    filter: blur(22px);
    transform: scale(1.1);
    opacity: 0.28;
    z-index: 0;
    mask-image: radial-gradient(circle at 55% 45%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.82) 60%, rgba(0, 0, 0, 0.35) 80%, rgba(0, 0, 0, 0) 100%);
}

.about__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/kevin-champlin-ai-consultant-illinois.png') center/contain no-repeat;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
    mask-image: radial-gradient(circle at 60% 45%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.92) 58%, rgba(0, 0, 0, 0.65) 78%, rgba(0, 0, 0, 0) 100%);
}

.about__list {
    list-style: none;
    padding: 0;
    margin: 1.3rem 0 0;
    display: grid;
    gap: 0.35rem;
}

.about__list li {
    position: relative;
    font-size: 0.95rem;
    padding-left: 1.1rem;
}

.about__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #10a3e0;
    box-shadow: 0 0 0 1px rgba(3, 16, 28, 0.9);
}

.about__list-label {
    display: block;
    font-weight: 600;
}

.about__list-text {
    display: block;
    color: var(--muted);
}

.about__content {
    max-width: 640px;
}

.about__content h2 {
    margin: 0 0 0.6rem;
}

.about__content > p {
    margin-top: 0.4rem;
}

.highlights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    padding: 1.4rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    background: linear-gradient(135deg, rgba(124, 93, 255, 0.16), rgba(6, 8, 12, 0.9));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.highlight-card__icon {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
}

.highlight-card h3 {
    margin: 0 0 0.4rem;
}

.highlight-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: calc(1.5em * 3);
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
    border-color: rgba(139, 92, 246, 0.5);
}

.projects-hero {
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(4, 23, 36, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.projects-hero__actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.projects-filter {
    margin-bottom: 2rem;
    padding: 0;
}

.page-portfolio-embed .projects-filter {
    display: none;
}

.projects-filter ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.projects-filter a {
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    font-size: 0.85rem;
    transition: background var(--transition), border-color var(--transition);
}

.projects-filter a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.projects-section {
    margin-bottom: 3rem;
    scroll-margin-top: 140px;
}

.projects-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.projects-section__count {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}


.project-card {
border-radius: 28px;
border: 1px solid rgba(255, 255, 255, 0.08);
background: linear-gradient(180deg, rgba(5, 19, 28, 0.95), rgba(5, 10, 18, 0.9));
display: flex;
flex-direction: column;
overflow: hidden;
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
transform: translateY(-4px);
box-shadow: 0 35px 70px rgba(0, 0, 0, 0.55);
}

.project-card:hover .project-card__hero img {
transform: scale(1.05);
filter: saturate(1.05);
}

.project-card:hover .project-card__hero-overlay {
background: linear-gradient(180deg, rgba(2, 16, 26, 0.15), rgba(2, 16, 26, 0.95));
}

.project-card__hero {
position: relative;
height: 280px;
overflow: hidden;
}

.project-card__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 50%);
    opacity: 0.25;
    pointer-events: none;
}

.project-card__hero--blank {
    background: linear-gradient(135deg, rgba(0, 110, 178, 0.25), rgba(0, 30, 50, 0.8));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card__hero--blank::after {
    opacity: 0.35;
}

.project-card__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    filter: saturate(0.85);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.project-card__hero-overlay {
    position: absolute;
    inset: 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(2, 16, 26, 0), rgba(2, 16, 26, 0.9));
}

.project-card__hero-overlay h2 {
    margin: 0;
    font-size: 1.4rem;
}


.page-portfolio-embed .site-header,
.page-portfolio-embed .site-footer {
    display: none;
}

.page-portfolio-embed {
    background: transparent;
}

.page-portfolio-embed .site-main {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.page-portfolio .project-card {
    cursor: pointer;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.page-portfolio .portfolio-browser-frame {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(circle at top left, rgba(141, 255, 233, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(123, 160, 255, 0.22), transparent 60%),
        rgba(3, 12, 20, 0.98);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.page-portfolio .portfolio-browser-frame__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.9rem;
    background: linear-gradient(180deg, rgba(10, 24, 38, 0.98), rgba(3, 12, 20, 0.98));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-portfolio .portfolio-browser-frame__dots {
    display: flex;
    gap: 0.35rem;
}

.page-portfolio .portfolio-browser-frame__dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.page-portfolio .portfolio-browser-frame__dots span:nth-child(1) {
    background: #ff5f57;
}

.page-portfolio .portfolio-browser-frame__dots span:nth-child(2) {
    background: #febc2e;
}

.page-portfolio .portfolio-browser-frame__dots span:nth-child(3) {
    background: #28c840;
}

.page-portfolio .portfolio-browser-frame__address {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(5, 18, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-portfolio .portfolio-browser-frame__viewport {
    background: #050c14;
    max-height: 230px;
    overflow: hidden;
}

.page-portfolio .portfolio-browser-frame__viewport img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: top;
}

.page-portfolio .project-card__hero-overlay {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.9rem 1.1rem;
    background: linear-gradient(180deg, rgba(2, 16, 26, 0), rgba(2, 16, 26, 0.96));
}

.project-card__title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.85rem;
    background: rgba(2, 16, 26, 0.75);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.project-card__title::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, #3b82f6);
    box-shadow: 0 0 10px rgba(114, 255, 200, 0.8);
}

.project-card__body {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card__status {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    color: var(--accent);
}

.project-card__summary {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.project-card__tags {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-card__tags span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

/* Softer pill styling when tags appear inside the project snapshot sidebar. */
.project-profile__tech-tags span {
    text-transform: none;
    letter-spacing: 0.03em;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.16rem 0.65rem;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.02);
}

.project-profile__meta-list dd .project-profile__tech-tags {
    margin-top: 1rem;
}

.project-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0 1.5rem 1.25rem;
}

.project-card__chip {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.page-projects .project-card__hero-overlay {
    padding: 1.1rem 1.4rem 1.5rem;
}

.page-projects .project-card__title {
    font-size: 1rem;
    letter-spacing: 0.12em;
}

.page-projects .project-card__body {
    padding: 0.9rem 1.5rem 0.6rem;
}

.page-projects .project-card__status {
    font-size: 0.65rem;
    letter-spacing: 0.24em;
}

.page-projects .project-card__actions {
    padding: 0 1.5rem 0.9rem;
    gap: 0.4rem;
}

.page-projects .project-card__chip {
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
}

.project-gallery {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-gallery__item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.project-gallery__item img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.project-profile__hero-thumb::after {
    content: 'View screenshot';
    position: absolute;
    left: 50%;
    bottom: 0.45rem;
    transform: translateX(-50%);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(2, 10, 18, 0.88);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.project-profile__hero-thumb:hover::after,
.project-profile__hero-thumb:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.project-gallery__actions {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.65));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.75rem;
    gap: 0.4rem;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-gallery__actions input {
    accent-color: var(--accent);
}

.upload-field {
    margin-top: 0.85rem;
}

.upload-field input[type="file"] {
    width: 100%;
    padding: 0.65rem;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
}

.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.blog-card__media {
    width: 100%;
    padding-top: 48%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(9, 33, 48, 0.85));
    background-size: cover;
    background-position: center;
}

.blog-card__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    padding: 1rem;
}

.blog-card__placeholder-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.blog-card__placeholder-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1.1rem;
}

.blog-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.blog-card__meta {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.blog-card__title {
    font-size: 1.4rem;
    margin: 0;
    color: #fdfcff;
}

.blog-card__excerpt {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: calc(1.6em * 3);
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-card__cta {
    align-self: flex-start;
    margin-top: auto;
    padding-inline: 1.25rem;
    font-size: 0.95rem;
}

.cards-grid.blog__grid .blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
    border-color: rgba(139, 92, 246, 0.4);
}

.blog__cta {
    margin-top: 2rem;
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.25rem;
    align-items: start;
}

.contact__info {
    padding: 1.75rem;
    border-radius: 32px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: linear-gradient(145deg, rgba(2, 16, 26, 0.9), rgba(6, 30, 44, 0.85));
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.4);
}

.contact__highlights {
    list-style: none;
    padding: 0;
    margin: 1.35rem 0 1.75rem;
    display: grid;
    gap: 0.85rem;
}

.contact__highlights li {
    padding: 0.9rem 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.contact__highlights span {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    color: var(--muted);
}

.contact__highlights li:hover {
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.contact__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1.35rem;
    padding-top: 1.35rem;
}

.contact__meta-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.contact-form {
    border-radius: 32px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: linear-gradient(145deg, rgba(3, 18, 30, 0.96), rgba(2, 9, 18, 0.98));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
    padding: 2.25rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

@media (min-width: 800px) {
	.contact-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(6, 8, 12, 0.6);
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.7), 0 0 25px rgba(139, 92, 246, 0.25);
	background: rgba(3, 18, 28, 0.98);
}

.contact-form__actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form__actions .button {
	min-width: 190px;
	padding-inline: 1.9rem;
}

.contact-form__actions .form-status {
    margin: 0;
    color: var(--muted);
}

/* Hey source snooper: yes, gradients on gradients. You're welcome. */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    background: linear-gradient(135deg, rgba(1, 8, 14, 0.95), rgba(4, 22, 36, 0.95));
    padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
    color: var(--text);
    overflow: hidden;
}

.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 10%, rgba(139, 92, 246, 0.2), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(46, 204, 113, 0.12), transparent 60%);
    pointer-events: none;
}

.site-footer > * {
    position: relative;
}

/* If you're reading this to copy layout ideas, at least buy me coffee. */
.site-footer__cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 28px;
    padding: clamp(1rem, 2.3vw, 1.8rem);
    background: linear-gradient(135deg, rgba(6, 28, 42, 0.9), rgba(2, 9, 15, 0.95));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-footer__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.18), transparent 45%),
        radial-gradient(circle at 90% 0%, rgba(140, 255, 251, 0.12), transparent 50%);
    pointer-events: none;
}

.site-footer__cta > * {
    position: relative;
}

.site-footer__cta-copy {
    max-width: 720px;
}

.site-footer__cta-copy h2 {
    margin: 0.1rem 0 0.6rem;
}

.site-footer__cta-copy .lead {
    margin-top: 0.4rem;
}

.site-footer__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    align-items: center;
}

.site-footer__email {
    font-size: 1.1rem;
    font-weight: 600;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.site-footer__grid--info {
    grid-template-columns: 1.1fr 1fr 1.1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
    margin-top: 0.25rem;
}

@media (max-width: 860px) {
    .site-footer__grid--info {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Premium borderless columns for the info row — no boxes, no voids. */
.site-footer__grid--info .footer-card {
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
}

.site-footer__grid--info .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.42);
    margin: 0 0 1rem;
}

.site-footer__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.25rem 0 2rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__metric-label {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.05rem;
}

.site-footer__metric-value {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.footer-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 16, 26, 0.55);
    padding: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.site-footer__metrics-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.site-footer__metrics-list span {
    font-weight: 600;
    margin-right: 0.35rem;
    color: var(--text);
}

.site-footer__list,
.site-footer__social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.site-footer__list a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.site-footer__list a:hover {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.footer-article {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.footer-article__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.footer-article__thumb {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-article__text strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
    line-height: 1.3;
    max-height: calc(1.3em * 2);
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.footer-article__text span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.site-footer__social a {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.site-footer__social a:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-1px);
}

.social-chip {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
}

.social-chip--github span { color: #9be4ff; }
.social-chip--linkedin span { color: #0A66C2; }
.social-chip--twitter span { color: #1DA1F2; }

.site-footer__sub-eyebrow {
    margin-top: 1.75rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.75rem;
    font-size: 0.85rem;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    min-width: 0;
}

.site-footer__bottom-right {
    min-width: 0;
}

.muted {
    color: var(--muted);
}

.project-profile {
    margin-bottom: 2.5rem;
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 16, 26, 0.8);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.site-footer__experience {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 1px;
    transition: color var(--transition), border-color var(--transition);
}

.site-footer__experience:hover {
    color: var(--text);
    border-bottom-color: rgba(139, 92, 246, 0.5);
}

.site-footer__experience-hint {
    margin-left: 0.35rem;
    font-size: 0.85rem;
    color: rgba(139, 92, 246, 0.85);
}

.site-footer__experience[data-tooltip] {
    position: relative;
}

.site-footer__experience[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 0;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.project-profile__hero-shell {
    position: relative;
    z-index: 1;
}

.project-profile__hero-top {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 900px) {
    .project-profile__hero-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.project-profile__preview {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.45);
    height: 100%;
}

.project-profile__hero-media {
    position: relative;
    border: none;
    padding: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.project-profile__hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-profile__hero-indicator {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    background: rgba(2, 10, 18, 0.85);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9df3ff;
    border: 1px solid rgba(157, 243, 255, 0.4);
}

.project-profile__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.85);
}

.project-profile__gallery-grid button {
    border: none;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    border-radius: 18px;
    overflow: hidden;
}

.project-profile__gallery {
    margin: 3rem 0;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.07), transparent 50%), rgba(5, 18, 28, 0.85);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.project-profile__gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.project-profile__gallery-rail {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

.project-profile__gallery-rail::-webkit-scrollbar {
    height: 6px;
}

.project-profile__gallery-rail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.project-profile__gallery--single .project-profile__gallery-rail {
    justify-content: center;
}

.project-profile__gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    justify-items: center;
}

.project-profile__gallery--single .project-profile__gallery-grid {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.project-gallery-card {
    border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(4, 20, 32, 0.95), rgba(2, 10, 18, 0.85));
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    cursor: zoom-in;
    transition: transform var(--transition), box-shadow var(--transition);
    width: 340px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
}

.project-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.project-gallery-card__frame {
    position: relative;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.2));
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 15px 25px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.project-gallery-card__frame::before {
    content: '';
    position: absolute;
    top: 0.45rem;
    left: 50%;
    width: 70px;
    height: 0.18rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(-50%);
}

.project-gallery-card__frame::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    width: 60px;
    height: 0.28rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    transform: translateX(-50%);
}

.project-gallery-card__frame img {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    object-fit: cover;
    object-position: top;
    background: #05090f;
    display: block;
}

.project-gallery-card__label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    width: 100%;
}

.page-404__hero,
.page-404__lab,
.page-404__cta {
    margin: clamp(2rem, 5vw, 4rem) auto;
    max-width: 960px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 10, 18, 0.9);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.page-404__hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.page-404__hero .lead {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.75);
}

.page-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-404__lab {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(1rem, 3vw, 1.75rem);
    align-items: start;
}

.page-404__console {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at top, rgba(12, 42, 68, 0.8), rgba(5, 16, 24, 0.95));
    font-family: "JetBrains Mono", "Fira Code", monospace;
    color: #a6f7ff;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.page-404__console header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.page-404__console pre {
    margin: 0;
    padding: 1.25rem;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.5;
}

.page-404__cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-404__cards article {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
}

.page-404__cards ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

.page-404__cards a {
    color: #8be8ff;
}

.page-404__cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.page-404__cta p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0.5rem 0 0;
}

@media (max-width: 900px) {
    .page-404__lab {
        grid-template-columns: 1fr;
    }

    .page-404__cta {
        flex-direction: column;
        text-align: center;
    }
}

.project-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 12, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2000;
}

.project-lightbox[hidden] {
display: none;
}

.page-portfolio-embed .project-lightbox {
 background: rgba(2, 6, 12, 0.16);
 backdrop-filter: blur(8px);
 align-items: center;
 justify-content: center;
 padding: 1.5rem 0 1.5rem;
}

.page-portfolio-embed .project-lightbox__browser::before {
display: none;
}

.page-portfolio-embed .project-lightbox__dialog {
max-width: min(960px, 100%);
width: auto;
}

.project-lightbox__dialog {
max-width: min(1200px, 95vw);
width: 100%;
max-height: 90vh;
}

.project-lightbox__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.project-lightbox__close {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
}

.project-lightbox__browser {
    background: rgba(3, 12, 20, 0.95);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 45px 90px rgba(0, 0, 0, 0.55), 0 0 35px rgba(112, 255, 196, 0.25);
    overflow: hidden;
}

.project-lightbox__browser::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 20%, rgba(141, 255, 233, 0.25), transparent 70%), radial-gradient(circle at 80% 0%, rgba(123, 160, 255, 0.2), transparent 60%);
    z-index: -1;
    filter: blur(18px);
}

.project-lightbox__browser-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.project-lightbox__controls {
    display: flex;
    gap: 0.35rem;
}

.project-lightbox__controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot--close { background: #ff5f57; }
.dot--min { background: #febc2e; }
.dot--max { background: #28c840; }

.project-lightbox__address {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.project-lightbox__address strong {
    font-weight: 600;
}

.project-lightbox__address span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.project-lightbox__menu {
    position: relative;
}

.project-lightbox__menu-button {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.project-lightbox__menu-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: rgba(2, 12, 20, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    padding: 0.4rem;
    min-width: 220px;
}

.project-lightbox__menu-dropdown button {
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    text-align: left;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
}

.project-lightbox__menu-dropdown button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.project-lightbox__viewport {
    max-height: 70vh;
    overflow-y: auto;
    background: #050c14;
}

.page-portfolio-embed .project-lightbox__viewport {
    max-height: 400px;
}

.project-lightbox__viewport img {
    width: 100%;
    display: block;
}

.project-lightbox__nav {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem 1rem;
    gap: 1rem;
}

.project-lightbox__nav-button {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    background: rgba(2, 12, 20, 0.85);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

body.is-lightbox-open {
    overflow: hidden;
}

.project-lightbox__about {
    margin-top: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-lightbox__about button {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
}

.project-lightbox__about.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-profile__hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
}

.project-profile__hero-inner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.6rem, 1.5vw, 1.25rem);
    padding: clamp(1.1rem, 2.6vw, 1.8rem);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(5, 12, 20, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.project-profile__hero-layout {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.project-profile__hero-main {
    flex: 1;
}

.project-profile__hero-thumb {
    border: none;
    padding: 0;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.25), rgba(1, 8, 14, 0.95));
    border-radius: 14px;
    overflow: hidden;
    width: 184px;
    height: 112px;
    cursor: zoom-in;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 22px rgba(139, 92, 246, 0.35);
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.project-profile__hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 720px) {
    .project-profile__hero-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-profile__hero-thumb {
        margin-left: 0;
        margin-top: 0.75rem;
    }
}

@media (max-width: 900px) {
    .project-profile__hero-inner {
        grid-template-columns: 1fr;
    }
}

.project-profile__avatar-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.project-profile__avatar {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 32px;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.5);
    padding: 6px;
    margin: 0;
    background: rgba(2, 12, 22, 0.65);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.35);
}

.project-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.project-profile__title h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.project-profile__chips {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-profile__chips span {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.project-profile__cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
}

.project-profile__cta-buttons {
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .project-profile__hero-shell {
        grid-template-columns: 1fr;
        padding-bottom: 4rem;
    }

    .project-profile__hero-inner {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .project-profile__cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.project-profile__badges {
    padding: 0 3rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-profile__badges span {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.project-profile__content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.project-profile__summary {
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 23, 36, 0.8);
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.project-profile__highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.project-profile__highlights div {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.25rem;
}

.project-profile__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-profile__card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 23, 36, 0.85);
    padding: 1.75rem;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.4);
}

.project-profile__card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.project-profile__card ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
}

.project-profile__card ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-profile__meta-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.project-profile__meta-list div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.5rem;
    align-items: center;
}

.project-profile__meta-list dt {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.project-profile__meta-list dd {
    margin: 0;
    font-weight: 600;
}

.project-profile__gallery-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.project-profile__gallery-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-profile__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.project-profile__details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.project-profile__details li {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.project-profile__back {
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .project-profile__header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .project-profile__cta {
        justify-content: center;
    }

    .project-profile__badges {
        padding-inline: 1.5rem;
        justify-content: center;
    }

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

body.admin-shell {
background: var(--bg);
min-height: 100vh;
}

.admin-shell--auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.auth-card {
    width: min(420px, 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 16, 26, 0.85);
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.flash {
    border-radius: 16px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.flash--error {
    background: rgba(231, 76, 60, 0.2);
    color: #ff9f9f;
    border: 1px solid rgba(231, 76, 60, 0.4);
}

.admin-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-alt);
}

.admin-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    font-weight: 600;
    letter-spacing: 0.08em;
}

.admin-nav {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.admin-nav__link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--muted);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.admin-nav__link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}

.admin-nav__link--active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-user span {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.45);
}

.admin-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    display: grid;
    gap: 1.5rem;
}

.admin-card {
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    background: var(--card);
    padding: 1.75rem;
}

.admin-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.admin-card--stat {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.2), rgba(3, 12, 22, 0.95));
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.admin-card--stat::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.admin-card--stat h2 {
    margin-top: 0;
}

.admin-card--stat dl {
    margin: 0.5rem 0 1rem;
}

.admin-card--stat dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.7);
}

.admin-card--stat dd {
    margin: 0 0 0.35rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.admin-card--stat-posts {
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.25), rgba(3, 12, 22, 0.96));
}

.admin-card--stat-projects {
    background: radial-gradient(circle at top left, rgba(124, 93, 255, 0.25), rgba(3, 8, 18, 0.96));
}

.admin-card--stat-messages {
    background: radial-gradient(circle at top left, rgba(33, 150, 243, 0.25), rgba(2, 10, 22, 0.96));
}


.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.admin-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    background: linear-gradient(180deg, rgba(6, 23, 35, 0.95), rgba(5, 12, 18, 0.9));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.admin-form .form-field--full {
    grid-column: 1 / -1;
}

.admin-form .form-field > p.muted {
    margin: 0;
}

.admin-form textarea {
    min-height: 160px;
}

.chip-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem 0.75rem;
    margin-top: 0.35rem;
}

.chip-input {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.08), rgba(3, 15, 26, 0.95));
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.chip-input input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
}

.chip-input span {
    white-space: nowrap;
}

.chip-group--bulk {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.admin-bulk-tech-panel {
    margin: 0.35rem 0 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.14), rgba(3, 12, 22, 0.96));
}

.admin-bulk-tech-panel__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.25rem;
}

.admin-bulk-tech-label {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(7, 24, 35, 0.9);
    color: #fdfcff;
    font: inherit;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.admin-form select {
    appearance: none;
}

.admin-form label {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.admin-form button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 0.95rem 2.75rem;
    margin-top: 0.5rem;
}

.admin-bulk-form {
    margin-bottom: 0;
}

.admin-bulk-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.admin-bulk-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.admin-bulk-field label {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.admin-bulk-field input,
.admin-bulk-field select {
    min-width: 160px;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(4, 20, 32, 0.9);
    color: #fdfcff;
    font: inherit;
}

.admin-bulk-field button.button {
    margin-top: 0.15rem;
    padding-inline: 1.6rem;
}

.admin-bulk-field--actions {
    margin-left: auto;
}

@media (max-width: 720px) {
    .admin-bulk-field input,
    .admin-bulk-field select {
        min-width: 0;
        width: 100%;
    }

    .admin-bulk-field--actions {
        margin-left: 0;
        width: 100%;
    }
}

.admin-form__actions {
    grid-column: 1 / -1;
    position: sticky;
    bottom: 1.25rem;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    background: linear-gradient(180deg, rgba(6, 23, 35, 0.2), rgba(6, 23, 35, 0.98));
}

.excerpt-counter {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

.excerpt-counter--over {
    color: #ffb3b3;
}

.admin-ai-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.admin-ai-hint {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

.admin-image-preview {
    margin-top: 0.75rem;
}

.admin-image-preview__thumb {
    max-width: 360px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 15, 0.9);
}

.admin-image-preview__thumb img {
    display: block;
}

.admin-image-preview__hint {
margin-top: 0.35rem;
font-size: 0.8rem;
}

.admin-actions {
display: flex;
gap: 0.5rem;
}

.admin-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.5rem;
}

.cards-grid {
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.5rem;
}

.gie-promo {
background: radial-gradient(circle at top right, rgba(91,224,133,0.14), transparent 45%), rgba(5,18,32,0.95);
border-radius: 32px;
border: 1px solid rgba(91,224,133,0.2);
padding: clamp(2rem, 4vw, 3rem);
box-shadow: 0 25px 60px rgba(0,0,0,0.4);
margin-bottom: clamp(3rem, 8vw, 5.5rem);
}

.gie-promo__inner {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: clamp(1.5rem, 4vw, 3rem);
align-items: center;
}

.gie-promo__copy h2 {
margin-top: 0.35rem;
margin-bottom: 0.85rem;
}

.gie-promo__bullets {
list-style: none;
margin: 1rem 0 1.5rem;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.4rem;
color: var(--muted);
}

.gie-promo__actions {
display: flex;
flex-wrap: wrap;
gap: 0.9rem;
}

.gie-promo__actions .button {
min-width: 220px;
}

.gie-promo__card {
background: rgba(3,10,18,0.9);
border-radius: 24px;
border: 1px solid rgba(255,255,255,0.08);
padding: 1.25rem;
box-shadow: inset 0 0 30px rgba(0,0,0,0.35);
}

.gie-promo__media {
border-radius: 18px;
overflow: hidden;
border: 1px solid rgba(255,255,255,0.08);
position: relative;
}

.gie-promo__media img {
display: block;
width: 100%;
height: auto;
}

.gie-promo__label {
position: absolute;
bottom: 0.75rem;
left: 0.75rem;
padding: 0.35rem 0.8rem;
border-radius: 999px;
background: rgba(1,15,23,0.8);
border: 1px solid rgba(255,255,255,0.1);
font-size: 0.75rem;
letter-spacing: 0.1em;
text-transform: uppercase;
}

.gie-promo__stat {
margin-top: 1rem;
padding: 0.8rem 1rem;
border-radius: 18px;
background: rgba(9,24,38,0.85);
border: 1px solid rgba(255,255,255,0.06);
}

.gie-promo__stat span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.6);
}

.gie-promo__stat strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.25rem;
}


.badge {
display: inline-flex;
align-items: center;
padding: 0.2rem 0.6rem;
border-radius: 999px;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.18em;
}

.badge--ok {
    background: rgba(139, 92, 246, 0.15);
    color: #8fffb6;
    border: 1px solid rgba(139, 92, 246, 0.7);
}

.badge--warn {
    background: rgba(231, 76, 60, 0.15);
    color: #ffb3b3;
    border: 1px solid rgba(231, 76, 60, 0.7);
}

.admin-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 1.5rem;
    color: var(--muted);
}

/* Nerd page styling */
.nerd-hero {
    text-align: center;
}

.nerd-hero__actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.nerd-showcase__copy {
    display: grid;
    gap: 1rem;
}

.nerd-resume {
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(140deg, rgba(5, 15, 25, 0.92), rgba(3, 8, 16, 0.96));
    padding: clamp(2rem, 5vw, 3.25rem);
    display: grid;
    gap: 2rem;
}

/* Yes, there really is a timeline section. No, you may not steal the copy verbatim. */

.nerd-resume__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.nerd-resume__panel {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 18, 28, 0.75);
    padding: 1.5rem;
}

.nerd-resume__panel ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.85);
}

.nerd-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: center;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(1.5rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(4, 15, 24, 0.9), rgba(6, 20, 34, 0.85));
}

.nerd-showcase__photo {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.nerd-showcase__photo img {
    width: 100%;
    display: block;
}

.nerd-showcase__photo figcaption {
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.nerd-showcase__quote {
    margin: 0;
    padding: 1.5rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 10, 18, 0.8);
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.nerd-showcase__quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.nerd-showcase__note {
	margin-top: 0.75rem;
	font-size: 0.9rem;
	color: var(--muted);
	max-width: 40rem;
}

.nerd-photo figure {
    max-width: 820px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.45);
    background: rgba(4, 12, 20, 0.7);
}

.nerd-photo img {
    width: 100%;
    display: block;
}

.nerd-photo figcaption {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.nerd-experience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.nerd-experience article {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.25rem;
    background: rgba(2, 12, 20, 0.6);
}

.nerd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.page-why-architecture .nerd-grid,
.page-why-delivery .nerd-grid,
.page-why-frontend .nerd-grid,
.page-why-wordpress .nerd-grid {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 880px) {
	.page-why-architecture .nerd-grid,
	.page-why-delivery .nerd-grid,
	.page-why-frontend .nerd-grid,
	.page-why-wordpress .nerd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.nerd-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 16, 26, 0.65);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.page-why-architecture .nerd-card::before,
.page-why-delivery .nerd-card::before,
.page-why-frontend .nerd-card::before,
.page-why-wordpress .nerd-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 100%, rgba(139, 92, 246, 0.18), transparent 60%);
    opacity: 0.55;
    pointer-events: none;
}

.page-why-architecture .nerd-card:hover,
.page-why-architecture .nerd-card:focus-within,
.page-why-delivery .nerd-card:hover,
.page-why-delivery .nerd-card:focus-within,
.page-why-frontend .nerd-card:hover,
.page-why-frontend .nerd-card:focus-within,
.page-why-wordpress .nerd-card:hover,
.page-why-wordpress .nerd-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7);
}

.nerd-timeline {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(120deg, rgba(6, 18, 28, 0.95), rgba(3, 8, 16, 0.9));
    padding: 2rem;
    display: grid;
    gap: 1.25rem;
}

.nerd-timeline__entry {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.nerd-timeline__year {
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.nerd-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.nerd-specs__panel {
    border-radius: 24px;
    background: rgba(4, 18, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
}

.nerd-ai {
	border-radius: 28px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(135deg, rgba(4, 15, 24, 0.9), rgba(6, 20, 34, 0.9));
	padding: 2rem;
	display: grid;
	gap: 1rem;
}

.nerd-ai ul {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
	color: rgba(255, 255, 255, 0.9);
}

.nerd-ai li + li {
	margin-top: 0.35rem;
}

.nerd-ai li strong {
	display: block;
	margin-bottom: 0.1rem;
}

.nerd-links {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(120deg, rgba(6, 18, 28, 0.92), rgba(3, 8, 16, 0.9));
    padding: clamp(1.75rem, 4vw, 2.5rem);
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.nerd-links ul {
    margin: 0;
    padding-left: 1.25rem;
}

.nerd-links .button {
    justify-self: start;
}

@media (min-width: 880px) {
    .nerd-links {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }

    .nerd-links .button {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

.nerd-outcomes {
	margin-top: 2.5rem;
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(3, 12, 20, 0.85);
	padding: 2rem;
}

.nerd-outcomes ul {
	margin: 0.75rem 0 0;
	padding-left: 1.25rem;
}

.nerd-outcomes li + li {
	margin-top: 0.35rem;
}

.status-badges {
    display: grid;
    gap: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-badge--success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-badge--muted {
    background: rgba(255, 255, 255, 0.12);
    color: var(--muted);
}

.status-badge--error {
    background: rgba(231, 76, 60, 0.25);
    color: #ff6b6b;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.history-table th,
.history-table td {
    text-align: left;
    padding: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.history-table__drag {
    width: 32px;
}

.history-table .drag-handle {
    cursor: grab;
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
}

.history-table tr.is-dragging {
    opacity: 0.7;
}

.posts-table__row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.posts-table__title {
    font-weight: 600;
}

.posts-table__meta {
    margin-top: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.posts-table__slug {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.02);
}

.posts-table__excerpt {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-badge--post-published {
    background: rgba(139, 92, 246, 0.2);
    color: #8fffb6;
}

.status-badge--post-draft {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.message-body {
    display: none;
    margin-top: 0.4rem;
    max-width: 420px;
    font-size: 0.9rem;
    color: var(--muted);
}

.message-body.is-open {
    display: block;
}

.wysiwyg {
    margin-top: 0.75rem;
}

.wysiwyg__toolbar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.wysiwyg__btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.wysiwyg__btn--mode {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-inline: 0.9rem;
}

.wysiwyg__btn--mode:first-of-type {
    margin-left: 0.75rem;
}

.wysiwyg__btn--mode.is-active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.9);
    color: #fff;
}

.wysiwyg__btn span {
    font-weight: 700;
}

.wysiwyg__btn:hover {
    border-color: rgba(139, 92, 246, 0.8);
    color: #fff;
}

.wysiwyg__editor {
    min-height: 260px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

.wysiwyg__editor:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35);
}

.wysiwyg--html textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.button.is-loading {
    position: relative;
    opacity: 0.8;
    cursor: default;
}

.button.is-loading::after {
    content: '';
    position: absolute;
    right: 0.9rem;
    top: 50%;
    width: 0.9rem;
    height: 0.9rem;
    margin-top: -0.45rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #8b5cf6;
    animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

.message-status-label {
    font-size: 0.8rem;
}

.status-badge--new {
    background: rgba(33, 150, 243, 0.15);
    color: #8bd3ff;
}

.status-badge--replied {
    background: rgba(139, 92, 246, 0.18);
    color: #8fffb6;
}

.status-badge--archived {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

@media (max-width: 768px) {
    .site-nav__list {
        position: absolute;
        inset: 100% 1rem auto;
        flex-direction: column;
        background: rgba(6, 8, 12, 0.95);
        padding: 1rem;
        border-radius: var(--border-radius);
        border: 1px solid var(--card-border);
        display: none;
    }

    .site-nav__list.is-open {
        display: flex;
    }

    .site-nav__toggle {
        display: inline-flex;
        background: none;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 999px;
        color: var(--text);
        padding: 0.35rem 0.85rem;
        font-weight: 600;
    }

    .site-header__inner {
        position: relative;
    }
}

/* Finance dashboard (/fin) */

body.page-fin {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.fin-header {
    position: relative;
    z-index: 1;
    background: linear-gradient(100deg, rgba(2, 16, 26, 0.98), rgba(3, 30, 52, 0.98));
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.fin-header__inner {
    max-width: 100%;
    margin: 0;
    padding: 0.5rem clamp(1.5rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.fin-header__lede {
    margin-top: 0.2rem;
    max-width: 520px;
    color: var(--muted);
}

.fin-header__user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.fin-header__user-name {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(244, 251, 255, 0.8);
}

.fin-main {
    flex: 1;
    max-width: 100%;
    margin: 0;
    width: 100%;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.fin-shell {
    flex: 1;
    max-width: 100%;
    margin: 0;
    width: 100%;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 4rem);
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .fin-shell {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fin-sidebar {
    border-radius: 24px;
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(5, 19, 30, 0.98), rgba(3, 10, 18, 0.96));
    padding: 1.1rem 1.1rem;
}

.fin-sidebar__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
}

.fin-sidebar__link {
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid transparent;
}

.fin-sidebar__link--active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: #fff;
}

.fin-grid {
    display: grid;
    gap: 1.25rem;
}

.fin-grid--metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fin-grid--charts {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
}

@media (max-width: 960px) {
    .fin-grid--charts {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fin-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 960px) {
    .fin-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .fin-grid--metrics {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fin-column--wide,
.fin-column--side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fin-card {
    border-radius: 24px;
    border: 1px solid var(--card-border);
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.16), transparent 55%),
        rgba(3, 16, 28, 0.95);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

.fin-card--metric {
    background: linear-gradient(135deg, rgba(5, 23, 38, 0.95), rgba(5, 12, 22, 0.96));
}

.fin-card--chart {
    min-height: 260px;
}

.fin-card--chart-compact {
    min-height: 200px;
}

.fin-card__header {
    margin-bottom: 0.75rem;
}

.fin-card__header h2 {
    margin: 0 0 0.25rem;
}

.fin-metric {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.fin-metric--negative {
    color: #ff6b6b;
}

.fin-metric-caption {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.fin-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fin-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.fin-form__row--toggle {
    align-items: center;
}

.fin-form label span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.fin-form input[type="text"],
.fin-form input[type="number"],
.fin-form input[type="date"],
.fin-form select,
.fin-form textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(3, 10, 18, 0.85);
    color: var(--text);
    padding: 0.55rem 0.75rem;
    font: inherit;
}

.fin-form textarea {
    resize: vertical;
}

.fin-form__notes {
    grid-column: 1 / -1;
}

.fin-form__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.fin-form__status {
    font-size: 0.85rem;
    color: var(--muted);
}

.fin-form__status--error {
    color: #ff6b6b;
}

.fin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.fin-toggle input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.fin-table-wrapper {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.fin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.fin-table th,
.fin-table td {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fin-table th {
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.fin-table__cell--numeric {
    text-align: right;
    white-space: nowrap;
}

.fin-amount--negative {
    color: #ff6b6b;
}

.fin-amount--positive {
    color: #8fffb6;
}

.fin-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.fin-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fin-list__color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.7);
}

.fin-list__label {
    flex: 1;
    font-size: 0.9rem;
}

.fin-list__delete {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: var(--muted);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.fin-ai {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fin-ai__body {
    font-size: 0.95rem;
    color: var(--muted);
    padding: 0.75rem 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.2);
    max-height: 260px;
    overflow: auto;
}

/* FAQ Section */
.faq__grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    transition: border-color var(--transition);
}

.faq__item[open] {
    border-color: var(--accent);
}

.faq__question {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.faq__question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform var(--transition);
}

.faq__item[open] .faq__question::after {
    content: '−';
}

.faq__answer {
    padding-top: 1rem;
}

.faq__answer p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* ---- Nav layout fix (no-wrap + tighter spacing for 8 items) ---- */
.site-header__inner {
    max-width: 1280px;
    gap: 1.25rem;
}
.site-nav__list {
    gap: 0.4rem;
    flex-wrap: nowrap;
}
.site-nav__link {
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
}
.site-header .button,
.site-header .button--outline {
    white-space: nowrap;
    flex-shrink: 0;
}
@media (min-width: 769px) and (max-width: 1100px) {
    .site-nav__list { gap: 0.15rem; }
    .site-nav__link { font-size: 0.88rem; padding: 0.35rem 0.55rem; }
    .site-logo__signature { height: 38px; }
}

/* ---- Mobile hero overflow fix (<=640px) ---- */
@media (max-width: 640px) {
    .hero__body {
        grid-template-columns: 1fr;
    }
    .hero__header h1,
    .books-hero h1 {
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    .hero {
        padding: clamp(1.2rem, 4vw, 1.8rem);
    }
}

/* ---- Champlin Enterprises, LLC affiliation badge ---- */
.ce-affiliation {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(43, 104, 193, 0.04), rgba(124, 58, 237, 0.04));
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    max-width: 460px;
}
.ce-affiliation:hover {
    transform: translateY(-1px);
    border-color: rgba(43, 104, 193, 0.4);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
.ce-affiliation__logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}
.ce-affiliation__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}
.ce-affiliation__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}
.ce-affiliation__name {
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    letter-spacing: -0.005em;
}
.ce-affiliation__arrow {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #2B68C1;
    opacity: 0.7;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.ce-affiliation:hover .ce-affiliation__arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Inline footer variant */
.ce-affiliation--inline {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    margin-top: 0;
    gap: 0.55rem;
    font-size: 0.9rem;
    border-radius: 8px;
    max-width: none;
    background: transparent;
    border-color: transparent;
}
.ce-affiliation--inline:hover {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.25);
    transform: none;
    box-shadow: none;
}
.ce-affiliation__logo--inline {
    width: 20px;
    height: 20px;
}

/* ── Open-to-work hero pill ─────────────────────────────────────────────── */
.hero__open {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.95rem 0.45rem 0.75rem;
    margin-bottom: 1.4rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(244, 251, 255, 0.92);
    text-decoration: none;
    transition: var(--transition);
    max-width: 100%;
}
.hero__open:hover,
.hero__open:focus-visible {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.55);
    transform: translateY(-1px);
    outline: none;
}
.hero__open-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    animation: hero__open-pulse 2.2s ease-out infinite;
}
.hero__open-strong {
    color: #f4fbff;
    font-weight: 600;
}
.hero__open-detail {
    color: rgba(244, 251, 255, 0.68);
}
@keyframes hero__open-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@media (max-width: 600px) {
    .hero__open { font-size: 0.76rem; padding: 0.4rem 0.8rem 0.4rem 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero__open-dot { animation: none; }
    .hero__open:hover { transform: none; }
}


/* ============================================================
   Nav redesign 2026-05-20 — grouped dropdowns + active state
   ============================================================ */

.site-nav { position: relative; }
.site-nav__list { align-items: center; }
.site-nav__item { position: relative; display: flex; align-items: center; }

.site-nav__group-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    color: var(--muted);
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
}
.site-nav__group-trigger::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-1px, -2px);
    transition: transform 180ms ease;
    opacity: 0.75;
}
.site-nav__group-trigger:hover,
.site-nav__group-trigger:focus-visible,
.site-nav__item--has-children:hover .site-nav__group-trigger,
.site-nav__item--has-children:focus-within .site-nav__group-trigger,
.site-nav__item--has-children.is-open .site-nav__group-trigger {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}
.site-nav__item--has-children:hover .site-nav__group-trigger::after,
.site-nav__item--has-children:focus-within .site-nav__group-trigger::after,
.site-nav__item--has-children.is-open .site-nav__group-trigger::after {
    transform: rotate(225deg) translate(-1px, -2px);
    opacity: 1;
}
.site-nav__item--has-children.is-active > .site-nav__group-trigger {
    color: var(--text);
}

.site-nav__submenu {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 50%;
    transform: translate(-50%, -6px);
    min-width: 200px;
    padding: 0.45rem;
    list-style: none;
    margin: 0;
    background: linear-gradient(180deg, rgba(6, 14, 22, 0.96), rgba(2, 10, 18, 0.96));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    z-index: 30;
}
.site-nav__submenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(6, 14, 22, 0.96);
    border-top: 1px solid rgba(139, 92, 246, 0.22);
    border-left: 1px solid rgba(139, 92, 246, 0.22);
}
.site-nav__item--has-children:hover .site-nav__submenu,
.site-nav__item--has-children:focus-within .site-nav__submenu,
.site-nav__item--has-children.is-open .site-nav__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.site-nav__submenu li { margin: 0; list-style: none; }
.site-nav__submenu .site-nav__link {
    display: block;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--muted);
}
.site-nav__submenu .site-nav__link:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(34, 211, 238, 0.14));
    color: var(--text);
}

/* Active page indicator (top-level + submenu links) */
.site-nav__link.is-active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.20), rgba(34, 211, 238, 0.18));
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25);
}

/* Subtle CTA polish — keeps existing gradient, adds glow lift */
.site-header .button {
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.28);
}
.site-header .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(79, 70, 229, 0.42);
}

/* Mobile: flatten dropdowns inside the accordion menu */
@media (max-width: 768px) {
    .site-nav__item { display: block; }
    .site-nav__group-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 0.5rem 0.75rem;
    }
    .site-nav__submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
        border: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        padding: 0.25rem 0 0.5rem 0.85rem;
        margin: 0;
        border-left: 1px solid rgba(139, 92, 246, 0.22);
        border-radius: 0;
        min-width: 0;
    }
    .site-nav__submenu::before { display: none; }
}


/* Nav redesign — mobile fixes (2026-05-20 follow-up) */
@media (min-width: 769px) {
    .site-nav__list { align-items: center; }
}
@media (max-width: 768px) {
    .site-nav__list {
        align-items: stretch;
        min-width: 240px;
        max-width: calc(100vw - 2rem);
        inset: 100% 1rem auto auto;
    }
    .site-nav__item { width: 100%; }
    .site-nav__link { display: block; }
}


/* Nav redesign — hover-gap bridge (2026-05-20 follow-up)
   The submenu sits 0.65rem below the trigger so the caret diamond can show.
   That gap drops :hover when the mouse traverses it, closing the dropdown
   mid-traversal. This transparent ::after spans the gap (and a bit beyond)
   as a child of the <li>, so :hover on the parent persists. Width matches
   submenu min-width so diagonal mouse paths stay covered. */
@media (min-width: 769px) {
    .site-nav__item--has-children::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 220px;
        height: 14px;
        background: transparent;
        pointer-events: auto;
    }
}


/* Nav redesign — bridge clip-path (2026-05-20 follow-up #2)
   220px straight bridges overlapped neighboring triggers' bridges, so hovering
   one would activate an adjacent dropdown. Clip-path makes the bridge a
   trapezoid: narrow at the top (only covers its own trigger) and fanning out
   to submenu width at the bottom. Catches diagonal mouse paths without
   poaching hover from neighbors. */
@media (min-width: 769px) {
    .site-nav__item--has-children::after {
        clip-path: polygon(
            calc(50% - 32px) 0,
            calc(50% + 32px) 0,
            100% 100%,
            0 100%
        );
    }
}


/* ── MyTokenTracker promo block ───────────────────────────────────────── */
.mtt-promo {
    margin: 3rem 0;
    padding: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f2a4a 0%, #1a1040 100%);
    border: 1px solid rgba(99, 163, 255, 0.45);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.15),
        0 8px 40px rgba(59, 130, 246, 0.22),
        0 2px 8px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}
/* Vivid top accent bar */
.mtt-promo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
    background-size: 200% 100%;
}
/* Radial glow in top-right */
.mtt-promo::after {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.mtt-promo__inner {
    padding: 1.75rem 2rem 2rem;
    position: relative;
    z-index: 1;
}
.mtt-promo__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}
.mtt-promo__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 999px;
    padding: 0.22rem 0.75rem;
}
.mtt-promo__badge::before {
    content: '◆';
    font-size: 0.45rem;
    opacity: 0.7;
}
.mtt-promo__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f4fbff;
    margin: 0 0 0.7rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.mtt-promo__title em {
    font-style: normal;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mtt-promo__text {
    font-size: 0.925rem;
    color: rgba(244, 251, 255, 0.72);
    line-height: 1.65;
    margin: 0 0 1.5rem;
    max-width: 65ch;
}
.mtt-promo__footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}
.mtt-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    text-decoration: none !important;
    transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.38);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.mtt-promo__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(59, 130, 246, 0.55);
    opacity: 0.95;
}
.mtt-promo__cta-arrow {
    transition: transform 200ms ease;
}
.mtt-promo__cta:hover .mtt-promo__cta-arrow {
    transform: translateX(3px);
}
.mtt-promo__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.mtt-promo__pills span {
    font-size: 0.71rem;
    font-weight: 500;
    color: rgba(244, 251, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    letter-spacing: 0.03em;
}
@media (max-width: 600px) {
    .mtt-promo__inner {
        padding: 1.35rem 1.25rem 1.5rem;
    }
    .mtt-promo__title {
        font-size: 1.1rem;
    }
    .mtt-promo__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .mtt-promo__cta {
        width: 100%;
        justify-content: center;
    }
}
