: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: #5be085;
    --accent-strong: #71f29a;
    --accent-soft: rgba(91, 224, 133, 0.12);
    --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, #72ffc8);
    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(91, 224, 133, 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(120deg, #72ffc8, #21dfff);
    color: #021026;
    box-shadow: 0 20px 35px rgba(113, 255, 200, 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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 0.4);
}

.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(91, 224, 133, 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(1.25rem, 3.5vw, 2.5rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 6vw, 4rem);
    width: 100%;
}

.section {
    margin-bottom: clamp(3rem, 8vw, 6rem);
    scroll-margin-top: 160px;
}

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

.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-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(91, 224, 133, 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__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(91, 224, 133, 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(91, 224, 133, 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 top, rgba(91, 224, 133, 0.16), transparent 55%),
        linear-gradient(120deg, rgba(4, 23, 36, 0.95), rgba(6, 30, 44, 0.92));
    border-radius: 30px;
    padding: clamp(1.3rem, 2.8vw, 2.4rem);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.4);
    margin-bottom: clamp(2.25rem, 5.5vw, 4rem);
    position: relative;
}

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

.hero__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.9rem;
    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__content .lead {
    margin-top: 0.25rem;
}

.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(140px, 1fr));
    gap: 1rem;
}

.hero__stats li {
    background: rgba(2, 16, 26, 0.7);
    border-radius: 20px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(91, 224, 133, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.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: flex-end;
}

.hero__media-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(91, 224, 133, 0.25);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
    background: rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

.hero__photo {
    display: block;
    width: 100%;
    height: auto;
}

.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__quote-company {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero__quote-company-number {
    color: #10a3e0;
    font-weight: 700;
}

.hero__quote-company-name {
    color: rgba(255, 255, 255, 0.7);
}

.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 {
    padding: 1.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    background: var(--card);
    min-height: 220px;
    transition: transform var(--transition), border-color var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card__icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

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

.about__media {
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    background:
        radial-gradient(circle at top left, rgba(124, 93, 255, 0.35), rgba(6, 8, 12, 0.85)),
        url('../images/kevin-champlin-web-developer.jpg') left center/cover no-repeat;
    min-height: 360px;
    overflow: hidden;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.5);
}

.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(91, 224, 133, 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;
}

.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);
}

.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 .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, #72ffc8);
    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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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(255, 255, 255, 0.08);
    background: rgba(2, 16, 26, 0.7);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
    padding: 2rem;
}

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

.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;
}

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

.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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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: 520px;
}

.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 {
    gap: 1.25rem;
}

.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.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.site-footer__list a:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

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

.footer-article__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(91, 224, 133, 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 {
    grid-auto-flow: column;
    justify-content: flex-start;
    gap: 1rem;
}

.site-footer__social a {
    padding: 0.4rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.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__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.75rem;
    padding-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
}

.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__nerd {
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.site-footer__nerd-hint {
    margin-left: 0.35rem;
    font-size: 0.9rem;
}

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

.site-footer__nerd[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(91, 224, 133, 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;
}

.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;
}

.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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 0.2), rgba(3, 12, 22, 0.95));
    border-color: rgba(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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(91, 224, 133, 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;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.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;
}

.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(91, 224, 133, 0.15);
    color: #8fffb6;
    border: 1px solid rgba(91, 224, 133, 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-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-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;
}

.nerd-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 16, 26, 0.65);
    padding: 1.5rem;
}

.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;
}

.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(91, 224, 133, 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(91, 224, 133, 0.2);
    border-color: rgba(91, 224, 133, 0.9);
    color: #fff;
}

.wysiwyg__btn span {
    font-weight: 700;
}

.wysiwyg__btn:hover {
    border-color: rgba(91, 224, 133, 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(91, 224, 133, 0.7);
    box-shadow: 0 0 0 1px rgba(91, 224, 133, 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: #5be085;
    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(91, 224, 133, 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;
    }
}
