/* ============================================
   GENERAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--brand-font-body, Helvetica, Arial, sans-serif);
    background-color: var(--brand-bg, #0a0e27);
    color: var(--brand-text, #d0d0d0);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   BACKGROUND GRADIENT
   ============================================ */

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-bg, #0d0d0d) 0%, var(--brand-bg2, #1a1a1a) 50%, var(--brand-bg, #0f0f0f) 100%);
    z-index: -1;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    display: flex;
    flex-direction: column;
    background-color: #ffffff !important;
    z-index: 50;
    overflow: visible;
}

.header-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: var(--brand-header-inner, #ffffff);
    padding: 10px 14px;
    gap: 20px;
}

/* Title Bar */
.title-bar {
    background-color: var(--brand-header-inner, #ffffff) !important;
    padding: 0;
    text-align: left;
    display: flex;
    align-items: center;
    flex: 1;
}

.site-title {
    font-size:var(--brand-title-size, 2.5rem);
    font-weight: 400;
    color: var(--brand-title, #000000);
    margin: 0;
    font-family: var(--brand-font-heading, Helvetica, Arial, sans-serif);
    line-height: 1;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

/* Auth Section Container */
.auth-section-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: auto;
}

.auth-section-container .username {
    color: var(--brand-title, #000000);
    font-size: 0.95rem;
    margin-right: 15px;
}

.logout-btn,
.header-login-btn {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    font-family: var(--brand-font-body, Helvetica, Arial, sans-serif);
    transition: all 0.3s ease;
}

.logout-btn:hover,
.header-login-btn:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.admin-link {
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    margin-right: 15px;
    padding: 8px 16px;
    border: 1px solid #000000;
    border-radius: 3px;
    background-color: transparent;
    transition: all 0.3s ease;
    font-family: var(--brand-font-body, Helvetica, Arial, sans-serif);
    cursor: pointer;
}

.admin-link:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Header Login Form Styles */
.header-login-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.header-login-input {
    background-color: #f5f5f5;
    color: #000000;
    border: 1px solid #cccccc;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-family: var(--brand-font-body, Helvetica, Arial, sans-serif);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header-login-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.header-password-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.toggle-password-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    margin-left: -30px;
    margin-right: 5px;
    z-index: 1;
}

.header-login-error {
    color: #cc0000;
    font-size: 0.85rem;
    flex-basis: 100%;
    display: none;
    text-align: right;
}

.header-login-success {
    color: #00aa00;
    font-size: 0.85rem;
    flex-basis: 100%;
    display: none;
    text-align: right;
}

.forgot-password-btn {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: underline;
    padding: 0;
    flex-basis: 100%;
    text-align: right;
    transition: color 0.2s ease;
}

.forgot-password-btn:hover {
    color: #000000;
}

.reset-info {
    font-size: 0.9rem;
    color: #666666;
    flex-basis: 100%;
    text-align: center;
    margin: 5px 0;
}

/* Navigation Bar */
.nav-bar {
    background-color: var(--brand-nav-bg, #1a1a1a) !important;
    padding: 4px 14px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    gap: 10px;
    row-gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    overflow: visible;
}

.nav-button {
    background-color: transparent;
    border: 1px solid #606060;
    color: var(--brand-nav-text, #ffffff);
    padding: 8px 16px;
    line-height: 1.2;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    font-family: var(--brand-font-body, Helvetica, Arial, sans-serif);
    transition: all 0.3s ease;
}

.nav-button:hover {
    border-color: #909090;
    background-color: var(--brand-nav-bg, #1a1a1a);
}

.nav-button.active {
    background-color: var(--brand-primary, #ffffff);
    color: var(--brand-primary-text, #000000);
    border-color: var(--brand-primary, #ffffff);
}

/* ============================================
   MAIN CONTAINER & SECTIONS
   ============================================ */

/* Carousel Section */
.carousel-section {
    width: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 42%),
        linear-gradient(135deg, var(--brand-bg2, #1f1f1f) 0%, var(--brand-bg-mid, #151515) 52%, var(--brand-bg, #0d0d0d) 100%);
    padding: clamp(20px, 4vw, 44px) 0;
}

.carousel-section .carousel-wrapper {
    max-width: min(1600px, 96vw);
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 28px);
}

@media (min-width: 1200px) {
    .carousel-section .carousel-wrapper {
        max-width: none;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .carousel-container {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
}

/* Grid Section */
.grid-section {
    width: 100%;
    background-color: var(--brand-bg, #0d0d0d);
    padding: 60px 20px;
}

.grid-section .grid-container {
    max-width: 100%;
    margin: 0 auto;
}

/* ============================================
   CAROUSEL STYLES
   ============================================ */

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: clamp(220px, 46vw, 320px);
    max-height: 72vh;
    perspective: 1000px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.carousel-card {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95) translateX(28px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    overflow: hidden;
    background: var(--brand-card, #1a1f3a);
    background-size: cover;
    background-position: center;
}

.carousel-card.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    pointer-events: auto;
    z-index: 10;
    background-size: cover;
}

.carousel-card.prev {
    opacity: 0.18;
    transform: scale(0.92) translateX(-28px);
    z-index: 5;
}

.carousel-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   CAROUSEL OVERLAY
   ============================================ */

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(115deg, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.42) 100%),
        linear-gradient(160deg, rgba(28, 28, 28, 0.55) 0%, transparent 35%, rgba(12, 12, 12, 0.6) 100%);
    z-index: 2;
}

/* ============================================
   CAROUSEL CONTENT
   ============================================ */

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: clamp(18px, 3vw, 42px);
    z-index: 3;
}

.carousel-title {
    font-size: clamp(1.25rem, 3.2vw, 2.8rem);
    font-weight: 500;
    color: #ffffff;
    max-width: 75%;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CAROUSEL NAVIGATION
   ============================================ */

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 8, 8, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    width: clamp(38px, 4.2vw, 54px);
    height: clamp(38px, 4.2vw, 54px);
    border-radius: 50%;
    font-size: clamp(1rem, 1.6vw, 1.5rem);
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(245, 245, 245, 0.2);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
}

.carousel-nav.prev {
    left: clamp(10px, 1.5vw, 20px);
}

.carousel-nav.next {
    right: clamp(10px, 1.5vw, 20px);
}

/* ============================================
   PORTFOLIO GRID (DEPRECATED - See grid-section)
   ============================================ */

.portfolio-grid {
    /* Styles moved to .grid-section */
}

/* Grid Container & Items */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
}

.grid-item {
    background: rgba(var(--brand-card-rgb, 26, 31, 58), 0.6);
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, 0.2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
    width: 100%;
}

.grid-item:hover {
    transform: scale(1.05);
    border-color: #808080;
    box-shadow: 0 15px 40px rgba(128, 128, 128, 0.2);
}

.grid-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #707070 0%, #505050 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.grid-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.3) 0%, rgba(10, 14, 39, 0.7) 100%);
    z-index: 1;
}

.grid-title {
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    position: relative;
    z-index: 2;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--brand-footer-bg, #ffffff);
    padding: 5px 8px;
    text-align: left;
    display: flex;
    align-items: center;
}

.footer p {
    color: var(--brand-footer-text, #000000);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.1;
}

/* Social icons in the header bar and footer. Filled by social-links.js from
   /api/social-links (Admin → Integrations); the mounts stay hidden while empty. */
.social-links {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    padding: 4px 14px;
    background-color: var(--brand-nav-bg, #1a1a1a);
    width: 100%;
}
.social-links:empty { display: none; }
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-nav-text, #d0d0d0);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.85;
}
.social-link:hover, .social-link:focus-visible { opacity: 1; color: var(--brand-nav-text, #ffffff); }
.social-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.footer .social-links { background: transparent; width: auto; margin-left: auto; padding: 0 4px; }
/* Inside the filter bar: right end of the same row, no bar of its own. */
.nav-bar .social-inline { width: auto; margin-left: auto; order: 99; padding: 0 2px; background: transparent; }
.nav-bar .social-inline:empty { display: none; }
.nav-button.nav-link { text-decoration: none; display: inline-flex; align-items: center; }
.footer .social-link { color: var(--brand-footer-text, #000000); }
.footer .social-link:hover, .footer .social-link:focus-visible { color: var(--brand-footer-text, #333333); }

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .carousel-title {
        max-width: 88%;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .portfolio-grid h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0;
    }

    .title {
        font-size: 1.8rem;
    }

    .carousel-container {
        aspect-ratio: 4 / 3;
        min-height: 220px;
    }

    .main-container {
        padding: 20px 15px;
    }
}

/* ============================================
   TAG FILTERS
   ============================================ */

.tag-filters-container {
    background-color: #ffffff;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
    font-family: var(--brand-font-body, Helvetica, Arial, sans-serif);
}

.tag-filters-container::-webkit-scrollbar {
    height: 4px;
}

.tag-filters-container::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.tag-filters-container::-webkit-scrollbar-thumb {
    background: #808080;
    border-radius: 2px;
}

.tag-filters-container::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

.tag-filters {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}

.filter-btn {
    background-color: #f5f5f5;
    border: 1px solid #cccccc;
    color: #000000;
    padding: 6px 12px;
    line-height: 1.2;
    font-size: 0.85rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--brand-font-body, Helvetica, Arial, sans-serif);
}

.filter-btn:hover {
    background-color: #e0e0e0;
    border-color: #909090;
    transform: translateY(-1px);
}

.filter-btn.active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.filter-btn.active:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.filter-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666666;
    margin-right: 4px;
    white-space: nowrap;
    user-select: none;
}

.filter-group-separator {
    color: #cccccc;
    font-size: 1rem;
    margin: 0 6px;
    user-select: none;
}

.tag-pill {
    font-size: 0.75rem;
    padding: 2px 8px;
    background-color: rgba(128, 128, 128, 0.2);
    border-radius: 10px;
    color: var(--brand-text, #d0d0d0);
    display: inline-block;
}

.show-all-btn {
    background-color: transparent;
    border: 1px dashed #666666;
}

.show-all-btn.active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.no-results {
    text-align: center;
    color: var(--brand-muted, #808080);
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 20px;
}

.error-message {
    text-align: center;
    color: #cc0000;
    font-weight: 500;
    margin-top: 20px;
}

.project-card {
    background: rgba(var(--brand-card-rgb, 26, 31, 58), 0.5);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: rgba(128, 128, 128, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(128, 128, 128, 0.2);
}

.project-thumbnail {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.project-thumbnail span {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.type-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    background-color: #404040;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 500;
}

.project-content {
    flex: 1;
    min-height: 0;
}

.project-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    color: var(--brand-heading, #ffffff);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.project-description {
    font-size: 0.8rem;
    color: var(--brand-muted, #a0a0a0);
    margin: 4px 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.project-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.project-type {
    font-size: 0.75rem;
    padding: 2px 6px;
    background-color: rgba(128, 128, 128, 0.2);
    border-radius: 4px;
    color: var(--brand-muted, #808080);
}

.inactive {
    opacity: 0.4;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
}

@media (max-width: 768px) {
    .tag-filters-container {
        padding: 8px 10px;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .filter-group-title {
        display: none;
    }
}

@media (max-width: 480px) {
    .tag-filters-container {
        padding: 6px 8px;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .tag-pill {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .project-title {
        font-size: 0.85rem;
    }

    .project-description {
        font-size: 0.75rem;
    }
}
/* ============================================
   PHONES (2026-10-27)
   One scrolling row for the section/filter bar, icon-only footer, carousel
   titles that stay inside the slide, and long words/media that wrap instead
   of pushing out of their boxes. The backend page shell (index.ts,
   renderPageShell) carries the same rules for the server-rendered pages.
   ============================================ */

/* The previous slide sits behind the active one; its title must never show through. */
.carousel-card:not(.active) .carousel-content { visibility: hidden; }

@media (max-width: 768px) {
    /* Section / filter bar: a single row that scrolls sideways. The edge
       gradients ("scroll shadows") show when there is more to either side. */
    .nav-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        padding: 6px 12px;
        background:
            linear-gradient(to right, var(--brand-nav-bg, #1a1a1a) 30%, rgba(var(--brand-nav-bg-rgb, 26, 26, 26), 0)) left center / 32px 100% no-repeat local,
            linear-gradient(to left, var(--brand-nav-bg, #1a1a1a) 30%, rgba(var(--brand-nav-bg-rgb, 26, 26, 26), 0)) right center / 32px 100% no-repeat local,
            radial-gradient(farthest-side at 0 50%, rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.28), rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0)) left center / 14px 100% no-repeat scroll,
            radial-gradient(farthest-side at 100% 50%, rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0.28), rgba(var(--brand-nav-text-rgb, 255, 255, 255), 0)) right center / 14px 100% no-repeat scroll,
            var(--brand-nav-bg, #1a1a1a) !important;
    }
    .nav-bar::-webkit-scrollbar { display: none; }
    .nav-bar > * { flex: 0 0 auto; }
    /* The menu button stays put at the left while the row scrolls under it. */
    .nav-bar > .site-menu-btn { position: sticky; left: 0; z-index: 2; box-shadow: -14px 0 0 2px var(--brand-nav-bg, #1a1a1a), 12px 0 10px -4px var(--brand-nav-bg, #1a1a1a); }
    .nav-button { white-space: nowrap; padding: 7px 12px; font-size: 0.9rem; }
    .nav-bar .social-inline { flex-wrap: nowrap; gap: 14px; padding: 0 2px 0 6px; }

    /* Footer: copyright on top, a centred row of icons (names stay as the links' labels). */
    .footer { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 14px 12px; min-height: 0; }
    .footer p { line-height: 1.3; }
    .footer .social-links { margin-left: 0; justify-content: center; gap: 6px 10px; padding: 0; width: 100%; }
    .footer .social-label { display: none; }
    .footer .social-link { padding: 8px; }
    .footer .social-icon { width: 22px; height: 22px; }

    /* Carousel: titles use the full width, a size that fits, and at most three lines. */
    .carousel-title {
        max-width: 100%;
        font-size: clamp(1.05rem, 5vw, 1.4rem);
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
    }
    .carousel-content { padding: 16px 16px 18px; }

    /* Nothing pushes out of its box: long words and URLs wrap, media and code stay inside. */
    .main-container, .grid-section, .project-card, .grid-item { overflow-wrap: anywhere; }
    .main-container img, .main-container video, .main-container iframe { max-width: 100%; }
    .main-container pre { overflow-x: auto; max-width: 100%; }
    .main-container table { display: block; max-width: 100%; overflow-x: auto; }
    .grid-section { padding: 32px 12px; }
}

@media (max-width: 768px) {
    .header-top { gap: 10px; padding: 8px 12px; }
    .site-title { font-size: clamp(1.35rem, 6.5vw, 2rem); }
}

@media (max-width: 480px) {
    .footer .social-links { gap: 4px 6px; }
}
