/* Link Media Services - Modern editorial / newspaper */
@font-face {
    font-family: 'SF Pro';
    src: url('../fonts/sf_pro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.news-media-page {
    padding: 0.5rem 0.5rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}
.news-media-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 0 1rem;
    text-align: center;
}
.news-media-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
}
.news-media-meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}
.news-media-meta .news-media-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(185, 28, 28, 0.25);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
}
.news-media-meta .news-media-author::before,
.news-media-meta .news-media-date::before {
    content: "•";
    color: var(--color-muted);
    margin: 0 0.35rem;
}
.news-media-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}
.news-media-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 0.35rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(185, 28, 28, 0.25);
    border-radius: 999px;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.2s var(--ease-out);
}
.news-media-tab:hover {
    background: rgba(185, 28, 28, 0.08);
}
.news-media-tab.is-active {
    color: #fff;
    background: var(--color-accent);
    border-color: var(--color-accent);
}
@media (max-width: 639px) {
    .news-media-tabs {
        margin-bottom: 0.75rem;
    }
}
.news-media-feature {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1rem;
    padding: 0.75rem;
    background: var(--color-surface);
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.news-media-player {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
}
.news-media-player--ratio {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}
.news-media-player--ratio video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.news-media-player video,
.news-media-player audio {
    display: block;
    width: 100%;
    max-height: 60vh;
}
.news-media-player--audio {
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.news-media-audio-cover {
    width: 100%;
    max-width: 260px;
    margin: 0 auto 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.news-media-audio-cover img {
    display: block;
    width: 100%;
    height: auto;
}
.news-media-audio-controls audio {
    width: 100%;
    height: 48px;
}
.news-audio-visualizer {
    display: block;
    width: 100%;
    height: 0;
    opacity: 0;
    margin-bottom: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(120%);
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.news-audio-visualizer.is-visible {
    height: 64px;
    opacity: 1;
    margin-bottom: 0.5rem;
    transform: translateY(0);
}
.project-audio-visualizer {
    display: block;
    width: 100%;
    height: 0;
    opacity: 0;
    margin-bottom: 0;
    border-radius: 8px;
    background: rgba(28, 25, 23, 0.06);
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.project-audio-visualizer.is-visible {
    height: 56px;
    opacity: 1;
    margin-bottom: 0.5rem;
    transform: translateY(0);
}
.news-media-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.news-media-now {
    min-width: 0;
}
.news-media-now-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}
.news-media-now-sub {
    margin: 0.15rem 0 0;
    font-size: 0.875rem;
    color: var(--color-muted);
}
.news-media-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.news-media-speed {
    padding: 0.4rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: rgba(28, 25, 23, 0.06);
    border: 1px solid rgba(28, 25, 23, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.2s var(--ease-out);
}
.news-media-speed:hover {
    background: rgba(28, 25, 23, 0.1);
}
.news-media-download,
.news-media-card-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: var(--font-sans);
    color: #fff;
    background: var(--color-accent);
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--color-accent);
    transition: background var(--transition), transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.news-media-download:hover,
.news-media-card-download:hover {
    background: var(--color-accent-hover);
}
.news-media-playlist {
    margin-top: 0.25rem;
}
.news-media-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .news-media-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
}
.news-media-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem;
    background: var(--color-surface);
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s var(--ease-out), background var(--transition);
}
.news-media-card:hover {
    border-color: rgba(185, 28, 28, 0.2);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}
.news-media-card.is-active {
    border-color: var(--color-accent);
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.15);
}
.news-media-card-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.news-media-card-thumb--video {
    background: linear-gradient(135deg, #334155, #64748b);
}
.news-media-card-thumb--audio {
    background: linear-gradient(135deg, #a21caf, #7c3aed);
}
.news-media-card-body {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 1;
}
.news-media-card-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


:root {
    --color-bg: #e8e6e3;
    --color-surface: #f5f4f2;
    --color-text: #1c1917;
    --color-reading: #292524; /* slightly softer for long-form text */
    --color-muted: #78716c;
    --color-accent: #b91c1c;
    --color-accent-hover: #dc2626;
    --color-ink: #1c1917;
    --font-sans: 'SF Pro', system-ui, sans-serif;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --radius: 6px;
    --radius-sm: 4px;
    --transition: 0.2s ease;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --body-margin-h: 1rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes searchShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    50% { transform: translateX(1px); }
    75% { transform: translateX(-0.5px); }
}

@keyframes searchHeroFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
    50% { transform: translateY(-6px) scale(1.02); opacity: 1; }
}

@keyframes searchHeroTagIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Empty state (no content yet) – shared across News, Services, Gallery, Projects */
@keyframes emptyStateFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
    50% { transform: translateY(-8px) scale(1.05); opacity: 1; }
}
@keyframes emptyStateFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes emptyStateIconPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.empty-state-block {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 420px;
    margin: 2rem auto;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px dashed rgba(185, 28, 28, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    animation: emptyStateFadeIn 0.6s var(--ease-out) backwards;
}

.empty-state-block__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    color: var(--color-accent);
    animation: emptyStateFloat 3s ease-in-out infinite;
}

.empty-state-block__icon svg {
    width: 56px;
    height: 56px;
}

.empty-state-block__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

.empty-state-block__text {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.empty-state-block__link {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid rgba(185, 28, 28, 0.25);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.empty-state-block__link:hover {
    background: rgba(185, 28, 28, 0.08);
    border-color: var(--color-accent);
}

/* Auth page animations */
@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes authMessageIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site {
    margin: 0 var(--body-margin-h);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
}

/* Header */
.site-header {
    margin-left: calc(-1 * var(--body-margin-h));
    margin-right: calc(-1 * var(--body-margin-h));
    padding: 0.35rem var(--body-margin-h);
    background: var(--color-surface);
    border-bottom: 1px solid rgba(28, 25, 23, 0.12);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding-left: 0;
    padding-right: 0;
}

.logo {
    display: block;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.25s var(--ease-out);
}

.logo:hover {
    transform: scale(1.02);
}

.logo:active {
    transform: scale(0.98);
}

.logo img {
    display: block;
    height: 30px;
    width: auto;
    max-width: 220px;
    padding: 3px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(28, 25, 23, 0.08));
    transition: filter 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.logo:hover img,
.logo:focus img {
    filter: drop-shadow(0 2px 8px rgba(185, 28, 28, 0.15)) drop-shadow(0 1px 3px rgba(28, 25, 23, 0.12));
}

.logo:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.35rem;
}

.main-nav a {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    text-decoration: none;
    padding: 0.3rem 0.4rem;
    position: relative;
    border-radius: 999px;
    transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.main-nav a:hover {
    color: var(--color-accent-hover);
    background: rgba(185, 28, 28, 0.08);
}

.main-nav a:focus-visible {
    outline: none;
    background: rgba(185, 28, 28, 0.12);
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.25);
}

.main-nav a::after {
    display: none;
}

/* Navbar search – compact pill */
.nav-search {
    display: flex;
    max-width: 180px;
    position: relative;
    flex-direction: column;
    align-items: stretch;
}

.nav-search-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 34px;
    padding: 0 0 0 0.75rem;
    background: rgba(28, 25, 23, 0.04);
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 999px;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.nav-search-wrap:hover {
    background: rgba(28, 25, 23, 0.06);
    border-color: rgba(28, 25, 23, 0.12);
}

.nav-search:focus-within .nav-search-wrap {
    background: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2);
}

.nav-search input {
    flex: 1;
    min-width: 0;
    padding: 0.35rem 0.5rem 0.35rem 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-radius: 999px;
}

.nav-search input::placeholder {
    color: var(--color-muted);
}

.nav-search input:focus {
    outline: none;
}

.nav-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin: 0 2px 0 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-search-btn:hover {
    color: var(--color-accent);
    background: rgba(185, 28, 28, 0.08);
}

.nav-search-btn:focus-visible {
    outline: none;
    color: var(--color-accent);
    background: rgba(185, 28, 28, 0.12);
}

.nav-search--mobile {
    display: none;
}

/* Live search dropdown */
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid rgba(28, 25, 23, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(28, 25, 23, 0.12);
    z-index: 100;
    list-style: none;
    padding: 0;
}

.live-search-results[hidden] {
    display: none;
}

.live-search-results__list {
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
}

.live-search-results__item {
    margin: 0;
}

.live-search-results__item a {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.live-search-results__item a:hover,
.live-search-results__item a:focus-visible {
    background: rgba(185, 28, 28, 0.08);
    color: var(--color-accent);
}

.live-search-results__item--news a::before,
.live-search-results__item--showcase a::before,
.live-search-results__item--projects a::before,
.live-search-results__item--connections a::before,
.live-search-results__item--socials a::before {
    margin-right: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

.live-search-results__item--news a::before { content: 'News \2013 '; }
.live-search-results__item--showcase a::before { content: 'Showcase \2013 '; }
.live-search-results__item--projects a::before { content: 'Project \2013 '; }
.live-search-results__item--connections a::before { content: 'Connection \2013 '; }
.live-search-results__item--socials a::before { content: 'External \2013 '; }

.live-search-results__footer {
    margin: 0;
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(28, 25, 23, 0.1);
    background: rgba(28, 25, 23, 0.03);
}

.live-search-results__footer a {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
}

.live-search-results__footer a:hover {
    text-decoration: underline;
}

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.hamburger-btn:hover {
    background: rgba(185, 28, 28, 0.08);
}

.hamburger-btn:active {
    transform: scale(0.95);
    background: rgba(185, 28, 28, 0.12);
}

.hamburger-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    background: rgba(185, 28, 28, 0.08);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                opacity 0.25s ease,
                background 0.2s ease;
    transform-origin: center;
}

.hamburger-btn[aria-expanded="true"] {
    background: rgba(185, 28, 28, 0.1);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hide mobile menu elements on desktop */
.mobile-nav-header,
.mobile-nav-footer {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .site-header .container > .nav-search {
        flex: 0 0 auto;
        margin-right: -10.5rem;
    }

    .site-header .container > .nav-search .nav-search-wrap {
        min-height: 44px;
        padding-left: 0;
        width: 44px;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .site-header .container > .nav-search:focus-within .nav-search-wrap {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .site-header .container > .nav-search .nav-search-btn:hover,
    .site-header .container > .nav-search .nav-search-btn:focus-visible {
        background: transparent;
    }

    .site-header .hamburger-btn:hover {
        background: transparent;
    }

    .site-header .container > .nav-search input {
        width: 0;
        min-width: 0;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        position: absolute;
    }

    .site-header .container > .nav-search .nav-search-btn {
        width: 44px;
        height: 44px;
        margin-right: 0;
        color: var(--color-accent);
        animation: searchShake 3s ease-in-out infinite;
    }

    .site-header .container > .nav-search .nav-search-btn svg {
        color: inherit;
    }

    .main-nav .nav-search {
        display: none;
    }

    .hamburger-btn {
        display: flex;
        flex-shrink: 0;
        z-index: 101;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 90vw);
        height: 100vh;
        height: 100dvh;
        padding: 0;
        background: var(--color-surface);
        border-left: 1px solid rgba(28, 25, 23, 0.1);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        z-index: 100;
        box-shadow: -12px 0 48px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), 
                    visibility 0.4s;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        display: flex;
    }

    .main-nav.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-nav-header {
        display: block;
        padding: 1.5rem 1.5rem 1rem;
        border-bottom: 1px solid rgba(28, 25, 23, 0.08);
        background: transparent;
    }

    .mobile-nav-title {
        margin: 0 0 0.25rem;
        font-family: var(--font-serif);
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--color-accent);
        letter-spacing: -0.02em;
    }

    .mobile-nav-slogan {
        margin: 0;
        font-family: var(--font-sans);
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--color-text);
        letter-spacing: 0.02em;
        text-transform: uppercase;
        opacity: 0.9;
    }

    .mobile-nav-footer {
        display: block;
        margin-top: auto;
        padding: 1.5rem 1.5rem;
        border-top: 1px solid rgba(28, 25, 23, 0.08);
        background: transparent;
        text-align: center;
    }

    .mobile-nav-footer .mobile-nav-title {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
    }

    .mobile-nav-footer .mobile-nav-slogan {
        font-size: 0.8125rem;
        color: var(--color-text);
    }

    .main-nav .nav-search {
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(28, 25, 23, 0.08);
        background: transparent;
    }

    .main-nav .nav-search-wrap {
        border-radius: 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(28, 25, 23, 0.08);
        box-shadow: none;
    }

    .main-nav .nav-search-wrap:focus-within {
        border-color: var(--color-accent);
        box-shadow: none;
        background: transparent;
    }

    .main-nav > a {
        display: flex;
        align-items: center;
        gap: 0.875rem;
        padding: 1.125rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: var(--color-text);
        text-decoration: none;
        border-bottom: 1px solid rgba(28, 25, 23, 0.06);
        transition: color 0.2s ease;
        min-height: 56px;
        -webkit-tap-highlight-color: transparent;
        /* Override desktop styles - remove card appearance */
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-transform: none;
        letter-spacing: normal;
        position: static;
    }

    .main-nav > a:hover,
    .main-nav > a:focus-visible {
        color: var(--color-accent);
        background: transparent !important;
        box-shadow: none !important;
    }

    .main-nav > a.is-active {
        color: var(--color-accent);
        font-weight: 600;
        background: transparent !important;
    }

    .main-nav > a::after {
        display: none;
    }

    /* Account/login link styling */
    .main-nav > a[href*="account"],
    .main-nav > a[href*="login"] {
        margin-top: 0;
        border-top: 1px solid rgba(28, 25, 23, 0.08);
    }

    .site-header .container {
        position: relative;
    }
}

@media (max-width: 768px) {
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    visibility 0.4s;
    }

    .nav-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

    /* Smooth scrollbar for mobile menu */
    .main-nav::-webkit-scrollbar {
        width: 6px;
    }

    .main-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .main-nav::-webkit-scrollbar-thumb {
        background: rgba(28, 25, 23, 0.2);
        border-radius: 3px;
    }

    .main-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(28, 25, 23, 0.3);
    }
}

/* Main */
.site-main {
    flex: 1;
    padding: 1.25rem 0 2rem;
}

/* Auth pages: center form in the middle of the page */
.site-main:has(.login-page) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 10rem);
    padding: 1rem 0.75rem 1.5rem;
}

.site-main > section {
    margin-bottom: 1.5rem;
}

.site-main > section > h2 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(28, 25, 23, 0.15);
    color: var(--color-accent);
}

.page-title {
    margin: 0 0 1rem;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-accent);
}

.page-lead {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.card-title,
.card-title a {
    color: var(--color-accent);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--color-accent-hover);
    text-decoration: none;
}

.card-media {
    overflow: hidden;
    border-radius: var(--radius, 8px) var(--radius, 8px) 0 0;
}
.card-media img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-media--top img {
    object-position: center top;
}
.card-media--center img {
    object-position: center center;
}
.card-media--bottom img {
    object-position: center bottom;
}

/* News (and other) card grid: 1 col small, 2 medium, 4 on large */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.card-grid .card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface, #fff);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-grid .card .card-body {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}
.card-grid .card .card-meta {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-muted, #78716c);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.card-description {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0.5rem 0 0;
}

.card--service .card-title {
    margin-bottom: 0;
}
.card--service .card-actions {
    margin: 1rem 0 0;
}
.card--service .card-actions .btn {
    display: inline-block;
}

/* Home page – compact text (not images) */
.home-page .card-grid {
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .home-page .card-grid {
        gap: 0.7rem;
    }
}
@media (min-width: 1024px) {
    .home-page .card-grid {
        gap: 0.8rem;
    }
}
.home-page .card-grid .card .card-body {
    padding: 0.2rem 0.5rem;
}
.home-page .card-grid .card .card-title {
    font-size: 1.0rem;
    line-height: 1.25;
    margin-bottom: 0.15rem;
}
.home-page .card-grid .card .card-body > p:not(.card-meta) {
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0 0 0.15rem;
}
.home-page .card-grid .card .card-meta {
    padding-top: 0.25rem;
    font-size: 0.6875rem;
}
.home-page section h2 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}
.home-page section {
    margin-bottom: 1rem;
}
.home-page section:last-child {
    margin-bottom: 0;
}

/* Home hero */
.home-hero {
    text-align: center;
    padding: 0.75rem 0 1.25rem;
}
.home-hero__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-accent);
    line-height: 1.2;
}
.home-hero__lead {
    margin: 0 0 1rem;
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-muted);
}
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.home-hero__btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.home-hero__btn--primary {
    background: var(--color-accent);
    color: #fff;
}
.home-hero__btn--primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}
.home-hero__btn--secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.home-hero__btn--secondary:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Home quick links */
.home-quick-links {
    padding-bottom: 1rem;
}
.home-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
}
.home-quick-links__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
@media (min-width: 480px) {
    .home-quick-links__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 640px) {
    .home-quick-links__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.75rem;
    }
}
.home-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.5rem;
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.home-quick-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.home-quick-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}
.home-quick-link__icon svg {
    display: block;
}
.home-quick-link__label {
    text-align: center;
}

/* Home featured services */
.home-featured-services {
    padding-bottom: 1rem;
}
.home-featured-services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .home-featured-services__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}
.home-service-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.home-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.home-service-card:hover .home-service-card__title {
    color: var(--color-accent);
}
.home-service-card__media {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
}
.home-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}
.home-service-card:hover .home-service-card__media img {
    transform: scale(1.05);
}
.home-service-card__media--placeholder {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.08) 0%, rgba(0, 0, 0, 0.06) 100%);
}
.home-service-card__title {
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s ease;
}
.home-section-more {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
}
.home-section-more a {
    color: var(--color-accent);
    text-decoration: none;
}
.home-section-more a:hover {
    text-decoration: underline;
}

/* Home featured projects */
.home-featured-projects {
    padding-bottom: 1rem;
}
.home-featured-projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .home-featured-projects__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}
@media (min-width: 1024px) {
    .home-featured-projects__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
.home-project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.home-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.home-project-card:hover .home-project-card__title {
    color: var(--color-accent);
}
.home-project-card__media {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
}
.home-project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}
.home-project-card:hover .home-project-card__media img {
    transform: scale(1.05);
}
.home-project-card__media--placeholder {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.06) 0%, rgba(0, 0, 0, 0.08) 100%);
}
.home-project-card__title {
    padding: 0.5rem 0.65rem 0.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s ease;
}
.home-project-card__category {
    padding: 0 0.65rem 0.5rem;
    font-size: 0.6875rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Home CTA */
.home-cta {
    padding: 1rem 0 0.5rem;
    margin-top: 0.5rem;
}
.home-cta__inner {
    text-align: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.06) 0%, var(--color-surface) 100%);
    border: 1px solid rgba(185, 28, 28, 0.12);
    border-radius: var(--radius);
}
.home-cta__title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}
.home-cta__text {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--color-muted);
}
.home-cta__btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
    background: var(--color-accent);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.home-cta__btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Home page – same main padding and horizontal spacing as news page */
.site-main:has(.home-hero) {
    padding: 0.5rem 0 0.75rem;
}
.site-main:has(.home-hero) .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

/* News page – by category & type */
.site-main:has(.news-page),
.site-main:has(.services-page),
.site-main:has(.gallery-page) {
    padding: 0.5rem 0 0.75rem;
}

/* Gallery page – modern */
.gallery-page {
    max-width: 1280px;
    margin: 0 auto;
}
.gallery-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gallery-hero__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--color-accent);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.gallery-hero__lead {
    margin: 0;
    font-size: 1rem;
    color: var(--color-muted, #78716c);
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}
.gallery-hero__lead:not(:empty) {
    margin-top: 0.5rem;
}
.gallery-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 420px;
    margin: 2rem auto;
    background: var(--color-surface);
    border-radius: 12px;
    border: 1px dashed rgba(185, 28, 28, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    animation: emptyStateFadeIn 0.6s var(--ease-out) backwards;
}
.gallery-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    color: var(--color-accent);
    animation: emptyStateFloat 3s ease-in-out infinite;
}
.gallery-empty__icon svg {
    width: 56px;
    height: 56px;
}
.gallery-empty .empty-state-block__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}
.gallery-empty__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.5;
}
.gallery-empty__link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid rgba(185, 28, 28, 0.25);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gallery-empty__link:hover {
    background: rgba(185, 28, 28, 0.08);
    border-color: var(--color-accent);
}
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}
.gallery-card {
    margin: 0;
    animation: galleryCardIn 0.5s var(--ease-out) backwards;
}
.gallery-grid .gallery-card:nth-child(1) { animation-delay: 0.05s; }
.gallery-grid .gallery-card:nth-child(2) { animation-delay: 0.1s; }
.gallery-grid .gallery-card:nth-child(3) { animation-delay: 0.15s; }
.gallery-grid .gallery-card:nth-child(4) { animation-delay: 0.2s; }
.gallery-grid .gallery-card:nth-child(5) { animation-delay: 0.25s; }
.gallery-grid .gallery-card:nth-child(6) { animation-delay: 0.3s; }
.gallery-grid .gallery-card:nth-child(7) { animation-delay: 0.35s; }
.gallery-grid .gallery-card:nth-child(8) { animation-delay: 0.4s; }
.gallery-grid .gallery-card:nth-child(9) { animation-delay: 0.45s; }
@keyframes galleryCardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.gallery-card__figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.gallery-card:hover .gallery-card__figure {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.gallery-card__media {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    padding: 0;
    width: 100%;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.gallery-card__media:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out);
}
.gallery-card__media:hover img {
    transform: scale(1.06);
}
.gallery-card__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}
.gallery-card__media:hover .gallery-card__zoom {
    opacity: 1;
}
.gallery-card__media--placeholder {
    background: linear-gradient(145deg, rgba(185, 28, 28, 0.06) 0%, rgba(0, 0, 0, 0.08) 100%);
}
.gallery-card__caption {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.gallery-card__title {
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.3;
}
.gallery-card__desc {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--color-muted);
}

/* Gallery lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.gallery-lightbox[hidden] {
    display: none !important;
}
.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.gallery-lightbox__inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: galleryLightboxIn 0.3s var(--ease-out);
}
@keyframes galleryLightboxIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.gallery-lightbox__close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}
.gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.15);
}
.gallery-lightbox__content {
    background: var(--color-surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    max-width: 100%;
}
.gallery-lightbox__img {
    display: block;
    max-width: 85vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.gallery-lightbox__meta {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.gallery-lightbox__title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
}
.gallery-lightbox__caption {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.4;
}

.news-page .page-title {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
}
.news-page__intro {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: var(--color-muted, #78716c);
}
.news-page__toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    background: var(--color-surface, #f5f4f2);
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.news-page__sort-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-muted, #78716c);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.news-page__sort-label::before {
    content: '';
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 4-4 4 4'/%3E%3Cpath d='M7 4v16'/%3E%3Cpath d='m21 16-4 4-4-4'/%3E%3Cpath d='M17 20V4'/%3E%3C/svg%3E") no-repeat center;
    opacity: 0.85;
}
.news-page__sort {
    min-height: 38px;
    padding: 0.4rem 2.25rem 0.4rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.news-page__sort:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}
.news-page__sort:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}
.news-page .empty-state {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

/* Section blocks */
.news-page__section {
    margin-bottom: 2rem;
}
.news-page__section:last-child {
    margin-bottom: 0;
}
.news-page__section-title {
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-accent);
    letter-spacing: -0.01em;
}
.news-page__grid {
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .news-page__grid {
        gap: 0.875rem;
    }
}
@media (min-width: 1024px) {
    .news-page__grid {
        gap: 1rem;
    }
}

/* Card type badge */
.news-page .card-type {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    background: rgba(185, 28, 28, 0.08);
    border-radius: var(--radius-sm, 4px);
}
.news-page .card-grid .card .card-body {
    padding: 0.65rem 0.75rem;
}
.news-page .card-grid .card .card-title {
    font-size: 0.9375rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}
.news-page .card-grid .card .card-body > p:not(.card-meta) {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0 0 0.25rem;
}
.news-page .card-grid .card .card-meta {
    padding-top: 0.35rem;
    font-size: 0.75rem;
}
.news-page .card-media img {
    height: 180px;
}
.news-page .card-media--top img {
    object-position: center top;
}
.news-page .card-media--center img {
    object-position: center center;
}
.news-page .card-media--bottom img {
    object-position: center bottom;
}
.news-page .card {
    animation: card-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.news-page .card:nth-child(1) { animation-delay: 0.05s; }
.news-page .card:nth-child(2) { animation-delay: 0.1s; }
.news-page .card:nth-child(3) { animation-delay: 0.15s; }
.news-page .card:nth-child(4) { animation-delay: 0.2s; }
.news-page .card:nth-child(5) { animation-delay: 0.25s; }
.news-page .card:nth-child(6) { animation-delay: 0.3s; }
.news-page .card:nth-child(7) { animation-delay: 0.35s; }
.news-page .card:nth-child(8) { animation-delay: 0.4s; }
.news-page .card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.news-page .card:hover .card-media img {
    transform: scale(1.12) rotate(2deg);
}
.news-page .card:hover .card-title a {
    color: var(--color-accent);
}

.home-page .card {
    animation: card-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.home-page .card:nth-child(1) { animation-delay: 0.05s; }
.home-page .card:nth-child(2) { animation-delay: 0.1s; }
.home-page .card:nth-child(3) { animation-delay: 0.15s; }
.home-page .card:nth-child(4) { animation-delay: 0.2s; }
.home-page .card:nth-child(5) { animation-delay: 0.25s; }
.home-page .card:nth-child(6) { animation-delay: 0.3s; }
.home-page .card:nth-child(7) { animation-delay: 0.35s; }
.home-page .card:nth-child(8) { animation-delay: 0.4s; }
.home-page .card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.home-page .card:hover .card-media img {
    transform: scale(1.12) rotate(2deg);
}
.home-page .card:hover .card-title a {
    color: var(--color-accent);
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News share button – top right on image */
.news-card-media {
    position: relative;
}
.card-media__img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}
.card-media__img-wrap a {
    display: block;
}
.news-card-category-badge {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--color-accent, #b91c1c);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
/* When dropdown is open: allow overflow so it isn't clipped, raise card above neighbors */
.news-page .card:has(.news-share-btn[aria-expanded="true"]) {
    overflow: visible;
    z-index: 20;
    position: relative;
}
.news-page .news-card-media:has(.news-share-btn[aria-expanded="true"]) {
    overflow: visible;
}
.home-page .card:has(.news-share-btn[aria-expanded="true"]) {
    overflow: visible;
    z-index: 20;
    position: relative;
}
.home-page .news-card-media:has(.news-share-btn[aria-expanded="true"]) {
    overflow: visible;
}
.news-share-wrap {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
}
.news-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.news-share-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}
.news-share-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.3);
}
.news-share-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.news-share-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.35rem;
    min-width: 140px;
    padding: 0.35rem 0;
    background: #fff;
    border-radius: var(--radius, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.news-share-dropdown[hidden] {
    display: none;
}
.news-share-opt {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.news-share-opt:hover {
    background: rgba(185, 28, 28, 0.08);
    color: var(--color-accent);
}
.news-share-opt:focus {
    outline: none;
    background: rgba(185, 28, 28, 0.08);
}

/* ==========================================================================
   Services page – 2026 design (distinct from news)
   Soft shadows, generous spacing, no harsh borders, modern typography
   ========================================================================== */
.services-page {
    margin-bottom: 1rem;
    --svc-radius: 12px;
    --svc-radius-sm: 8px;
    --svc-radius-pill: 9999px;
    --svc-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
    --svc-shadow-hover: 0 8px 30px rgba(28, 25, 23, 0.08);
    --svc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hero – soft gradient, spacious, bold typography */
.services-page__hero {
    background: linear-gradient(180deg, #fafaf9 0%, #f5f4f2 50%, #f0eeeb 100%);
    padding: 2rem 0 2rem;
    position: relative;
}

.services-page__hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(28, 25, 23, 0.06) 20%, rgba(28, 25, 23, 0.06) 80%, transparent);
}

.services-page__hero-inner {
    padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.services-page__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-text);
}

.services-page__lead {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-muted);
    max-width: 40rem;
}

.services-page__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.services-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-decoration: none;
    border-radius: var(--svc-radius-pill);
    cursor: pointer;
    transition: all 0.25s var(--svc-ease);
}

.services-page .btn--primary {
    color: #fff;
    background: var(--color-accent);
    border: none;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.25);
}

.services-page .btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.3);
}

.services-page .btn--secondary {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(28, 25, 23, 0.12);
    backdrop-filter: blur(8px);
}

.services-page .btn--secondary:hover {
    background: #fff;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.services-page .btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Jump nav – refined chip style */
.services-nav-label {
    margin: 0 0 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.services-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
}

.services-nav__link {
    color: var(--color-muted);
    text-decoration: none;
    padding: 0.25rem 0.65rem;
    border-radius: var(--svc-radius-pill);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid transparent;
    transition: all 0.2s var(--svc-ease);
}

.services-nav__link:hover {
    color: var(--color-accent);
    background: #fff;
    border-color: rgba(28, 25, 23, 0.08);
    box-shadow: var(--svc-shadow);
}

.services-nav__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Services list – full width like news page */
.services-page__list {
    padding: 1.25rem clamp(1rem, 4vw, 1.5rem) 0;
}

.services-list__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* Service blocks – card-style with soft elevation */
.services-block {
    margin-bottom: 0.75rem;
}

.services-block:last-of-type {
    margin-bottom: 0;
}

.services-block--has-image .services-block__inner {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 16rem;
    background: #fff;
    border-radius: var(--svc-radius);
    overflow: hidden;
    box-shadow: var(--svc-shadow);
    transition: box-shadow 0.3s var(--svc-ease);
}

.services-block--has-image .services-block__inner:hover {
    box-shadow: var(--svc-shadow-hover);
}

@media (min-width: 768px) {
    .services-block--has-image .services-block__inner {
        grid-template-columns: 36% 1fr;
        min-height: 14rem;
    }
    .services-block--image-right.services-block--has-image .services-block__inner {
        grid-template-columns: 1fr 36%;
    }
    .services-block--image-right .services-block__media {
        order: 2;
    }
    .services-block--image-right .services-block__content {
        order: 1;
        padding-left: clamp(1.5rem, 4vw, 2.5rem);
        padding-right: clamp(1.5rem, 4vw, 2.5rem);
    }
}

.services-block:nth-child(odd) .services-block__content,
.services-block:nth-child(even) .services-block__content {
    background: #fff;
}

.services-block--text-only .services-block__inner {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.25rem clamp(1rem, 4vw, 1.5rem);
    background: #fff;
    border-radius: var(--svc-radius);
    box-shadow: var(--svc-shadow);
}

.services-block__inner {
    max-width: 100%;
}

.services-block__media {
    position: relative;
    min-height: 14rem;
    overflow: hidden;
    background: rgba(28, 25, 23, 0.04);
    align-self: stretch;
}

@media (min-width: 768px) {
    .services-block--image-left .services-block__media {
        border-radius: var(--svc-radius) 0 0 var(--svc-radius);
    }
    .services-block--image-right .services-block__media {
        border-radius: 0 var(--svc-radius) var(--svc-radius) 0;
    }
}

.services-block__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s var(--svc-ease);
}

.services-block--has-image .services-block__inner:hover .services-block__media img {
    transform: scale(1.12) rotate(2deg);
}

.services-block--has-image .services-block__inner:hover .services-block__title {
    color: var(--color-accent);
}

.services-block__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem clamp(1rem, 4vw, 1.5rem);
}

@media (min-width: 768px) {
    .services-block__content {
        padding: 1.25rem clamp(1.5rem, 4vw, 2rem);
    }
}

.services-block__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--color-text);
    transition: color 0.3s var(--svc-ease);
}

@media (min-width: 640px) {
    .services-block__title {
        font-size: 1.25rem;
    }
}

.services-block__description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-reading);
    margin: 0;
}

.services-block__actions {
    margin: 0.75rem 0 0;
}

.services-block__cta {
    display: inline-block;
}

/* ==========================================================================
   Services page – Netflix-style layout (services-page--netflix)
   Large image tiles with overlay titles, click to reveal details
   ========================================================================== */
.services-netflix {
    padding: 0.75rem clamp(1rem, 4vw, 1.5rem) 0.5rem;
    margin: 0 0 0.5rem;
}
.services-netflix__row-title {
    margin: 0 0 0.5rem;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-accent);
}
.services-netflix__row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.25rem 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.services-netflix__row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.services-netflix__row > .services-tile:first-child {
    scroll-margin-inline-start: 1rem;
}

.services-tile {
    flex: 0 0 auto;
    width: min(90vw, 300px);
    min-width: 260px;
    padding: 2px 0;
    scroll-snap-align: start;
}
@media (min-width: 640px) {
    .services-tile {
        width: 280px;
        min-width: 260px;
    }
}
@media (min-width: 1024px) {
    .services-tile {
        width: 300px;
        min-width: 280px;
    }
}
.services-tile__trigger {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.services-tile__trigger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}
.services-tile__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}
.services-tile__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.services-tile:hover .services-tile__media img,
.services-tile.is-active .services-tile__media img {
    transform: scale(1.06);
}
.services-tile__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
    pointer-events: none;
}
.services-tile__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.75rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: color 0.2s;
}
.services-tile.is-active .services-tile__media {
    box-shadow: 0 0 0 3px var(--color-accent), 0 4px 20px rgba(185, 28, 28, 0.25);
}
.services-tile.is-active .services-tile__title {
    color: var(--color-accent);
}
.services-tile__media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.services-tile__media--placeholder .services-tile__title {
    position: static;
    padding: 1rem;
}

.services-nav-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem clamp(1rem, 4vw, 1.5rem);
    margin: 0.25rem 0 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-nav-dots::-webkit-scrollbar {
    display: none;
}

.services-nav-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(28, 25, 23, 0.25);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), width var(--transition);
    outline: none;
}

.services-nav-dot:hover {
    background: rgba(28, 25, 23, 0.4);
    transform: scale(1.2);
}

.services-nav-dot:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.services-nav-dot.is-active {
    width: 24px;
    border-radius: 12px;
    background: var(--color-accent);
    transform: scale(1);
}

.services-nav-dot.is-active:hover {
    background: var(--color-accent-hover);
}

.services-detail-panel {
    padding: 0.75rem clamp(1rem, 4vw, 1.5rem) 1rem;
    margin: 0.5rem 0 0.75rem;
}
.services-detail-panel[hidden] {
    display: none;
}
.services-detail {
    max-width: 42rem;
}
.services-detail[hidden] {
    display: none;
}
.services-detail__title {
    margin: 0 0 0.375rem;
    font-family: var(--font-sans);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
}
.services-detail__description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-reading);
    margin: 0 0 0.5rem;
}
.services-detail__readmore {
    display: inline-flex;
}

/* Service detail page (Read more) */
.service-detail-page {
    padding: 0 clamp(1rem, 4vw, 2rem) 2rem;
    min-height: 50vh;
}
.service-detail-article__hero {
    position: relative;
    height: 40vh;
    min-height: 280px;
    overflow: hidden;
}
.service-detail-article__hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.service-detail-article__hero:hover img {
    transform: scale(1.03);
}
.service-detail-article__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, transparent 50%, rgba(232, 230, 227, 0.4) 85%, var(--color-bg) 100%);
}
.service-detail-article__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2rem clamp(1rem, 4vw, 2rem) 2.5rem;
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.service-detail-article__body {
    padding: 2rem clamp(1rem, 4vw, 2rem) 0;
    max-width: 42rem;
}
.service-detail-article__title--standalone {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-accent);
}
.service-detail-article__description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-reading);
    margin: 0 0 1.5rem;
}
.service-detail-article__footer {
    padding: 2rem clamp(1rem, 4vw, 2rem) 0;
}
.service-detail-article__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-accent);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s;
}
.service-detail-article__back:hover {
    color: var(--color-accent-hover);
}
.service-detail-article__back-icon {
    display: inline-flex;
    transition: transform 0.2s;
}
.service-detail-article__back:hover .service-detail-article__back-icon {
    transform: translateX(-3px);
}

/* Service examples (images, videos, audio, links) */
.service-detail-article__examples {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(28, 25, 23, 0.1);
}
.service-detail-article__examples-title {
    margin: 0 0 1rem;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
}
.service-detail-article__examples-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.service-example {
    margin: 0;
}
.service-example--image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius, 8px);
}
.service-example--image figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}
.service-example--video video,
.service-example--video iframe {
    display: block;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius, 8px);
}
.service-example--embed {
    margin: 0;
}
.service-example--embed iframe {
    border: none;
}
.service-example__caption {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--color-muted);
}
.service-example--audio audio {
    display: block;
    width: 100%;
    max-width: 20rem;
}
.service-example--link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.service-example--link:hover {
    color: var(--color-accent-hover);
}
.service-example__link-icon {
    display: inline-flex;
    flex-shrink: 0;
}


/* Our Partners (services page) */
.services-partners {
    padding: 2rem clamp(1rem, 4vw, 2rem) 1.5rem;
    margin: 1rem 0 0;
    border-top: 1px solid rgba(28, 25, 23, 0.08);
    border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}

.services-partners__container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-partners__title {
    margin: 0 0 0.375rem;
    font-family: var(--font-sans);
    font-size: clamp(1.375rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    letter-spacing: -0.02em;
}

.services-partners__subtitle {
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    color: var(--color-muted);
    text-align: center;
    font-weight: 500;
}

.services-partners__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-items: center;
    justify-items: center;
}

@media (min-width: 768px) {
    .services-partners__grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.25rem;
    }
}

.services-partners__card {
    display: block;
    width: 100%;
    max-width: 200px;
    text-decoration: none;
    color: var(--color-text);
    transition: transform var(--transition);
}

.services-partners__card:hover {
    transform: translateY(-4px);
}

.services-partners__card--no-link {
    cursor: default;
}

.services-partners__card--no-link:hover {
    transform: none;
}

.services-partners__card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.1);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    min-height: 100px;
}

.services-partners__card:hover .services-partners__card-inner {
    border-color: rgba(185, 28, 28, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.services-partners__card--no-link:hover .services-partners__card-inner {
    border-color: rgba(28, 25, 23, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.services-partners__logo {
    max-height: 56px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(50%) opacity(0.85);
    transition: filter var(--transition), transform var(--transition);
}

.services-partners__card:hover .services-partners__logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.services-partners__card--no-link:hover .services-partners__logo {
    filter: grayscale(50%) opacity(0.85);
    transform: none;
}

.services-partners__card--text .services-partners__card-inner {
    min-height: 80px;
    padding: 1rem;
}

.services-partners__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-muted);
    text-align: center;
    transition: color var(--transition);
}

.services-partners__card:hover .services-partners__name {
    color: var(--color-accent);
}

.services-partners__card--no-link:hover .services-partners__name {
    color: var(--color-muted);
}

/* Bottom CTA – inviting card */
.services-cta {
    margin-top: 1rem;
    padding: 1rem 0;
}

.services-cta__inner {
    padding: 1rem clamp(1rem, 4vw, 1.5rem);
    text-align: center;
}

.services-cta__title {
    margin: 0 0 0.25rem;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.services-cta__text {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-muted);
}

.services-cta__btn {
    display: inline-flex;
}
.services-page--netflix .services-cta {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
}
.services-page--netflix .services-cta__inner {
    padding: 1rem clamp(1rem, 4vw, 1.5rem);
    background: none;
    border-radius: 0;
    box-shadow: none;
}

/* ==========================================================================
   News article (single) – reading-optimized layout
   Order: container → header → media → excerpt → body → links → footer
   ========================================================================== */
.news-article {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 0.5rem;
}
@media (min-width: 1024px) {
    .news-article {
        max-width: 56rem;
        padding: 0 1.5rem;
    }
}

/* Header: category, type, title, byline */
.news-article__header {
    margin-bottom: 1.5rem;
}
.news-article__meta-top {
    margin: 0 0 0.4rem;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: var(--color-muted, #78716c);
}
.news-article__category,
.news-article__type {
    font-weight: 500;
}
.news-article__title {
    margin: 0 0 0.6rem;
    font-size: 1.75rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}
@media (min-width: 640px) {
    .news-article__title {
        font-size: 2rem;
    }
}
.news-article__byline {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--color-muted, #78716c);
}
.news-article__byline time {
    font-style: normal;
}
.news-article__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.news-article__author-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.news-article__author-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.3);
}
.news-article__author-avatar--placeholder svg {
    width: 24px;
    height: 24px;
}
.news-article__byline-text {
    margin: 0;
}

.news-article__author-name {
    color: var(--color-accent);
    text-decoration: none;
}
.news-article__author-name:hover {
    text-decoration: none;
    color: var(--color-accent-hover);
}

.card-author-name {
    color: var(--color-accent);
}

/* Hero: excerpt (words) + featured image; on mobile image first, then text; on large screens words left, image right */
.news-article__hero {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}
.news-article__hero-media {
    order: -1;
    margin-bottom: 1rem;
}
.news-article__hero-media:last-child {
    margin-bottom: 0;
}
.news-article__hero-media .news-article__media {
    margin-bottom: 0;
}
.news-article__hero-media .news-article__media {
    background: transparent;
    border-radius: 0;
    overflow: visible;
}
.news-article__hero-media .news-article__media img {
    border-radius: 0;
}
.news-article__hero .news-article__hero-p {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-reading);
    font-family: var(--font-serif);
}
.news-article__hero .news-article__hero-p:last-child {
    margin-bottom: 0;
}
@media (min-width: 1024px) {
    .news-article__hero {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    .news-article__hero .news-article__hero-text {
        flex: 1;
        min-width: 0;
        order: 0;
    }
    .news-article__hero .news-article__excerpt {
        margin: 0 0 1rem;
    }
    .news-article__hero-media {
        order: 0;
        flex-shrink: 0;
        width: 42%;
        max-width: 380px;
        margin: 0;
    }
    .news-article__hero .news-article__media img {
        width: 100%;
        max-height: none;
        object-fit: contain;
        object-position: center top;
    }
}

/* Featured image – full image, no crop; when not in hero (e.g. no excerpt) */
.news-article__media {
    margin-bottom: 1.5rem;
    border-radius: var(--radius, 8px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
}
.news-article__media img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}
/* When media is inside hero: on mobile use cover (fill width); on desktop show full image */
.news-article__hero .news-article__media img {
    object-fit: contain;
    max-height: 420px;
}
@media (max-width: 1023px) {
    .news-article__hero .news-article__media img {
        object-fit: cover;
        min-height: 220px;
        max-height: 50vh;
    }
}
@media (min-width: 1024px) {
    .news-article__hero .news-article__media img {
        max-height: none;
    }
}

/* Excerpt */
.news-article__excerpt {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--color-reading);
}

/* Subtitle: short heading between paragraphs */
.news-article__subtitle {
    margin: 0.25rem 0 1rem;
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--color-accent);
}
.news-article__hero .news-article__subtitle {
    margin: 0.25rem 0 1rem;
}
.news-article__body .news-article__subtitle {
    margin: 0.25rem 0 1rem;
}

/* Body: paragraphs, lists, headings, inline media, embeds */
.news-article__body {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    color: var(--color-reading);
    font-family: var(--font-serif);
}
@media (min-width: 1024px) {
    .news-article__body::after {
        content: "";
        display: table;
        clear: both;
    }
}
.news-article__body p {
    margin: 0 0 1.125rem;
}
.news-article__body p:last-child {
    margin-bottom: 0;
}
/* Paragraphs typed in all uppercase use accent color */
.news-article__body p.news-article__p--uppercase,
.news-article__hero-p.news-article__p--uppercase {
    color: var(--color-accent);
}
.news-article__body p + .news-article__embed,
.news-article__body .news-article__inline-media + .news-article__embed {
    margin-top: 0.25rem;
}
.news-article__body a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.news-article__body a:hover {
    color: var(--color-accent-hover);
}
.news-article__body ul,
.news-article__body ol {
    margin: 0 0 1.125rem;
    padding-left: 1.5rem;
}
.news-article__body li {
    margin-bottom: 0.35rem;
}
.news-article__body li:last-child {
    margin-bottom: 0;
}
.news-article__body h2,
.news-article__body h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--color-text);
}
.news-article__body h2:first-child,
.news-article__body h3:first-child {
    margin-top: 0;
}

/* Inline images (between paragraphs) – smaller than hero; on large screens alternate left/right with text */
.news-article__inline-media {
    margin: 1.5rem 0;
}
.news-article__inline-media img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: var(--radius, 8px);
}
.news-article__inline-media figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--color-muted, #78716c);
    font-family: var(--font-sans);
    font-style: italic;
}
.news-article__image-caption {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--color-muted, #78716c);
    font-family: var(--font-sans);
    font-style: italic;
}
@media (min-width: 1024px) {
    .news-article__body .news-article__inline-media:nth-of-type(odd) {
        clear: both;
        float: left;
        width: 38%;
        max-width: 280px;
        margin: 0 1.75rem 1rem 0;
    }
    .news-article__body .news-article__inline-media:nth-of-type(even) {
        clear: both;
        float: right;
        width: 38%;
        max-width: 280px;
        margin: 0 0 1rem 1.75rem;
    }
    .news-article__body .news-article__inline-media img {
        max-height: 320px;
    }
}

/* Video embeds (YouTube, Vimeo, TikTok) – 16:9 responsive, no card bg */
.news-article__embed {
    margin: 0 0 1.5rem;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: transparent !important;
    border: none;
    box-shadow: none;
}
@media (min-width: 1024px) {
    .news-article__embed {
        clear: both;
    }
}
.news-article__embed--youtube {
    max-width: min(42rem, 640px);
}
.news-article__embed::before {
    content: "";
    display: block;
    padding-bottom: 56.25%; /* 16:9 default */
    background: transparent;
}
/* TikTok: vertical 9:16, no card bg – iframe fills container */
.news-article__embed--tiktok {
    max-width: 325px;
}
.news-article__embed--tiktok::before {
    padding-bottom: 177.78%; /* 9:16 vertical */
}
/* Twitter/X: variable height, card width – rules must come after base iframe so they override */
.news-article__embed--twitter {
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}
.news-article__embed--twitter::before {
    display: none;
}
.news-article__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    display: block;
}
.news-article__embed--twitter iframe {
    position: static;
    width: 100%;
    min-height: 300px;
    display: block;
    border-radius: var(--radius, 8px);
}

/* Related links */
.news-article__links {
    margin-top: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.news-article__links-title {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--color-muted, #78716c);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.news-article__links-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.news-article__link-item {
    margin: 0;
}
.news-article__link-a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: var(--color-surface, #f5f4f2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius, 8px);
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.news-article__link-a:hover {
    background: rgba(185, 28, 28, 0.06);
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.news-article__link-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(185, 28, 28, 0.1);
    color: var(--color-accent);
}
.news-article__link-a:hover .news-article__link-icon {
    background: var(--color-accent);
    color: #fff;
}
.news-article__link-icon svg {
    width: 14px;
    height: 14px;
}
.news-article__link-text {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}
.news-article__link-a:hover .news-article__link-text {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Was this helpful? */
.news-article__helpful {
    margin-top: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.news-article__helpful-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}
.news-article__helpful-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.news-article__helpful-btn {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.news-article__helpful-btn--yes {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.35);
    color: #15803d;
}
.news-article__helpful-btn--yes:hover {
    background: rgba(22, 163, 74, 0.18);
    border-color: #16a34a;
}
.news-article__helpful-btn--no {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--color-text);
}
.news-article__helpful-btn--no:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}
.news-article__helpful-btn:disabled {
    opacity: 0.7;
    cursor: default;
}
.news-article__helpful-counts {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
}
.news-article__helpful-thanks {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
}

/* Footer: back link (matches admin edit news back button) */
.news-article__footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.news-article__back {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    background: rgba(0, 0, 0, 0.03);
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.news-article__back:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}
.news-article__back:hover .news-article__back-icon {
    transform: translateX(-2px);
}
.news-article__back:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.news-article__back:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.news-article__back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    transition: transform 0.25s var(--ease-out);
}
.news-article__back-icon svg {
    display: block;
}

/* Media pages: audio/video player blocks, visualizer controls, downloads */
.news-media-page {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}
.news-media-header {
    margin-bottom: 1rem;
}
.news-media-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.news-media-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
}
.news-media-meta {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--color-muted);
}
.news-media-tabs {
    display: inline-flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0;
    background: transparent;
    border: none;
}
.news-media-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.2s ease;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.news-media-tab:link,
.news-media-tab:visited {
    color: var(--color-text);
}
.news-media-tab:hover {
    background: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.news-media-tab.is-active {
    color: var(--color-accent);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-accent);
}
.news-media-feature {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}
.news-media-player {
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.news-media-player--audio {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
}
.news-media-audio-cover img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.news-media-audio-controls audio,
.news-media-player--ratio video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    outline: none;
}
.news-media-player--ratio {
    position: relative;
    padding: 0.75rem;
}
.news-audio-visualizer {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    background: transparent;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.news-audio-visualizer.is-visible {
    opacity: 1;
    transform: scale(1);
}
.news-media-viz-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.6rem 0 0.9rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-surface, #faf9f7);
    border: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 9999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
.project-detail .news-media-viz-controls,
.news-article .news-media-viz-controls {
    background: var(--color-surface, #faf9f7);
    border-color: rgba(28, 25, 23, 0.08);
}
.news-media-viz-controls label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
}
.news-media-viz-controls select {
    min-height: 34px;
    padding: 0.35rem 2rem 0.35rem 0.6rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 9999px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c1917' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}
.news-media-viz-controls #news-viz-mode {
    border-radius: 9999px !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}
.news-media-viz-controls select:hover,
.news-media-viz-controls select:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: none;
}
.news-media-viz-controls button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.22);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.project-detail .news-media-viz-controls button,
.news-article .news-media-viz-controls button {
    background: var(--color-accent);
    color: #fff;
}
.news-media-viz-controls #news-viz-shuffle {
    background: var(--color-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9999px !important;
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.22) !important;
}
.news-media-viz-controls button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 10px 22px rgba(185, 28, 28, 0.28);
}
.news-media-viz-controls #news-viz-shuffle::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h3v3'/%3E%3Cpath d='M4 20l7-7 4-4'/%3E%3Cpath d='M21 16v3h-3'/%3E%3Cpath d='M4 4l7 7 4 4'/%3E%3C/svg%3E") no-repeat center / 14px 14px;
}
.news-media-actions {
    margin-top: 0.5rem;
}
.news-media-actions .news-media-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: rgba(0, 0, 0, 0.03);
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.news-media-actions .news-media-download:hover {
    background: rgba(185, 28, 28, 0.06);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}
.news-media-actions .news-media-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(185, 28, 28, 0.1);
    color: var(--color-accent);
}
.news-media-actions .news-media-download:hover .news-media-download-icon {
    background: var(--color-accent);
    color: #fff;
}

 .project-detail__media {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    background: #000;
}
.project-detail__video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.project-detail__video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.project-detail__audio-player {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.project-detail__audio-cover {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.project-detail__audio-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: filter, transform;
}
.project-detail__audio-controls {
    width: 100%;
}
.project-detail__audio-controls audio {
    width: 100%;
    height: 48px;
}
.project-detail__creator-photo {
    width: clamp(72px, 22vw, 120px);
    aspect-ratio: 1 / 1;
    margin: 0.5rem 0 0.75rem;
    border-radius: 50%;
    overflow: hidden;
}
.project-detail__creator-photo a {
    display: inline-block;
    width: 100%;
    height: 100%;
}
.project-detail__creator-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    transition: transform 0.2s ease;
}
.project-detail__creator-photo a:hover img {
    transform: scale(1.03);
}
.project-detail__creator-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    color: var(--color-muted);
}
.project-detail__audio-cover img.is-blurred {
    filter: blur(var(--viz-blur, 8px)) brightness(0.7);
    transform: scale(var(--viz-scale, 1.06));
}
.project-detail__file-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.project-detail__file-download:hover {
    background: rgba(185, 28, 28, 0.06);
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-1px);
}
.project-detail__file-download::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(185, 28, 28, 0.1);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231c1917' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231c1917' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.project-detail__file-download:hover::before {
    background: var(--color-accent);
}
.project-detail__breadcrumb {
    margin-bottom: 0.75rem;
}
.project-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    text-decoration: none;
    color: var(--color-muted);
    border: 1px solid rgba(28, 25, 23, 0.15);
    border-radius: 9999px;
    background: rgba(28, 25, 23, 0.04);
    transition: transform 0.15s var(--ease-out, ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.project-detail__back:hover {
    transform: translateY(-1px);
    background: rgba(28, 25, 23, 0.08);
    color: var(--color-accent);
    border-color: rgba(185, 28, 28, 0.3);
}
.project-detail__back:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.project-detail__back svg {
    width: 16px;
    height: 16px;
}
.project-detail__creator-info {
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid rgba(28, 25, 23, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.project-detail__creator-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1rem;
    align-items: start;
}
@media (min-width: 640px) {
    .project-detail__creator-details {
        grid-template-columns: 120px 1fr;
    }
    .project-detail__creator-photo {
        grid-column: 1;
        grid-row: 1 / span 3;
    }
    .project-detail__creator-name,
    .project-detail__creator-bio,
    .project-detail__creator-contact {
        grid-column: 2;
    }
}
@media (min-width: 1024px) {
    .project-detail__creator-info {
        padding: 1.25rem;
    }
    .project-detail__creator-details {
        grid-template-columns: 160px 1fr;
        gap: 1rem 1.25rem;
    }
    .project-detail__creator-photo {
        width: 160px;
    }
}
.project-detail__creator-name {
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.project-detail__creator-bio {
    margin: 0.25rem 0 0.5rem;
    line-height: 1.6;
}
.project-detail__creator-contact { margin-top: 0.5rem; }
/* Accent pill button for contact reveal/link */
.project-detail__contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    color: #fff;
    background: var(--color-accent);
    border: none;
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.22);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.project-detail__contact-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 10px 22px rgba(185, 28, 28, 0.28);
}
.project-detail__contact-link:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(185, 28, 28, 0.20);
}
.project-detail__contact-link.is-active,
.project-detail__contact-link[aria-expanded="true"] {
    filter: brightness(1.02);
}
.project-detail__contact-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.project-detail__contact-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}
.project-detail__contact-reveal {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(28, 25, 23, 0.12);
    border-radius: var(--radius);
    background: rgba(28, 25, 23, 0.03);
}
.project-detail__contact-reveal-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.5;
}
.project-detail__contact-reveal-text a.project-detail__contact-inline-link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}
.project-detail__contact-reveal-text a.project-detail__contact-inline-link:hover {
    text-decoration: underline;
}
/* Make creator name link look like normal text */
.project-detail__creator-name a {
    color: inherit;
    text-decoration: none;
}
.project-detail__creator-name a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}
/* Responsive alignment like project detail pages */
@media (max-width: 640px) {
    .news-media-player--audio {
        grid-template-columns: 1fr;
    }
    .news-media-audio-cover img {
        height: 160px;
        width: 100%;
        object-fit: cover;
        margin-bottom: 0.5rem;
    }
}
@media (min-width: 1024px) {
    .news-media-page {
        padding: 0 1.5rem;
    }
    .news-media-player--audio {
        grid-template-columns: 160px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    .news-audio-visualizer {
        height: 100px;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Public auth pages – compact card with animations */
.login-page {
    --auth-card-padding: 1rem;
    max-width: 20rem;
    width: 100%;
    margin: 0 auto 1rem;
    padding: var(--auth-card-padding);
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid rgba(28, 25, 23, 0.08);
    box-shadow: 0 4px 24px rgba(28, 25, 23, 0.06), 0 1px 3px rgba(28, 25, 23, 0.04);
    animation: authCardIn 0.5s var(--ease-out) backwards;
}

.login-page .page-title {
    margin: 0 0 0.625rem;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.login-page .msg-success,
.login-page .msg-error {
    margin-bottom: 0.5rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: var(--radius-sm);
    animation: authMessageIn 0.35s var(--ease-out) backwards;
}

.login-page .msg-success {
    color: #166534;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.login-page .msg-error {
    color: var(--color-accent);
    background: rgba(185, 28, 28, 0.06);
    border: 1px solid rgba(185, 28, 28, 0.15);
}

.login-form {
    animation: authMessageIn 0.4s var(--ease-out) 0.08s backwards;
}

.login-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text);
}

.login-form input {
    width: 100%;
    padding: 0.4375rem 0.5625rem;
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.12);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}

.login-form input:hover {
    border-color: rgba(28, 25, 23, 0.2);
}

.login-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
    transform: translateY(-1px);
}

.login-form button {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.login-form button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.login-form button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(185, 28, 28, 0.2);
}

.login-form button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Contact page */
.contact-page {
    max-width: 32rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.contact-info {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border: 1px solid rgba(28, 25, 23, 0.08);
}

.contact-info__title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.contact-info__details {
    display: grid;
    gap: 0.5rem;
}

.contact-info__line {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.contact-info__line a {
    color: var(--color-accent);
    text-decoration: none;
}

.contact-info__line a:hover {
    text-decoration: underline;
}

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

.contact-info__socials {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(28, 25, 23, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-info__socials a {
    font-size: 0.875rem;
    color: var(--color-muted);
    text-decoration: none;
}

.contact-info__socials a:hover {
    color: var(--color-accent);
}

.contact-page__intro {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.contact-page .msg-success,
.contact-page .msg-error {
    margin-bottom: 1rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
    line-height: 1.4;
    border-radius: var(--radius-sm);
}

.contact-page .msg-success {
    color: #166534;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.contact-page .msg-error {
    color: var(--color-accent);
    background: rgba(185, 28, 28, 0.06);
    border: 1px solid rgba(185, 28, 28, 0.15);
}

.contact-form__row {
    margin-bottom: 1rem;
}

.contact-form__row label {
    display: block;
    margin-bottom: 0.3rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
}

.contact-form__row input,
.contact-form__row textarea {
    width: 100%;
    padding: 0.5rem 0.65rem;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid rgba(28, 25, 23, 0.15);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form__row textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form__row input:focus,
.contact-form__row textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.contact-form__actions {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.contact-form__actions .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.contact-form__actions .btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.contact-page__back {
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.contact-page__back a {
    color: var(--color-muted);
    text-decoration: none;
}

.contact-page__back a:hover {
    color: var(--color-accent);
}

/* About page (public) */
.about-page {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 var(--body-margin-h);
}

.about-page__header {
    margin-bottom: 1.5rem;
}

.about-page__image-wrap {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface);
}

.about-page__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

.about-page__body.prose {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-reading, var(--color-text));
}

.about-page__body.prose p {
    margin: 0 0 1rem;
}

.about-page__body.prose h2 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
}

.about-page__body.prose h3 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
}

.about-page__body.prose a {
    color: var(--color-accent);
    text-decoration: none;
}

.about-page__body.prose a:hover {
    text-decoration: underline;
}

.about-page__body.prose ul,
.about-page__body.prose ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.about-page__empty {
    color: var(--color-muted);
    font-style: italic;
}

.about-page__back {
    margin-top: 2rem;
    font-size: 0.875rem;
}

.about-page__back a {
    color: var(--color-muted);
    text-decoration: none;
}

.about-page__back a:hover {
    color: var(--color-accent);
}

/* About template: Hero (full-width image + overlay title) */
.about-page--hero {
    max-width: none;
    padding: 0;
}
.about-page__hero-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
}
.about-page__hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}
.about-page__hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}
.about-page__hero-title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.about-page__body--constrained {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 var(--body-margin-h);
}
.about-page__hero-fallback {
    padding: 0 var(--body-margin-h);
}

/* About template: Minimal (centered, narrow) */
.about-page--minimal {
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
}
.about-page--minimal .about-page__header {
    margin-bottom: 1.25rem;
}
.about-page--minimal .about-page__body.prose {
    text-align: left;
}

/* About template: Side by side (image left, content right) */
.about-page--side {
    max-width: 56rem;
    margin: 0 auto;
}
.about-page__header--full {
    margin-bottom: 1.5rem;
}
.about-page__side-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 768px) {
    .about-page__side-grid {
        grid-template-columns: 1fr;
    }
}
.about-page__side-image-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface);
}
.about-page__side-image-wrap .about-page__image {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
}
.about-page__side-body {
    min-width: 0;
}

/* About page – Our Members (editor/admin users) */
.about-members {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.about-members__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.about-members__list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0.25rem 0 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.about-members__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    flex-shrink: 0;
    min-width: 110px;
}
.about-members__link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.about-members__link:hover .about-members__avatar {
    border-color: rgba(185, 28, 28, 0.25);
}
.about-members__link:hover .about-members__name {
    color: var(--color-accent);
}
.about-members__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-surface);
    border: 2px solid rgba(0, 0, 0, 0.06);
}
.about-members__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-members__avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-muted);
    background: rgba(0, 0, 0, 0.04);
}
.about-members__avatar-placeholder svg {
    width: 48px;
    height: 48px;
}
.about-members__name {
    font-size: 0.9rem;
    font-weight: 500;
    word-break: break-word;
}
.about-members__position {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 0.15rem;
}

.login-divider {
    margin: 0.875rem 0 0.75rem;
    font-size: 0.75rem;
    color: var(--color-muted);
    text-align: center;
    position: relative;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 1.5rem);
    height: 1px;
    background: rgba(28, 25, 23, 0.1);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4375rem;
    width: 100%;
    padding: 0.4375rem 0.75rem;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.12);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn-google:hover {
    border-color: rgba(28, 25, 23, 0.35);
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.08);
    transform: translateY(-1px);
}

.btn-google:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn-google img {
    flex-shrink: 0;
}

.login-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(28, 25, 23, 0.08);
    font-size: 0.75rem;
    line-height: 1.5;
}

.login-footer a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.login-footer a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* Account page (logged-in user) – compact */
.site-main:has(.account-page) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 10rem);
    padding: 0.5rem 0.75rem 1rem;
}

.account-page {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

.account-page .page-title {
    margin-bottom: 0.35rem;
    font-size: 1.125rem;
}

.account-page .msg-success {
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    color: #166534;
    background: rgba(22, 163, 74, 0.1);
    border-radius: var(--radius-sm);
}

.account-page .msg-error {
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    color: var(--color-accent);
    background: rgba(185, 28, 28, 0.06);
    border-radius: var(--radius-sm);
}

.account-card {
    padding: 0.75rem 0.875rem;
    margin-bottom: 0.5rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid rgba(28, 25, 23, 0.08);
    box-shadow: 0 2px 12px rgba(28, 25, 23, 0.05);
}

.account-card-title {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Profile header: avatar + summary side by side */
.account-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}

.account-profile-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.account-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(0, 0, 0, 0.25);
}

.account-profile-avatar-placeholder svg {
    width: 40px;
    height: 40px;
}

.account-profile-summary {
    flex: 1;
    min-width: 0;
}

.account-profile-summary .account-welcome {
    margin-top: 0;
}

.account-profile-summary .account-details {
    margin-bottom: 0;
}

.account-welcome {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    color: var(--color-text);
}

.account-details {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
}

.account-details dt {
    margin-top: 0.25rem;
    font-weight: 600;
    color: var(--color-muted);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-details dt:first-child {
    margin-top: 0;
}

.account-details dd {
    margin: 0.1rem 0 0;
}

.account-field-hint {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    color: var(--color-muted, #78716c);
}

.account-username-readonly {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    color: var(--color-text);
}

/* Form groups and legends */
.account-form-group {
    margin: 0 0 1.25rem;
    padding: 0;
    border: none;
}

.account-form-group:last-of-type {
    margin-bottom: 1rem;
}

.account-form-legend {
    display: block;
    margin: 0 0 0.6rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-form-group-hint {
    margin-bottom: 0.35rem;
}

.account-form-actions {
    margin-top: 0.5rem;
}

.account-label--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.account-form label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text);
}

.account-form input {
    width: 100%;
    padding: 0.28rem 0.4rem;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #fff;
    border: 1px solid rgba(28, 25, 23, 0.12);
    border-radius: var(--radius-sm);
}

.account-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.account-form button {
    margin-top: 0.05rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.account-form button:hover {
    background: var(--color-accent-hover);
}

/* Account profile image (upload / replace / remove) */
.account-profile-image-block {
    margin-bottom: 0.75rem;
}
.account-profile-image-block .account-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-text);
}
.account-profile-image-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.account-upload-placeholder {
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.account-upload-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.account-upload-placeholder--profile {
    width: 100px;
    height: 100px;
    padding: 0;
    border: 2px dashed rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}
.account-upload-placeholder--profile:hover,
.account-upload-placeholder--profile.account-upload-placeholder--drag {
    border-color: var(--color-accent);
    background: rgba(185, 28, 28, 0.06);
}
.account-upload-placeholder--profile:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.account-upload-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    position: absolute;
    inset: 0;
    text-align: center;
    color: var(--color-muted);
    pointer-events: none;
}
.account-upload-placeholder-content[aria-hidden="true"] {
    display: none;
}
.account-profile-image-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(0, 0, 0, 0.35);
}
.account-profile-image-icon svg {
    width: 36px;
    height: 36px;
}
.account-upload-placeholder--profile .account-upload-text {
    font-size: 0.625rem;
    font-weight: 500;
    max-width: 80px;
    line-height: 1.2;
    color: var(--color-text);
}
.account-upload-preview {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}
.account-upload-preview:not([aria-hidden="true"]) {
    display: flex;
}
.account-upload-preview--profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.account-profile-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.account-upload-action {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    font-family: var(--font-sans);
    color: var(--color-accent);
    background: transparent;
    border: 1px solid rgba(185, 28, 28, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.account-upload-action:hover {
    background: rgba(185, 28, 28, 0.08);
    border-color: var(--color-accent);
}
.account-upload-action--remove:hover {
    color: #dc2626;
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

.account-actions {
    margin: 0;
    font-size: 0.75rem;
}

.account-actions a {
    color: var(--color-accent);
    text-decoration: none;
}

.account-actions a:hover {
    text-decoration: underline;
}

.account-actions-sep {
    margin: 0 0.2rem;
    color: var(--color-muted);
}

.account-footer {
    margin-top: 0.35rem;
    font-size: 0.75rem;
}

.account-footer a {
    color: var(--color-accent);
    text-decoration: none;
}

.account-footer a:hover {
    text-decoration: underline;
}

/* Auth pages – responsive (compact, touch-friendly) */
@media (max-width: 768px) {
    .site-main:has(.login-page) {
        padding: 0.75rem 0.625rem 1.5rem;
    }

    .login-page {
        max-width: none;
        --auth-card-padding: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .login-page .page-title {
        font-size: 1.125rem;
        margin-bottom: 0.625rem;
    }

    .login-page .msg-success,
    .login-page .msg-error {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
        margin-bottom: 0.625rem;
    }

    .login-form label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .login-form input {
        padding: 0.5625rem 0.625rem;
        margin-bottom: 0.625rem;
        font-size: 16px;
        min-height: 44px;
        -webkit-appearance: none;
        appearance: none;
    }

    .login-form button {
        padding: 0.5625rem 0.875rem;
        min-height: 44px;
        font-size: 0.8125rem;
    }

    .btn-google {
        padding: 0.5625rem 0.75rem;
        min-height: 44px;
        font-size: 0.8125rem;
        margin-bottom: 0.625rem;
    }

    .login-footer {
        margin-top: 0.625rem;
        padding-top: 0.625rem;
        font-size: 0.75rem;
    }

    .login-footer a {
        display: inline-block;
        padding: 0.25rem 0;
    }

    .login-footer a + br + a {
        margin-top: 0.2rem;
    }
}

/* Search page */
.search-page .page-title {
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s var(--ease-out) backwards;
}

.search-hero {
    margin-top: 0;
    padding: 0;
    text-align: center;
    animation: fadeInUp 0.6s var(--ease-out) 0.1s backwards;
}

.search-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    color: var(--color-accent);
    animation: searchHeroFloat 3s ease-in-out infinite;
}

.search-hero-icon svg {
    width: 40px;
    height: 40px;
}

.search-hero-text {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-muted);
    margin: 0 0 0.75rem;
    animation: fadeInUp 0.5s var(--ease-out) 0.2s backwards;
}

.search-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.search-hero-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: transparent;
    border: 1px solid rgba(185, 28, 28, 0.25);
    border-radius: 999px;
    transition: transform 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease;
    animation: searchHeroTagIn 0.45s var(--ease-out) backwards;
}

.search-hero-tag:nth-child(1) { animation-delay: 0.2s; }
.search-hero-tag:nth-child(2) { animation-delay: 0.26s; }
.search-hero-tag:nth-child(3) { animation-delay: 0.32s; }
.search-hero-tag:nth-child(4) { animation-delay: 0.38s; }
.search-hero-tag:nth-child(5) { animation-delay: 0.44s; }
.search-hero-tag:nth-child(6) { animation-delay: 0.5s; }

a.search-hero-tag {
    text-decoration: none;
}

.search-hero-tag:hover {
    background: rgba(185, 28, 28, 0.08);
    color: var(--color-accent-hover);
    transform: translateY(-1px);
}

.search-page-form {
    margin-bottom: 1.5rem;
    display: none;
}

.search-page-form-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 420px;
    min-height: 48px;
    padding: 0 0 0 1rem;
    background: var(--color-surface);
    border: 1px solid rgba(28, 25, 23, 0.12);
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-page-form:focus-within .search-page-form-wrap {
    border-color: rgba(185, 28, 28, 0.35);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.75rem 0.75rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-radius: 999px;
}

.search-page-form input::placeholder {
    color: var(--color-muted);
}

.search-page-form input:focus {
    outline: none;
}

.search-page-form-btn {
    flex-shrink: 0;
    padding: 0 1.25rem;
    height: 40px;
    margin: 0 4px 0 0;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-page-form-btn:hover {
    background: var(--color-accent-hover);
}

.search-page-form-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.search-page-form-btn--clear {
    background: transparent;
    color: var(--color-muted);
}

.search-page-form-btn--clear:hover {
    background: rgba(28, 25, 23, 0.06);
    color: var(--color-text);
}

.search-empty-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.search-empty-wrap .search-empty {
    margin: 0;
}

.search-clear-btn {
    padding: 0.4rem 0.85rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    background: rgba(185, 28, 28, 0.08);
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-clear-btn:hover {
    background: rgba(185, 28, 28, 0.12);
    color: var(--color-accent-hover);
}

.search-clear-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .search-page-form {
        display: block;
    }

    .search-page-form-wrap {
        max-width: none;
        min-height: 52px;
        padding-left: 1.25rem;
    }

    .search-page-form input {
        font-size: 16px;
    }

    .search-page-form-btn {
        height: 44px;
        padding: 0 1.5rem;
    }
}

.search-hint,
.search-empty {
    color: var(--color-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.4s var(--ease-out) backwards;
}

.search-count {
    color: var(--color-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.search-results {
    margin-top: 1.5rem;
}

.search-section {
    margin-bottom: 1.5rem;
}

.search-section-title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    color: var(--color-accent);
}

.search-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-list li {
    margin-bottom: 0.5rem;
}

.search-list a {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--color-text);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.search-list a:hover {
    border-color: rgba(185, 28, 28, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-result-title {
    display: block;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--color-accent);
    transition: color 0.2s ease;
}

.search-list a:hover .search-result-title {
    color: var(--color-accent-hover);
}

.search-result-snippet {
    display: block;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.search-result-title mark,
.search-result-snippet mark {
    background: rgba(185, 28, 28, 0.15);
    color: inherit;
    padding: 0.05em 0.15em;
    border-radius: 2px;
}

.live-search-results mark {
    background: rgba(185, 28, 28, 0.15);
    color: inherit;
    padding: 0.05em 0.1em;
    border-radius: 2px;
}

.projects-grid {
    animation: fadeIn 0.6s ease-out;
    gap: 1rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: cardSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.3s; }
.project-card:nth-child(7) { animation-delay: 0.35s; }
.project-card:nth-child(8) { animation-delay: 0.4s; }

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(185, 28, 28, 0.2);
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    border-radius: 10px 10px 0 0;
}

.project-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card-image img {
    transform: scale(1.1);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-card-overlay {
    opacity: 1;
}

.project-card-type-icon {
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.project-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.project-card-placeholder--audio {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-card-body {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-card-category {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(185, 28, 28, 0.1);
    color: var(--color-accent, #b91c1c);
    border-radius: 14px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.project-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: var(--color-text, #1c1917);
    transition: color 0.3s ease;
}

.project-card:hover .project-card-title {
    color: var(--color-accent, #b91c1c);
}

.project-card-description {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-muted, #78716c);
    margin: 0;
    flex: 1;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.project-card-creator {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-muted, #78716c);
}

.project-card-creator svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.project-card-type {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-muted, #78716c);
    text-transform: capitalize;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}

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

@media (max-width: 639px) {
    .projects-page {
        padding: 0.75rem 0.75rem;
    }
    
    .projects-header {
        margin-bottom: 1rem;
    }
    
    .projects-filters-modern {
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    .projects-filters-label {
        margin-bottom: 0.5rem;
    }
    
    .projects-filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.5rem;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .projects-filter-buttons::-webkit-scrollbar {
        display: none;
    }
    
    .project-card-image {
        height: 200px;
    }
    
    .project-card-body {
        padding: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .project-card-image {
        height: 240px;
    }
}

@media (min-width: 1280px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .project-card-image {
        height: 240px;
    }
}

.site-footer {
    margin-top: auto;
    margin-left: calc(-1 * var(--body-margin-h));
    margin-right: calc(-1 * var(--body-margin-h));
    padding: 1.5rem var(--body-margin-h);
    border-top: 1px solid rgba(28, 25, 23, 0.1);
    background: var(--color-surface);
}

.site-footer .container.site-footer__inner {
    padding-left: 0;
    padding-right: 0;
}

.site-footer__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    max-width: 36rem;
    margin: 0 auto;
}

/* Newsletter block in footer – centered */
.site-footer__center .newsletter-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.newsletter-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
}

.newsletter-msg {
    width: 100%;
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
}

.newsletter-msg--success {
    color: #166534;
}

.newsletter-msg--error {
    color: var(--color-accent);
}

.newsletter-form {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
}

.newsletter-form input {
    width: 12rem;
    min-width: 0;
    padding: 0.4rem 0.65rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid rgba(28, 25, 23, 0.15);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form input::placeholder {
    color: var(--color-muted);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.12);
}

.newsletter-form button {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--color-accent-hover);
}

.newsletter-form button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.site-footer__center .newsletter-form {
    justify-content: center;
}

/* Footer contact block – centered */
.site-footer-contact {
    padding-top: 1rem;
    border-top: 1px solid rgba(28, 25, 23, 0.1);
    width: 100%;
}

.site-footer-contact__line {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.site-footer-contact__line a {
    color: var(--color-accent);
    text-decoration: none;
}

.site-footer-contact__line a:hover {
    color: var(--color-accent-hover);
}

/* Footer social block – centered */
.site-footer-social {
    padding-top: 1rem;
    border-top: 1px solid rgba(28, 25, 23, 0.1);
    width: 100%;
}

.site-footer-social__title {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.site-footer-social__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}

.site-footer-social__links a {
    font-size: 0.875rem;
    color: var(--color-muted);
    text-decoration: none;
}

.site-footer-social__links a:hover {
    color: var(--color-accent);
}

.site-footer-copy {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.site-footer a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--color-accent-hover);
}

.site-footer a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Logout confirmation modal */
.logout-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(28, 25, 23, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease-out), visibility 0.25s var(--ease-out);
}

.logout-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.logout-modal {
    font-family: var(--font-sans);
    background: var(--color-surface);
    color: var(--color-text);
    max-width: 22rem;
    width: 100%;
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(28, 25, 23, 0.18), 0 0 0 1px rgba(28, 25, 23, 0.06);
    transform: scale(0.96) translateY(8px);
    transition: transform 0.3s var(--ease-out);
}

.logout-modal-overlay.is-visible .logout-modal {
    transform: scale(1) translateY(0);
}

.logout-modal-title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logout-modal-text {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.logout-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.logout-modal-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

.logout-modal-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.logout-modal-btn--cancel {
    background: transparent;
    color: var(--color-muted);
    border: 1px solid rgba(28, 25, 23, 0.2);
}

.logout-modal-btn--cancel:hover {
    background: rgba(28, 25, 23, 0.06);
    color: var(--color-text);
    border-color: rgba(28, 25, 23, 0.25);
}

.logout-modal-btn--confirm {
    background: var(--color-accent);
    color: #fff;
    border: none;
}

.logout-modal-btn--confirm:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Password field with show/hide toggle */
.password-toggle-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.password-toggle-wrap input {
    padding-right: 2.5rem;
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin: 0;
}

/* Keep spacing below the field but let wrap height = input height so the eye centers */
.password-toggle-wrap {
    margin-bottom: 0.75rem;
}

/* Override form input margin when inside wrap so wrap height = input height */
body.site.admin .password-toggle-wrap input,
.admin .password-toggle-wrap input,
.login-form .password-toggle-wrap input,
.account-form .password-toggle-wrap input {
    margin-bottom: 0;
}

.password-toggle-btn {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--color-muted, #78716c);
    cursor: pointer;
    transition: color var(--transition, 0.2s ease), opacity 0.2s ease;
    pointer-events: auto;
}

/* Prevent login/account form submit styles from affecting the eye toggle (match admin look) */
.login-form .password-toggle-btn,
.account-form .password-toggle-btn {
    width: 20px;
    min-width: 20px;
    height: 20px;
    padding: 0;
    margin-top: 0;
    font-size: inherit;
    font-weight: inherit;
    color: var(--color-muted, #78716c);
    background: transparent !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(-50%);
}

.login-form .password-toggle-btn:hover,
.account-form .password-toggle-btn:hover {
    color: var(--color-accent, #b91c1c);
    background: transparent !important;
    box-shadow: none;
    transform: translateY(-50%);
}

.login-form .password-toggle-btn:active,
.account-form .password-toggle-btn:active {
    box-shadow: none;
    transform: translateY(-50%);
}

.login-form .password-toggle-btn:focus-visible,
.account-form .password-toggle-btn:focus-visible {
    outline: 2px solid var(--color-accent, #b91c1c);
    outline-offset: 2px;
    background: transparent !important;
}

.password-toggle-btn:hover {
    color: var(--color-accent, #b91c1c);
}

.password-toggle-btn:focus-visible {
    outline: 2px solid var(--color-accent, #b91c1c);
    outline-offset: 2px;
}

.password-toggle-btn svg {
    display: block;
    width: 14px;
    height: 14px;
}

/* Hide eye when field is empty */
.password-toggle-wrap.is-empty .password-toggle-btn {
    opacity: 0;
    pointer-events: none;
}

.media-modal-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 10, 18, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9999;
}
.media-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.media-modal {
    width: min(92vw, 520px);
    max-width: 520px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.88));
    color: #0f172a;
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(2, 6, 23, .25), 0 8px 20px rgba(2, 6, 23, .2);
    border: 1px solid rgba(15, 23, 42, .08);
    transform: translateY(16px) scale(.98);
    transition: transform .25s ease, opacity .25s ease;
    padding: 24px;
}
.media-modal-overlay.is-visible .media-modal {
    transform: translateY(0) scale(1);
}
.media-modal__title {
    font-size: 1.125rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: .02em;
    color: #0f172a;
}
.media-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 480px) {
    .media-modal__actions {
        grid-template-columns: repeat(3, 1fr);
    }
}
.media-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    outline: 0;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 9999px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    box-shadow: 0 14px 24px rgba(17, 24, 39, .25);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.media-modal-btn--article {
    background: linear-gradient(135deg, #334155, #64748b);
}
.media-modal-btn--audio {
    background: linear-gradient(135deg, #a21caf, #7c3aed);
}
.media-modal-btn--video {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}
.media-modal-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 18px 28px rgba(17, 24, 39, .30);
}
.media-modal-btn:active {
    transform: translateY(0);
    box-shadow: 0 12px 22px rgba(17, 24, 39, .26);
}
.media-modal-cancel {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 9999px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #0f172a;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .14);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.media-modal-cancel:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(17, 24, 39, .08);
}

.creator-profile {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--body-margin-h);
}
.creator-header {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}
@media (max-width: 520px) {
    .creator-header {
        grid-template-columns: 84px 1fr;
    }
}
.creator-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,0.18);
    background: rgba(0,0,0,0.06);
    border: 2px solid rgba(0,0,0,0.08);
}
.creator-headline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.creator-name {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}
.creator-website a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}
.creator-website a:hover {
    text-decoration: underline;
}
.creator-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}
.creator-bio p {
    margin: 0.25rem 0;
    line-height: 1.6;
}
.creator-links-list,
.creator-contacts-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.creator-links-list a,
.creator-contacts-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: 9999px;
    text-decoration: none;
    color: var(--color-accent);
    border: 1px solid rgba(185, 28, 28, 0.25);
    background: rgba(185, 28, 28, 0.06);
    transition: transform 0.15s var(--ease-out, ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.creator-links-list a:hover,
.creator-contacts-list a:hover {
    transform: translateY(-1px);
    background: rgba(185, 28, 28, 0.1);
    color: var(--color-accent-hover);
    border-color: rgba(185, 28, 28, 0.35);
}
.creator-links-list a:focus-visible,
.creator-contacts-list a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.creator-links-list a svg,
.creator-contacts-list a svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}
/* Responsive avatar image and placeholder */
.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.creator-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    color: var(--color-muted);
}
.creator-avatar--placeholder svg {
    width: clamp(44px, 40%, 72px);
    height: clamp(44px, 40%, 72px);
}
