:root {
    --bg: #111827;
    --bg-soft: #19243a;
    --panel: #1c2940;
    --panel-2: #243550;
    --panel-3: #151f33;
    --text: #f8f4ea;
    --muted: #bdc9d8;
    --line: rgba(222, 232, 250, 0.14);
    --gold: #ffbd70;
    --gold-soft: rgba(255, 189, 112, 0.14);
    --blue: #304a70;
    --coral: #ff7a69;
    --mint: #73dfc2;
    --lilac: #c99aff;
    --white: #ffffff;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    --radius-xl: 22px;
    --radius-lg: 14px;
    --radius-md: 12px;
    --container: 1220px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(ellipse at 86% 8%, rgba(92, 65, 134, .16), transparent 30%), linear-gradient(180deg, #111827 0%, #172238 50%, #141e32 100%);
    color: var(--text);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.04;
}

p,
li,
label,
input,
textarea,
select {
    color: var(--muted);
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

main {
    display: grid;
    gap: 1.25rem;
}

.site-shell {
    min-height: 100vh;
    overflow-x: clip;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 10, 24, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.05rem 0;
}

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

.logo img {
    width: 56px;
    height: auto;
    display: block;
}

.logo-copy {
    display: inline-flex;
    align-items: center;
}

.logo-copy strong {
    color: var(--white);
    font-size: 0.98rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
}

.nav-menu a {
    color: #d7dced;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    color: var(--gold);
}

.nav-dropdown { position:relative; }
.nav-dropdown > a { display:inline-flex; align-items:center; gap:.5rem; }
.nav-dropdown > a::after { content:""; width:.42rem; height:.42rem; flex:0 0 .42rem; margin:.0 .12rem .18rem .05rem; border-right:2px solid var(--gold); border-bottom:2px solid var(--gold); transform:rotate(45deg); transition:transform .18s ease; }
.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after { transform:rotate(225deg); margin-top:.3rem; margin-bottom:0; }
.nav-submenu { display:none; position:absolute; top:calc(100% + .7rem); left:0; z-index:1100; width:max-content; min-width:260px; max-width:min(340px,80vw); margin:0; padding:.55rem; list-style:none; border:1px solid rgba(115,223,194,.2); border-radius:12px; background:rgba(13,22,39,.98); box-shadow:0 18px 45px rgba(0,0,0,.4); }
.nav-dropdown:hover > .nav-submenu,
.nav-dropdown:focus-within > .nav-submenu { display:grid; gap:.15rem; }
.nav-submenu a { display:flex; width:100%; align-items:center; min-height:40px; padding:.65rem .75rem; border-radius:8px; color:#d7dced; font-size:.82rem; font-weight:600; letter-spacing:0; text-transform:none; }
.nav-submenu a:hover,
.nav-submenu a:focus-visible { color:var(--mint); background:rgba(115,223,194,.08); }

.nav-pill {
    padding: 0.72rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
    border-color: rgba(245, 166, 35, 0.45);
    background: rgba(245, 166, 35, 0.12);
    color: var(--gold);
}

.nav-toggle i {
    font-size: 1rem;
}

.admin-nav-toggle-icon,
.admin-nav-toggle-icon::before,
.admin-nav-toggle-icon::after { display:block; width:17px; height:2px; border-radius:2px; background:currentColor; transition:transform .18s ease; }
.admin-nav-toggle-icon { position:relative; }
.admin-nav-toggle-icon::before,
.admin-nav-toggle-icon::after { position:absolute; left:0; content:""; }
.admin-nav-toggle-icon::before { top:-6px; }
.admin-nav-toggle-icon::after { top:6px; }
.nav-toggle[aria-expanded="true"] .admin-nav-toggle-icon { background:transparent; }
.nav-toggle[aria-expanded="true"] .admin-nav-toggle-icon::before { top:0; transform:rotate(45deg); }
.nav-toggle[aria-expanded="true"] .admin-nav-toggle-icon::after { top:0; transform:rotate(-45deg); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.85rem 1.3rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn,
.btn-primary {
    background: var(--gold);
    color: #0a1020;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
    background: var(--panel-2);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-sm {
    min-height: 40px;
    padding: 0.7rem 0.95rem;
    font-size: 0.72rem;
}

.section {
    padding: 8.5rem 0;
}

.section-tight {
    padding: 6.5rem 0;
}

.hero {
    padding: 5.5rem 0 0;
}

.hero-panel {
    display: grid;
    gap: 3.75rem;
    padding: 3.5rem 0 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 4.25rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(245, 166, 35, 0.32);
    border-radius: 4px;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy {
    display: grid;
    gap: 1.85rem;
}

.hero-copy h1 {
    font-size: clamp(3.3rem, 8vw, 5.9rem);
    color: var(--white);
    text-transform: uppercase;
    max-width: 10ch;
}

.hero-copy h1 span {
    color: var(--white);
}

.lead {
    font-size: 1.05rem;
    max-width: 56ch;
}

.hero-actions,
.chip-row,
.project-actions,
.auth-actions,
.admin-actions,
.dashboard-actions,
.footer-social,
.footer-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.4rem;
}

.hero-social a,
.footer-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: #d7dced;
}

.portrait-card {
    position: relative;
}

.portrait-frame {
    background: linear-gradient(180deg, #d8d8d8, #9f9f9f);
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    max-width: 420px;
    margin-left: auto;
}

.portrait-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.profile-portrait {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: grayscale(100%);
}

.portrait-caption {
    display: none;
}

.stats-strip {
    background: var(--panel-2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4.75rem;
}

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

.stat-box {
    text-align: center;
    padding: 3rem 1.6rem;
}

.stat-box strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--white);
    font-family: 'Newsreader', Georgia, serif;
    font-size: 3rem;
}

.stat-box span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-header {
    max-width: 760px;
    margin: 0 auto 4.2rem;
    text-align: center;
    display: grid;
    gap: 1.3rem;
}

.section-title {
    display: grid;
    gap: 1rem;
    margin-bottom: 2.4rem;
}

.section-title h2 {
    font-size: clamp(2.25rem, 4vw, 3.3rem);
    color: var(--white);
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    color: var(--white);
    text-transform: uppercase;
}

.section-header p {
    max-width: 66ch;
    margin: 0 auto;
}

.analysis-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1.6rem;
    align-items: stretch;
}

.analysis-stage-card,
.analysis-asset-card {
    background: linear-gradient(180deg, rgba(18, 26, 49, 0.98), rgba(10, 16, 31, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.analysis-stage-card,
.analysis-asset-card {
    border-radius: 18px;
}

.analysis-stage-card {
    display: grid;
    gap: 1.25rem;
    padding: 1.6rem;
}

.analysis-stage-top {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.analysis-stage-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.22);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.analysis-stage-pill.is-muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #d9e1f2;
}

.analysis-chart-panel {
    display: grid;
    gap: 1.2rem;
    padding: 1.35rem;
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(245, 166, 35, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.analysis-metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.analysis-mini-stat {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem;
    border-radius: 14px;
    background: rgba(7, 13, 31, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.analysis-mini-stat strong {
    color: var(--white);
    font-size: 1.35rem;
    font-family: 'Newsreader', Georgia, serif;
}

.analysis-mini-stat span,
.analysis-process-row span,
.analysis-signal-card small,
.analysis-signal-card span {
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
}

.analysis-signal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0.85rem;
}

.analysis-signal-card {
    display: grid;
    gap: 0.45rem;
    min-height: 132px;
    align-content: start;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(7, 13, 31, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.analysis-signal-card.is-primary {
    background:
        radial-gradient(circle at top right, rgba(245, 166, 35, 0.18), transparent 30%),
        rgba(7, 13, 31, 0.52);
    border-color: rgba(245, 166, 35, 0.18);
}

.analysis-signal-card strong {
    color: var(--white);
    font-size: 1.25rem;
}

.analysis-process-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.analysis-process-row span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.analysis-asset-grid {
    display: grid;
    gap: 1rem;
}

.analysis-asset-card {
    overflow: hidden;
}

.analysis-asset-media {
    min-height: 135px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background-color: #10182d;
}

.analysis-asset-media.is-dashboard {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 22% 28%, rgba(245, 166, 35, 0.4), transparent 18%),
        linear-gradient(135deg, #16233e, #0b1123 70%);
    background-size: 42px 42px, 42px 42px, auto, auto;
}

.analysis-asset-media.is-sheet {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, rgba(67, 181, 129, 0.3), transparent 52%),
        linear-gradient(135deg, #142038, #09101f 72%);
    background-size: 28px 28px, 28px 28px, auto, auto;
}

.analysis-asset-media.is-report {
    background:
        linear-gradient(180deg, transparent 0 70%, rgba(255, 255, 255, 0.08) 70% 100%),
        linear-gradient(90deg, rgba(245, 166, 35, 0.38) 0 18%, transparent 18% 100%),
        linear-gradient(135deg, #192847, #0a1020 72%);
}

.analysis-asset-copy {
    display: grid;
    gap: 0.7rem;
    padding: 1.2rem 1.25rem 1.35rem;
}

.analysis-asset-copy h3 {
    color: var(--white);
    font-size: 1.25rem;
}

.proficiency-grid,
.services-grid,
.projects-grid,
.gallery-grid,
.testimonials-grid,
.insights-grid,
.journey-grid,
.footer-grid,
.contact-grid,
.about-grid,
.detail-grid,
.dashboard-grid,
.admin-grid,
.auth-grid,
.strength-grid,
.skills-grid {
    display: grid;
    gap: 2.2rem;
}

.proficiency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.proficiency-card,
.service-card,
.project-card,
.gallery-card,
.testimonial-card,
.insight-card,
.journey-card,
.education-card,
.detail-card,
.contact-panel,
.auth-panel,
.dashboard-card,
.project-form-card,
.admin-table-wrap,
.story-card,
.quote-card,
.skill-card {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.proficiency-card,
.service-card,
.testimonial-card,
.insight-card,
.journey-card,
.education-card,
.detail-card,
.contact-panel,
.auth-panel,
.dashboard-card,
.project-form-card,
.admin-table-wrap,
.story-card,
.quote-card,
.skill-card {
    border-radius: var(--radius-lg);
    padding: 2.15rem;
}

.proficiency-card h3,
.service-card h3,
.project-card h3,
.gallery-card h3,
.testimonial-card h3,
.insight-card h3,
.journey-card h3,
.education-card h3,
.dashboard-card h3,
.story-card h3,
.quote-card h3,
.skill-card h3 {
    color: var(--white);
    font-size: 1.65rem;
    margin-bottom: 1.2rem;
}

.proficiency-card ul,
.service-card ul,
.focus-list,
.contact-list,
.auth-points {
    list-style: none;
}

.proficiency-list {
    display: grid;
    gap: 1rem;
}

.proficiency-item {
    display: grid;
    gap: 0.45rem;
}

.proficiency-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #d9deec;
}

.progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--gold);
}

.service-card {
    display: grid;
    gap: 1.55rem;
}

.service-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 166, 35, 0.2);
    background: rgba(245, 166, 35, 0.08);
    color: var(--gold);
    border-radius: 6px;
}

.service-card ul {
    display: grid;
    gap: 0.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card li::before,
.focus-list li::before,
.contact-list li::before,
.auth-points li::before {
    content: "•";
    color: var(--gold);
    margin-right: 0.6rem;
}

.portfolio-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 3rem;
}

.portfolio-head h2 {
    color: var(--white);
    font-size: clamp(2.4rem, 4vw, 3.3rem);
    text-transform: uppercase;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.filter-btn {
    padding: 0.65rem 0.95rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--panel-2);
    color: #cfd6ea;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gold);
    color: #0d1324;
    border-color: transparent;
}

.projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
    overflow: hidden;
    border-radius: 6px;
}

.gallery-card {
    overflow: hidden;
    border-radius: 6px;
}

.project-visual {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: end;
    padding: 1rem;
    background: linear-gradient(135deg, #203150, #172339);
}

.project-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 10%, rgba(7, 13, 31, 0.76) 100%);
}

.project-visual span {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-size: 1.75rem;
    line-height: 1;
}

.project-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 1.9rem;
    display: grid;
    gap: 1.45rem;
}

.project-detail-media {
    margin-bottom: 1.35rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.project-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.gallery-media {
    min-height: 250px;
    background: var(--panel-2);
}

.gallery-media img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.gallery-copy {
    padding: 1.4rem;
    display: grid;
    gap: 0.9rem;
}

.gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gallery-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #dfe3ef;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-tags,
.project-meta,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.project-tags span,
.badge,
.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.48rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #dfe3ef;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.journey-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
}

.journey-column {
    display: grid;
    gap: 1.8rem;
}

.journey-card small,
.education-card small {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.journey-card h3,
.education-card h3 {
    font-size: 1.7rem;
}

.resume-card {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 220px;
}

.testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
    display: grid;
    gap: 1.25rem;
}

.testimonial-image {
    width: 4.25rem;
    height: 4.25rem;
    border: 2px solid rgba(115, 223, 194, .65);
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-quote {
    color: #eef1fb;
    font-style: italic;
}

.testimonial-person strong {
    color: var(--white);
    font-size: 0.96rem;
}

.testimonial-person span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.insights-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-media {
    min-height: 160px;
    margin: -1.85rem -1.85rem 1.25rem;
    background: linear-gradient(135deg, #1d3358, #17263f 55%, #36517a);
    overflow: hidden;
}

.insight-cover-image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.insight-card h3 {
    font-size: 1.7rem;
}

.insight-card small {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Portfolio refresh: editorial layout, restrained green palette, and CV-led impact. */
.site-header { background: rgba(7, 23, 21, 0.94); border-bottom-color: var(--line); }
.logo-copy strong { letter-spacing: .06em; }
.hero { padding-top: 4.25rem; }
.hero-panel { padding-top: 2rem; }
.hero-copy h1 { max-width: 12ch; font-size: clamp(3.3rem, 7vw, 6rem); }
.hero-role { color: var(--gold); font-size: .92rem; font-weight: 700; letter-spacing: .04em; }
.hero-copy .lead { max-width: 62ch; }
.eyebrow { color: var(--gold); }
.section-header h2, .section-title h2 { text-transform: none; line-height: 1.02; }
.stat-box { border-right: 1px solid var(--line); }
.stat-box:last-child { border-right: 0; }
.stat-box strong { color: var(--gold); }
.proficiency-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.proficiency-card, .service-card, .journey-card, .education-card, .skill-card, .story-card, .quote-card {
    background: linear-gradient(145deg, rgba(20, 48, 43, .96), rgba(12, 32, 29, .96));
    border-color: var(--line);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
}
.proficiency-card { padding: 1.5rem; }
.proficiency-card h3, .service-card h3, .journey-card h3, .education-card h3, .skill-card h3, .story-card h2, .quote-card h3 {
    line-height: 1.08;
}
.proficiency-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.proficiency-list .chip { margin: 0; }
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card { text-transform: none; letter-spacing: 0; padding: 1.65rem; }
.service-card p, .service-card li { color: var(--muted); }
.service-card ul { display: grid; gap: .3rem; margin-top: 1rem; }
.service-card li::before { content: '+'; color: var(--gold); margin-right: .55rem; }
.journey-grid { grid-template-columns: 1.2fr .8fr; gap: 1.2rem; }
.journey-card, .education-card { padding: 1.6rem; }
.journey-card small, .education-card small { letter-spacing: .04em; text-transform: none; font-size: .76rem; }
.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.impact-card { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: .8rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--panel-2), var(--panel-3)); }
.impact-card > span, .impact-card small { color: var(--muted); font-size: .78rem; }
.impact-card strong { color: var(--text); font: 650 clamp(1.65rem, 3vw, 2.5rem)/1.05 'Newsreader', Georgia, serif; }
.impact-card strong i { color: var(--gold); font-size: .68em; }
.btn { border-radius: 8px; text-transform: none; letter-spacing: .02em; font-weight: 700; }
.btn-outline { border-color: rgba(225, 241, 229, .24); }
.cta-panel { background: radial-gradient(ellipse at top, rgba(74, 125, 96, .35), transparent 62%), var(--panel); border: 1px solid var(--line); }
.cta-panel h2 { text-transform: none; line-height: 1.05; }
.skill-card h3 { font-size: 1.35rem; }
.chip { border-radius: 999px; background: rgba(168, 213, 162, .1); border-color: rgba(168, 213, 162, .18); }

@media (max-width: 900px) {
    .proficiency-grid, .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .proficiency-grid, .impact-grid, .services-grid { grid-template-columns: 1fr; }
    .stat-box { border-right: 0; border-bottom: 1px solid var(--line); }
    .stat-box:last-child { border-bottom: 0; }
    .hero-copy h1 { margin-inline: auto; }
}

/* Project showcase follows the supplied card reference while keeping the site responsive. */
.projects-showcase-section { background: #111927; }
.projects-showcase-section .section-title { text-align: center; justify-items: center; }
.projects-showcase-section .section-title h2 { color: #f7f8fc; font: 650 clamp(2.2rem, 4vw, 3rem)/1.1 'Newsreader', Georgia, serif; }
.projects-showcase-section .section-title p,
.project-showcase-heading p { color: #b8c2d2; }
.showcase-filter-row { justify-content: center; margin-bottom: 3rem; }
.project-showcase-block + .project-showcase-block { margin-top: 4.5rem; padding-top: 3.5rem; border-top: 1px solid rgba(255,255,255,.1); }
.project-showcase-heading { margin-bottom: 1.4rem; }
.project-showcase-heading h3 { color: #f7f8fc; font: 650 clamp(1.55rem, 3vw, 2rem)/1.15 'Newsreader', Georgia, serif; letter-spacing: -.015em; }
.project-showcase-heading p { max-width: 68ch; margin-top: .6rem; }
.showcase-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.showcase-project-card { display:grid; overflow: hidden; align-content: start; gap: 0; border: 1px solid rgba(203, 214, 232, .14); border-radius: 10px; background: #202b3b; box-shadow: 0 18px 42px rgba(0,0,0,.2); }
.showcase-project-visual { display: block; min-height: 0; aspect-ratio: 16 / 7; overflow: hidden; background: #182232; }
.showcase-project-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.showcase-project-visual:hover img { transform: scale(1.035); }
.showcase-project-info { display: grid; align-content: start; gap: 1rem; padding: 1.35rem; }
.showcase-project-info h3 { color: #c178ff; font: 650 1.28rem/1.3 'Newsreader', Georgia, serif; letter-spacing: -.01em; }
.showcase-project-info p { color: #e0e6ef; line-height: 1.55; }
.showcase-project-info .project-tags span { color: #c8d0dd; border-color: rgba(220,230,245,.17); }
.showcase-project-actions { flex-wrap: wrap; gap: .55rem; }
.showcase-project-actions .btn { min-height: 40px; padding: .65rem .85rem; border: 1px solid #b65cff; border-radius: 7px; background: #111927; color: #d18cff; font-size: .72rem; }
.showcase-project-actions .btn:hover { background: #b65cff; color: #111927; }
.showcase-project-actions .btn-ghost { border-color: rgba(220,230,245,.2); color: #e0e6ef; }
.showcase-empty-state { grid-column: 1 / -1; border-color: rgba(203,214,232,.2); background: #202b3b; }
.showcase-empty-state h3 { color: #f7f8fc; }
.showcase-empty-state p { color: #b8c2d2; }
.showcase-project-grid-single { grid-template-columns:minmax(0, 1fr); }
@media (min-width: 1001px) {
    .projects-showcase-section > .container { width:min(calc(100% - 64px), 1680px); }
    .showcase-project-grid { grid-template-columns:repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
    .showcase-project-grid-single { grid-template-columns:minmax(0, 1fr); }
    .showcase-project-grid-single .showcase-project-card { grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows:minmax(360px, auto); }
    .showcase-project-grid-single .showcase-project-visual { height:100%; min-height:360px; aspect-ratio:auto; }
    .showcase-project-grid-single .showcase-project-info { align-content:center; gap:1.2rem; padding:clamp(1.5rem, 3vw, 3.25rem); }
    .showcase-project-grid-single .showcase-project-info h3 { font-size:clamp(1.7rem, 2.5vw, 2.6rem); }
    .showcase-project-grid-single .showcase-project-info p { font-size:1.05rem; line-height:1.7; }
}
.project-article-card, .project-gallery-card, .dashboard-launch-card { margin-top: 1.2rem; }
.project-article-card h2, .project-gallery-card h2, .dashboard-launch-card h2 { margin: .65rem 0 1rem; color: var(--text); font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.1; }
.project-article-content { color: var(--muted); line-height: 1.9; overflow-wrap: anywhere; }
.project-article-content p { margin: 0 0 1.15em; }
.project-article-content p:last-child { margin-bottom: 0; }
.project-article-content h2,
.project-article-content h3 { margin: 1.65em 0 .65em; color: var(--white); line-height: 1.25; }
.project-article-content h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.project-article-content h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.project-article-content ul,
.project-article-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.project-article-content li { margin: .4em 0; padding-left: .2em; }
.project-article-content blockquote { margin: 1.4em 0; padding: .9em 1.15em; color: #e2eafa; background: rgba(100, 216, 189, .08); border-left: 3px solid var(--mint); border-radius: 0 10px 10px 0; }
.project-article-content a { color: var(--mint); text-decoration: underline; text-underline-offset: .18em; }
.project-article-content img { display: block; width: min(70%, 760px); max-width: 100%; height: auto; margin: 1.5rem auto; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.project-article-content img[width="35%"] { width: 35%; }
.project-article-content img[width="60%"] { width: 60%; }
.project-article-content img[width="85%"] { width: 85%; }
.project-article-content img[width="100%"] { width: 100%; }
.project-article-content img[data-align="left"] { margin-left: 0; margin-right: auto; }
.project-article-content img[data-align="center"] { margin-left: auto; margin-right: auto; }
.project-article-content img[data-align="right"] { margin-left: auto; margin-right: 0; }

.project-editor-shell { overflow: hidden; background: #fff; border: 1px solid rgba(223,232,248,.18); border-radius: 14px; box-shadow: 0 16px 42px rgba(3,8,18,.24); }
.project-editor-topbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.8rem 1rem; color:#24334b; background:#f2f5f9; border-bottom:1px solid #dfe5ec; font-size:.88rem; }
.project-editor-topbar strong { font-weight:750; }
.project-editor-topbar span, .project-editor-footer span { color:#68758a; font-size:.78rem; }
.project-editor-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:.38rem; padding:.65rem .75rem; background:#fff; border-bottom:1px solid #dfe5ec; }
.project-editor-toolbar button,
.project-editor-toolbar select { min-height:36px; padding:.38rem .62rem; color:#24334b; background:#fff; border:1px solid #d7dee8; border-radius:7px; font:inherit; font-size:.82rem; }
.project-editor-toolbar button { cursor:pointer; }
.project-editor-toolbar button:hover,
.project-editor-toolbar button:focus-visible { color:#075e57; background:#e9f8f4; border-color:#76cbb9; }
.project-editor-select-label { color:#68758a; font-size:.78rem; }
.project-editor-divider { width:1px; height:24px; margin:0 .15rem; background:#dfe5ec; }
.project-article-editor { min-height:420px; max-height:70vh; overflow:auto; padding:clamp(1.25rem, 4vw, 2.5rem); color:#263449; background:#fff; outline:0; font-family:Georgia, 'Times New Roman', serif; font-size:1.04rem; line-height:1.85; overflow-wrap:anywhere; }
.project-article-editor:focus { box-shadow:inset 0 0 0 2px rgba(45,166,138,.22); }
.project-article-editor:empty::before { content:attr(data-placeholder); color:#8b97a8; pointer-events:none; }
.project-article-editor h2, .project-article-editor h3 { margin:1.5em 0 .55em; color:#18263c; line-height:1.25; }
.project-article-editor h2 { font-size:1.8rem; }
.project-article-editor h3 { font-size:1.4rem; }
.project-article-editor blockquote { margin:1.2em 0; padding:.75em 1em; color:#526176; background:#f1f7f6; border-left:3px solid #2da68a; }
.project-article-editor a { color:#147d70; text-decoration:underline; }
.project-article-editor img { display:block; width:min(60%, 680px); max-width:100%; height:auto; margin:1.3rem auto; border-radius:10px; cursor:pointer; }
.project-article-editor img[width="35%"] { width:35%; }
.project-article-editor img[width="60%"] { width:60%; }
.project-article-editor img[width="85%"] { width:85%; }
.project-article-editor img[width="100%"] { width:100%; }
.project-article-editor img[data-align="left"] { margin-left:0; margin-right:auto; }
.project-article-editor img[data-align="center"] { margin-left:auto; margin-right:auto; }
.project-article-editor img[data-align="right"] { margin-left:auto; margin-right:0; }
.project-article-editor img:focus { outline:3px solid #2da68a; outline-offset:3px; }
.project-editor-image-properties { display:flex; flex-wrap:wrap; align-items:end; gap:.7rem; padding:.7rem .85rem; color:#334155; background:#f4f7fa; border-bottom:1px solid #dfe5ec; }
.project-editor-image-properties[hidden] { display:none; }
.project-editor-image-properties > strong { align-self:center; margin-right:.2rem; color:#147d70; font-size:.82rem; }
.project-editor-image-properties label { display:grid; gap:.25rem; color:#68758a; font-size:.72rem; font-weight:700; }
.project-editor-image-properties select,
.project-editor-image-properties input { min-height:34px; padding:.35rem .5rem; color:#24334b; background:#fff; border:1px solid #d7dee8; border-radius:7px; font:inherit; font-size:.8rem; }
.project-editor-image-properties .project-image-alt-label { flex:1 1 180px; }
.project-editor-image-properties .project-image-remove { min-height:34px; padding:.35rem .65rem; color:#9b2c2c; background:#fff; border:1px solid #efb5b5; border-radius:7px; font:inherit; font-size:.8rem; cursor:pointer; }
.project-image-picker-empty { margin:0; color:#c7d5e7; font-size:.85rem; }
.project-editor-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem 1rem; padding:.75rem 1rem; background:#f7f9fb; border-top:1px solid #e3e8ee; }
.project-editor-footer .form-help { color:#657286; }
.project-image-insert-panel { margin:.5rem 0 1rem; padding:1rem; background:rgba(100,216,189,.07); border:1px solid rgba(100,216,189,.2); border-radius:12px; }
.project-image-insert-panel > strong { display:block; margin-bottom:.75rem; color:#dfeeea; font-size:.9rem; }
.project-image-insert-list { display:flex; flex-wrap:wrap; gap:.6rem; }
.project-image-insert { display:flex; align-items:center; gap:.55rem; padding:.4rem .6rem; color:#dbe8f3; background:rgba(9,17,32,.45); border:1px solid rgba(255,255,255,.12); border-radius:9px; cursor:pointer; }
.project-image-insert img { width:42px; height:32px; object-fit:cover; border-radius:5px; }
.project-image-insert:hover { border-color:var(--mint); }
@media (max-width:600px) {
    .project-article-editor img, .project-article-content img[width="35%"], .project-article-content img[width="60%"] { width:100%; }
    .project-editor-image-properties { align-items:stretch; }
    .project-editor-image-properties > strong { flex-basis:100%; }
    .project-editor-image-properties label { flex:1 1 42%; }
}
@media (max-width:600px) {
    .project-editor-topbar, .project-editor-footer { align-items:flex-start; flex-direction:column; }
    .project-article-editor { min-height:340px; font-size:1rem; }
    .project-editor-toolbar { gap:.3rem; }
    .project-editor-toolbar button, .project-editor-toolbar select { min-height:40px; }
}
.project-gallery-card h2 { margin-bottom: 1.3rem; }
.project-article-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.project-gallery-figure { display:grid; align-content:start; min-width:0; margin:0; padding:.65rem; background:rgba(255,255,255,.035); border:1px solid var(--line); border-radius:13px; }
.project-gallery-image-link { display: grid; gap: .55rem; color: var(--muted); }
.project-gallery-image-link img { width: 100%; max-height: 360px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-3); }
.project-gallery-image-link span { color:var(--text); font-size:1rem; font-weight:750; line-height:1.35; }
.project-gallery-figure figcaption { padding:.1rem .05rem .2rem; color:var(--muted); font-size:.9rem; line-height:1.55; overflow-wrap:anywhere; }
.project-gallery-image-link { cursor: zoom-in; }
.project-gallery-image-link:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; border-radius: 10px; }
.project-image-dialog { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: min(92vh, 1000px); padding: 0; overflow: hidden; color: var(--text); background: linear-gradient(145deg, #1f2d46, #162237); border: 1px solid rgba(115,223,194,.34); border-radius: 18px; box-shadow: 0 28px 90px rgba(0,0,0,.6); }
.project-image-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.project-image-dialog::backdrop { background: rgba(5,10,20,.84); backdrop-filter: blur(5px); }
.project-image-dialog-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.85rem 1rem; background:rgba(10,18,32,.6); border-bottom:1px solid rgba(222,232,250,.12); }
.project-image-dialog-header p { margin:0; color:var(--text); font-size:.95rem; font-weight:750; }
.project-image-dialog-close { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:42px; padding:.55rem .85rem; color:#182238; background:var(--gold); border:1px solid var(--gold); border-radius:9px; font:inherit; font-size:.9rem; font-weight:750; cursor:pointer; }
.project-image-dialog-close:hover { background:#ffd09a; border-color:#ffd09a; }
.project-image-dialog-close:focus-visible { outline:3px solid var(--mint); outline-offset:3px; }
.project-image-dialog figure { display:grid; grid-template-rows:minmax(0,1fr) auto; min-height:0; margin:0; padding:1rem; }
.project-image-dialog-image { display:block; width:100%; height:100%; min-height:0; max-height:calc(92vh - 120px); object-fit:contain; }
.project-image-dialog-caption { max-height:18vh; overflow:auto; padding:.8rem .3rem .2rem; color:#d9e3f1; line-height:1.55; }
.project-media-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin:1rem 0; }
.project-media-edit-heading h4 { margin:0 0 .2rem; color:var(--text); font-size:1.02rem; }
.project-media-edit-heading p { margin:0; color:var(--muted); font-size:.87rem; line-height:1.5; }
.project-media-admin-item { display: grid; align-content:start; gap: 1rem; min-width: 0; padding:1rem; background:linear-gradient(145deg,rgba(36,53,80,.94),rgba(19,31,51,.98)); border:1px solid rgba(115,223,194,.24); border-radius:14px; box-shadow:0 12px 30px rgba(4,9,20,.18); }
.project-media-image-canvas { display:grid; min-width:0; min-height:190px; place-items:center; padding:.55rem; overflow:hidden; background:#f7f8fa; border:1px solid rgba(255,255,255,.22); border-radius:10px; }
.project-media-admin-item .project-media-image-canvas img { width:100%; height:220px; object-fit:contain; background:transparent; border:0; border-radius:7px; }
.project-media-admin-item .form-group { margin:0; }
.project-media-admin-item .form-group label span { display:block; margin-top:.12rem; color:#9eafc5; font-size:.73rem; font-weight:500; letter-spacing:0; text-transform:none; }
.project-media-admin-item input { min-height:50px; overflow:hidden; text-overflow:ellipsis; }
.project-media-admin-item textarea { min-height:116px; line-height:1.6; }
.project-media-save { margin:.2rem 0 1rem; }
.project-media-list { display:grid; gap:1rem; }
.project-form-section { display:grid; gap:1rem; min-width:0; padding:1.25rem; background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.015)); border:1px solid rgba(222,232,250,.13); border-radius:16px; }
.project-form-section-heading { display:flex; align-items:flex-start; gap:.85rem; padding-bottom:.8rem; border-bottom:1px solid rgba(222,232,250,.12); }
.project-form-section-heading > span { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; color:#162238; background:var(--mint); border-radius:10px; font-size:.78rem; font-weight:850; }
.project-form-section-heading h3 { margin:0 0 .25rem; color:var(--text); font-size:1.2rem; }
.project-form-section-heading p { margin:0; color:var(--muted); font-size:.88rem; line-height:1.5; }
.project-new-media-fields { display:grid; gap:.8rem; }
.project-new-media-card { display:grid; grid-template-columns:minmax(150px,.42fr) minmax(0,1fr); gap:1rem; align-items:start; padding:1rem; background:linear-gradient(145deg,rgba(36,53,80,.94),rgba(19,31,51,.98)); border:1px solid rgba(115,223,194,.24); border-radius:14px; box-shadow:0 12px 30px rgba(4,9,20,.18); }
.project-new-media-card .project-media-image-canvas { min-height:190px; }
.project-new-media-card .project-media-image-canvas img { width:100%; max-height:220px; object-fit:contain; }
.project-new-media-card > div:not(.project-media-image-canvas) { display:grid; gap:.8rem; min-width:0; }
.project-new-media-card label { display:grid; gap:.35rem; color:var(--text); font-size:.84rem; font-weight:700; }
.project-new-media-card label small { color:#9eafc5; font-size:.74rem; font-weight:500; line-height:1.4; }
.project-new-media-card .project-new-media-number { color:var(--mint); font-size:.75rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.project-new-media-card input,.project-new-media-card textarea { width:100%; padding:.7rem .8rem; color:var(--text); background:rgba(8,15,28,.72); border:1px solid var(--line); border-radius:8px; font:inherit; }
.project-media-upload-control { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; }
.project-media-upload-control .project-media-file-input { position:absolute; width:1px; height:1px; padding:0; opacity:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.project-media-upload-control > span { display:inline-flex; align-items:center; min-height:38px; padding:.4rem .75rem; color:#d9e6f3; background:rgba(115,223,194,.08); border:1px solid rgba(115,223,194,.2); border-radius:999px; font-size:.85rem; font-weight:700; }
.project-new-media-remove { width:100%; justify-content:center; }
.project-media-first-save-note { margin:0; padding:.8rem 1rem; color:var(--muted); background:rgba(115,223,194,.06); border-left:3px solid var(--mint); border-radius:0 8px 8px 0; }

@media (max-width: 1000px) {
    .showcase-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .showcase-project-grid, .project-article-gallery { grid-template-columns: 1fr; }
    .project-media-admin-grid { grid-template-columns:1fr; }
    .project-new-media-card { grid-template-columns:1fr; }
    .project-media-upload-control { align-items:stretch; flex-direction:column; }
    .project-media-upload-control .btn { width:100%; justify-content:center; }
    .project-media-upload-control > span { justify-content:center; }
    .project-media-image-canvas { min-height:150px; }
    .project-media-admin-item .project-media-image-canvas img { height:220px; }
    .project-form-section { padding:1rem; }
    .showcase-project-grid-single .showcase-project-card { grid-template-columns:1fr; grid-template-rows:auto; }
    .showcase-project-grid-single .showcase-project-visual { height:auto; min-height:0; aspect-ratio:16 / 7; }
    .project-showcase-block + .project-showcase-block { margin-top: 3rem; padding-top: 2.5rem; }
}
@media (max-width: 560px) {
    .project-image-dialog { width:calc(100vw - 20px); max-height:94vh; border-radius:13px; }
    .project-image-dialog-header { padding:.7rem; }
    .project-image-dialog figure { padding:.55rem; }
    .project-image-dialog-image { max-height:calc(94vh - 112px); }
    .project-image-dialog-caption { font-size:.9rem; }
}

.social-x-mark { color: currentColor; font: 700 1rem/1 'Source Sans 3', sans-serif; }
.youtube-feature-card { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); align-items: center; gap: 2rem; padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(145deg, var(--panel-2), var(--panel-3)); }
.youtube-feature-copy { display: grid; justify-items: start; gap: 1rem; }
.youtube-feature-copy h2 { color: var(--text); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.youtube-feature-copy p { max-width: 38ch; }
.youtube-frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.youtube-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 780px) {
    .youtube-feature-card { grid-template-columns: 1fr; }
}
.hero-contact-details { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: -.25rem; }
.hero-contact-details span, .hero-contact-details a { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .92rem; }
.hero-contact-details i { color: var(--gold); }
.hero-contact-details a:hover { color: var(--text); }
.location-visibility-toggle { display: inline-flex !important; align-items: center; gap: .7rem !important; width: fit-content; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; }
.admin-grid .form-group .location-visibility-toggle input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.location-toggle-track { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 42px; border-radius: 999px; background: #4b5666; transition: background .2s ease; }
.location-toggle-track::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.location-visibility-toggle input:checked + .location-toggle-track { background: #5f9f68; }
.location-visibility-toggle input:checked + .location-toggle-track::before { transform: translateX(18px); }
.location-visibility-toggle input:focus-visible + .location-toggle-track { outline: 3px solid rgba(168, 213, 162, .55); outline-offset: 2px; }
.location-toggle-copy { color: #dbe0ef; font-size: .88rem; font-weight: 600; }
@media (max-width: 560px) {
    .hero-contact-details { justify-content: center; }
}

@media (max-width: 780px) {
    .nav-menu { background: rgba(7, 23, 21, .98); border-color: var(--line); }
}

.cta-panel {
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-panel h2 {
    color: var(--white);
    font-size: clamp(2.8rem, 5vw, 4.3rem);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.cta-panel p {
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

.site-footer {
    position: relative;
    padding: 4rem 0 2.5rem;
    background: #050a18;
}

.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.9fr 0.9fr;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-copy {
    max-width: 34ch;
}

.footer-label {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-links a:hover,
.footer-mini-links a:hover {
    color: var(--gold);
}

.footer-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-meta,
.footer-mini-links a {
    font-size: 0.82rem;
    color: var(--muted);
}

.live-chat-widget {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 1100;
    display: grid;
    justify-items: start;
    gap: 0.85rem;
    width: fit-content;
    margin: 0;
}

.footer-live-chat {
    align-self: auto;
}

.live-chat-trigger {
    display: inline-grid;
    place-items: center;
    align-items: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(12, 19, 38, 0.96);
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: 0 20px 40px rgba(7, 13, 31, 0.28);
    cursor: pointer;
}

.live-chat-trigger span {
    display: none;
}

.live-chat-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.85rem);
    width: min(92vw, 340px);
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(18, 26, 49, 0.98), rgba(10, 16, 31, 0.98));
    box-shadow: var(--shadow);
    margin-left: 0;
}

.live-chat-panel[hidden] {
    display: none !important;
}

.live-chat-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.live-chat-head strong {
    color: var(--white);
    font-size: 1rem;
}

.live-chat-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}

.live-chat-copy {
    font-size: 0.92rem;
}

.live-chat-actions {
    display: grid;
    gap: 0.75rem;
}

.live-chat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-weight: 700;
}

.live-chat-link i {
    width: 18px;
    text-align: center;
}

.live-chat-link-primary {
    background: rgba(37, 211, 102, 0.14);
    border-color: rgba(37, 211, 102, 0.28);
}

.live-chat-link:hover,
.live-chat-trigger:hover,
.live-chat-close:hover {
    transform: translateY(-2px);
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.1rem;
    border-radius: 999px;
    background: #25d366;
    color: #08110b;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 20px 40px rgba(7, 13, 31, 0.28);
}

.whatsapp-float i {
    font-size: 1.15rem;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
}

.about-grid,
.contact-grid,
.detail-grid,
.dashboard-grid,
.admin-grid,
.auth-grid,
.strength-grid,
.skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card,
.quote-card {
    border-radius: 6px;
}

.quote-card {
    background: var(--panel-2);
}

.focus-list,
.contact-list,
.auth-points {
    display: grid;
    gap: 1.15rem;
}

.story-stack {
    display: grid;
    gap: 1.35rem;
    margin-top: 1.5rem;
}

.detail-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.file-list {
    display: grid;
    gap: 1.2rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.45rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.form-group {
    display: grid;
    gap: 0.8rem;
}

.form-group label {
    color: #dbe0ef;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0c1326;
    color: var(--white);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.form-help {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.alert {
    padding: 1.3rem 1.35rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(41, 125, 73, 0.18);
    color: #b7ebc2;
}

.alert-error {
    background: rgba(143, 42, 42, 0.22);
    color: #f4b7b7;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1.1rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

th {
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-profile-preview {
    width: min(100%, 260px);
    margin-bottom: 1.25rem;
}

.admin-shell {
    padding: 5rem 0 5.5rem;
}

.admin-hero {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.8rem;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(18, 26, 49, 0.98), rgba(10, 16, 31, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.admin-hero h1 {
    color: var(--white);
    font-size: clamp(2.35rem, 4vw, 3.8rem);
    text-transform: uppercase;
}

.admin-hero .lead {
    max-width: 68ch;
}

.stack-form {
    display: grid;
    gap: 1.15rem;
}

.admin-actions form {
    margin: 0;
}

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table-wrap table {
    min-width: 720px;
}

.message-reader {
    width: min(680px, calc(100vw - 32px));
    max-width: 100%;
    max-height: min(88vh, 820px);
    padding: 0;
    color: var(--text, #e9edf5);
    background: linear-gradient(160deg, #1b2941, #111a2b 75%);
    border: 1px solid rgba(184, 150, 255, .42);
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
}

.message-reader::backdrop {
    background: rgba(5, 10, 20, .78);
    backdrop-filter: blur(5px);
}

.message-reader-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.message-reader-header h2 {
    margin: .4rem 0 0;
}

.message-reader-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    cursor: pointer;
}

.message-reader-meta {
    display: grid;
    gap: .35rem;
    padding: 1rem 1.35rem;
    color: #c7d4e6;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.message-reader-meta strong {
    color: #fff;
}

.message-reader-meta a {
    color: #8ce4d2;
    overflow-wrap: anywhere;
}

.message-reader-body {
    max-height: min(56vh, 520px);
    overflow: auto;
    padding: 1.25rem 1.35rem 1.5rem;
    color: #e5edf8;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overscroll-behavior: contain;
}

.message-reader-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: 0 1.35rem 1.25rem;
}

.email-workspace-grid {
    display: grid;
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.8fr);
    align-items: start;
    gap: 1.2rem;
}

.email-drafts-panel,
.email-composer-card,
.email-next-batch-card {
    padding: 1.35rem;
    background: linear-gradient(155deg, rgba(29, 43, 66, .98), rgba(17, 26, 43, .98));
    border: 1px solid rgba(223, 232, 248, .12);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.email-drafts-panel { position: sticky; top: 1rem; }

.email-drafts-heading,
.email-composer-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.email-drafts-heading h2,
.email-composer-heading h2 { margin: .35rem 0 0; }

.email-count-badge,
.email-template-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .48rem .7rem;
    color: #b7f1e4;
    font-size: .78rem;
    font-weight: 700;
    background: rgba(100, 216, 189, .1);
    border: 1px solid rgba(100, 216, 189, .24);
    border-radius: 999px;
}

.email-draft-list { display: grid; gap: .65rem; }

.email-draft-item {
    display: grid;
    gap: .32rem;
    padding: .85rem;
    color: #eaf0f9;
    background: rgba(8, 15, 28, .35);
    border: 1px solid rgba(223, 232, 248, .1);
    border-radius: 12px;
    text-decoration: none;
}

.email-draft-item:hover,
.email-draft-item.is-current {
    border-color: rgba(100, 216, 189, .55);
    background: rgba(100, 216, 189, .08);
}

.email-draft-item span,
.email-empty-drafts,
.email-list-note span { color: #aebbd0; font-size: .88rem; line-height: 1.5; }

.email-list-note {
    display: grid;
    gap: .4rem;
    margin-top: 1.2rem;
    padding: .9rem;
    background: rgba(100, 216, 189, .07);
    border-left: 3px solid #64d8bd;
    border-radius: 8px;
}

.email-list-note strong { color: #8ce4d2; }

.email-recipient-mode {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-bottom: 1.1rem;
}

.email-recipient-mode label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem .85rem;
    color: #dce6f3;
    background: rgba(8, 15, 28, .35);
    border: 1px solid rgba(223, 232, 248, .13);
    border-radius: 10px;
    cursor: pointer;
}

.email-recipient-mode input,
.email-updates-consent input { accent-color: #35a987; }

.email-bulk-note {
    display: flex;
    gap: .7rem;
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    color: #bfe9df;
    background: rgba(43, 145, 119, .12);
    border: 1px solid rgba(100, 216, 189, .22);
    border-radius: 12px;
    line-height: 1.5;
}

.email-bulk-note[hidden] { display: none; }

.email-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .55rem;
    padding: .5rem;
    background: rgba(8, 15, 28, .52);
    border: 1px solid rgba(223, 232, 248, .12);
    border-radius: 10px 10px 0 0;
}

.email-editor-toolbar button {
    min-height: 36px;
    padding: .35rem .62rem;
    color: #e5edf8;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    cursor: pointer;
}

.email-editor-toolbar button:hover { background: rgba(100, 216, 189, .14); }
.email-editor-toolbar span { width: 1px; margin: .2rem .15rem; background: rgba(255, 255, 255, .15); }

.email-editor {
    min-height: 300px;
    max-height: 60vh;
    overflow: auto;
    padding: 1.1rem 1.15rem;
    color: #253047;
    background: #fff;
    border: 1px solid rgba(223, 232, 248, .22);
    border-radius: 0 0 10px 10px;
    outline: none;
    line-height: 1.7;
}

.email-editor:focus { box-shadow: 0 0 0 3px rgba(100, 216, 189, .22); }
.email-editor blockquote { margin: .7rem 0; padding: .35rem .9rem; border-left: 3px solid #2da68a; color: #526176; }
.email-editor a { color: #147d70; text-decoration: underline; }
.email-editor img { display:block; max-width:100%; height:auto; margin:1rem 0; border-radius:8px; }
.email-editor figure { width:max-content; max-width:100%; margin:1rem auto; text-align:center; }
.email-image-settings { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; }
.email-image-settings[hidden] { display:none !important; }
.email-editor figure[data-email-align="left"] { margin-left:0; margin-right:auto; text-align:left; }
.email-editor figure[data-email-align="right"] { margin-left:auto; margin-right:0; text-align:right; }
.email-editor figure[data-email-size="small"] { width:35%; }
.email-editor figure[data-email-size="medium"] { width:45%; }
.email-editor figure[data-email-size="large"] { width:75%; }
.email-editor figure[data-email-size="full"] { width:100%; }
.email-editor figure img { width:100%; margin:0; }
.email-editor figure img.is-selected { outline:3px solid #64d8bd; outline-offset:3px; }
.email-editor figcaption { margin-top:.5rem; color:#65738a; font-size:.85rem; }
.email-editor-toolbar select,
.email-editor-toolbar input[type="text"] { min-height:36px; max-width:180px; padding:.35rem .55rem; color:#e5edf8; background:#152238; border:1px solid rgba(223,232,248,.2); border-radius:7px; }
.email-editor-toolbar input[type="range"] { width:5.5rem; accent-color:#64d8bd; }
.email-editor-toolbar output[for="email-image-width"] { min-width:2.8rem; color:#d8e4f3; font-size:.82rem; }
.email-editor-toolbar .email-image-remove { color:#ffd7d3; border-color:rgba(255,122,105,.42); }
.email-editor-toolbar .email-image-remove:hover:not(:disabled) { color:#fff; background:rgba(255,122,105,.24); }
.email-editor-toolbar select:disabled,
.email-editor-toolbar input:disabled,
.email-editor-toolbar button:disabled { opacity:.48; cursor:not-allowed; }
.email-editor-toolbar .email-image-tool { align-self:center; color:#aebbd0; font-size:.78rem; }
.email-image-tools-divider { width:1px; min-height:24px; margin:.2rem .15rem; background:rgba(255,255,255,.15); }
.email-live-preview { margin-top:1.5rem; padding:1rem; background:rgba(9,17,32,.45); border:1px solid rgba(223,232,248,.14); border-radius:14px; }
.email-live-preview-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.85rem; }
.email-live-preview-heading h3 { margin:.3rem 0 0; color:var(--white); }
.email-live-preview-heading > span { color:var(--muted); font-size:.82rem; }
.email-live-preview iframe { display:block; width:100%; min-height:640px; background:#f1f4f7; border:1px solid rgba(223,232,248,.18); border-radius:10px; }

.email-compose-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.email-next-batch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.email-next-batch-card p { margin: 0; color: #d7e4f3; }

.email-updates-consent {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: #bcc9da;
    font-size: .93rem;
    line-height: 1.5;
}

.email-updates-consent input { margin-top: .25rem; flex: 0 0 auto; }
.email-preference-panel { max-width: 720px; margin: 0 auto; }

@media (max-width: 900px) {
    .email-workspace-grid { grid-template-columns: 1fr; }
    .email-drafts-panel { position: static; }
}

@media (max-width: 560px) {
    .message-reader-actions,
    .email-compose-actions,
    .email-next-batch-card { align-items: stretch; flex-direction: column; }
    .email-composer-card,
    .email-drafts-panel { padding: 1rem; }
    .email-editor { min-height: 240px; }
    .email-live-preview { padding:.7rem; }
    .email-live-preview iframe { min-height:560px; }
}

.message-reader-close:focus-visible,
.message-open-button:focus-visible {
    outline: 3px solid #8ce4d2;
    outline-offset: 3px;
}

.message-filters { display:grid; grid-template-columns:minmax(240px,2fr) minmax(150px,1fr) minmax(150px,1fr) auto; align-items:end; gap:.85rem; margin:0 0 1rem; padding:1rem; background:rgba(8,15,28,.42); border:1px solid var(--line); border-radius:12px; }
.message-filters .form-group { margin:0; }
.message-filter-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.message-results-count { margin:0 0 .7rem; color:var(--muted); font-size:.9rem; }
.message-pagination { display:flex; align-items:center; justify-content:center; gap:.85rem; margin:1.35rem 0 .2rem; padding-top:1rem; border-top:1px solid rgba(255,255,255,.08); }
.message-pagination .btn { display:inline-flex; min-height:44px; align-items:center; justify-content:center; gap:.45rem; }
.message-pagination [aria-disabled="true"] { opacity:.42; cursor:not-allowed; }
.message-pagination-status { min-width:7rem; color:var(--text); font-size:.9rem; font-weight:700; text-align:center; }
.message-inbox-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.85rem; }
.message-inbox-toolbar .message-results-count { margin:0; }
.message-filter-trigger { display:inline-flex; align-items:center; justify-content:center; gap:.55rem; min-height:44px; }
.message-filter-count { padding:.15rem .5rem; border-radius:999px; color:#101a2a; background:#73dfc2; font-size:.75rem; font-weight:800; }
.message-filter-dialog { width:min(560px,calc(100vw - 28px)); max-width:100%; max-height:min(88vh,700px); margin:auto; padding:1.25rem; overflow-y:auto; color:var(--text); background:linear-gradient(155deg,#1b2941,#111a2b 78%); border:1px solid rgba(115,223,194,.36); border-radius:18px; box-shadow:0 28px 90px rgba(0,0,0,.55); }
.message-filter-dialog::backdrop { background:rgba(5,10,20,.78); backdrop-filter:blur(5px); }
.message-filter-dialog[open] { position:fixed; inset:0; }
.message-filter-dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.message-filter-dialog-heading h2 { margin:.35rem 0; color:var(--white); font-size:1.7rem; }
.message-filter-dialog-heading p { margin:0; color:var(--muted); line-height:1.5; }
.message-filter-dialog .message-filters { grid-template-columns:1fr 1fr; margin:0; padding:0; background:none; border:0; }
.message-filter-dialog .message-search-field,
.message-filter-dialog .message-filter-actions { grid-column:1 / -1; }
.message-filter-dialog .message-filter-actions { margin-top:.25rem; }
.message-filter-trigger:focus-visible,
.message-filter-dialog button:focus-visible,
.message-filter-dialog a:focus-visible { outline:3px solid #8ce4d2; outline-offset:3px; }
.message-table { min-width:860px; }
.message-table tbody tr:hover { background:rgba(255,255,255,.025); }
.message-table td { vertical-align:middle; }
.message-sender-name { color:var(--white); font-size:1rem; }
.message-sender-email { color:#c9d7f0; overflow-wrap:anywhere; }
.message-list-excerpt { max-width:32rem; margin:0 0 .6rem; color:var(--muted); font-size:.9rem; line-height:1.5; overflow-wrap:anywhere; }
.message-delete-form { margin:0; }
.message-delete-form button { min-height:40px; }
.message-open-button { min-height:40px; }

@media (max-width:760px) {
    .message-filters { grid-template-columns:1fr 1fr; }
    .message-search-field { grid-column:1 / -1; }
    .message-filter-actions { grid-column:1 / -1; }
}
@media (max-width:480px) {
    .message-pagination { justify-content:space-between; gap:.5rem; }
    .message-pagination .btn { padding:.65rem .75rem; }
    .message-filters { grid-template-columns:1fr; }
    .message-search-field,
    .message-filter-actions { grid-column:auto; }
}
@media (max-width:480px) {
    .message-inbox-toolbar { align-items:stretch; flex-direction:column; }
    .message-filter-trigger { width:100%; }
    .message-filter-dialog { padding:1rem; }
    .message-filter-dialog .message-filters { grid-template-columns:1fr; }
    .message-filter-dialog .message-filter-actions { align-items:stretch; flex-direction:column; }
}

@media (max-width:760px) {
    .messages-inbox-card { overflow:visible; padding:1rem; }
    .admin-table-wrap .message-table,
    .message-table tbody { display:block; width:100%; min-width:0; }
    .message-table thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
    .message-table tbody { display:grid; gap:.85rem; }
    .message-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:.8rem 1rem; padding:1rem; border:1px solid rgba(255,255,255,.1); border-left:3px solid #73dfc2; border-radius:14px; background:linear-gradient(145deg,rgba(31,45,70,.88),rgba(13,22,39,.9)); box-shadow:0 10px 24px rgba(3,8,20,.14); }
    .message-table tbody tr:nth-child(4n + 2) { border-left-color:#f5b85c; }
    .message-table tbody tr:nth-child(4n + 3) { border-left-color:#bd91ff; }
    .message-table tbody tr:nth-child(4n) { border-left-color:#76b9ff; }
    .message-table td { display:flex; min-width:0; flex-direction:column; align-items:flex-start; gap:.35rem; padding:0; border:0; overflow-wrap:anywhere; }
    .message-table td::before { content:attr(data-label); color:var(--gold); font-size:.68rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
    .message-table td:nth-child(3) { grid-column:1 / -1; padding:.8rem 0; border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); }
    .message-list-excerpt { max-width:none; margin:0 0 .25rem; }
    .message-delete-form,
    .message-delete-form button { width:100%; }
    .message-open-button { width:fit-content; }
}

@media (max-width:420px) {
    .message-table tbody tr { grid-template-columns:1fr; gap:.75rem; }
    .message-table td:nth-child(3) { grid-column:auto; }
    .message-table td[data-label="Actions"] { align-items:stretch; }
    .message-open-button { width:100%; }
}

.gallery-admin-copy p,
td {
    overflow-wrap: anywhere;
}

.dashboard-shell {
    padding: 5.5rem 0 6rem;
}

.dashboard-hero,
.dashboard-metric-card,
.dashboard-feature-card,
.dashboard-feed-card {
    background: linear-gradient(180deg, rgba(18, 26, 49, 0.98), rgba(10, 16, 31, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.dashboard-hero,
.dashboard-metric-card,
.dashboard-feature-card,
.dashboard-feed-card {
    border-radius: 18px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 2rem;
    padding: 2.2rem;
    margin-bottom: 2rem;
}

.dashboard-hero-copy {
    display: grid;
    gap: 1.25rem;
}

.dashboard-hero-copy h1 {
    color: var(--white);
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    text-transform: uppercase;
}

.dashboard-hero-panel {
    display: grid;
    gap: 1.2rem;
    align-content: start;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-panel-label,
.dashboard-metric-label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-hero-metrics {
    display: grid;
    gap: 1rem;
}

.dashboard-hero-metrics > div,
.dashboard-status-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.dashboard-hero-metrics > div > span,
.dashboard-status-row span {
    color: var(--muted);
}

.dashboard-hero-metrics > div > strong,
.dashboard-status-row strong {
    color: var(--white);
    font-size: 1.05rem;
}

.dashboard-managed-total {
    display: grid;
    gap: .45rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(255,255,255,.1);
}

.dashboard-managed-total-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
}

.dashboard-managed-total-head span {
    color: var(--muted);
}

.dashboard-managed-total-head strong {
    color: var(--white);
    font-size: 1.05rem;
}

.dashboard-managed-total p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.65;
}

.dashboard-status-badge { display:inline-flex; align-items:center; width:fit-content; padding:.28rem .58rem; border-radius:999px; font-size:.78rem !important; font-weight:700; line-height:1.3; }
.dashboard-status-badge.status-ready { color:#a9f0d8; background:rgba(83,205,163,.13); border:1px solid rgba(83,205,163,.25); }
.dashboard-status-badge.status-pending { color:#ffd18b; background:rgba(245,184,92,.13); border:1px solid rgba(245,184,92,.25); }
.dashboard-status-badge.status-neutral { color:#c4d5ee; background:rgba(118,185,255,.1); border:1px solid rgba(118,185,255,.2); }

.dashboard-hero-links {
    display: grid;
    gap: 0.8rem;
}

.dashboard-hero-links a,
.dashboard-inline-link {
    color: #dfe5f4;
    font-size: 0.92rem;
    font-weight: 700;
}

.dashboard-hero-links a:hover,
.dashboard-inline-link:hover,
.dashboard-list-item h3 a:hover {
    color: var(--gold);
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin-bottom: 1.8rem;
}

.dashboard-metric-card,
.dashboard-feature-card,
.dashboard-feed-card {
    padding: 1.7rem;
}

.dashboard-metric-card {
    display: grid;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--metric-accent, var(--gold));
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dashboard-metric-card:nth-child(4n + 1) { --metric-accent:#73dfc2; }
.dashboard-metric-card:nth-child(4n + 2) { --metric-accent:#f5b85c; }
.dashboard-metric-card:nth-child(4n + 3) { --metric-accent:#bd91ff; }
.dashboard-metric-card:nth-child(4n) { --metric-accent:#76b9ff; }
.dashboard-metric-card:hover { transform:translateY(-3px); box-shadow:0 18px 42px rgba(3,8,20,.32); }
.dashboard-metric-card .dashboard-metric-icon { color:var(--metric-accent); border-color:color-mix(in srgb,var(--metric-accent) 28%, transparent); background:color-mix(in srgb,var(--metric-accent) 12%, transparent); }
.dashboard-metric-card .dashboard-metric-value { color:var(--metric-accent); }
.dashboard-metric-card .dashboard-inline-link { width:fit-content; text-underline-offset:.2em; }
.dashboard-metric-card .dashboard-inline-link:focus-visible { outline:2px solid var(--metric-accent); outline-offset:4px; border-radius:3px; }

.statistics-manager { margin-top:1.25rem; }
.statistics-manager .repeatable-content-heading { align-items:center; }
.statistics-manager .repeatable-content-heading h3 { margin:0; color:var(--white); font-size:1.25rem; }
.statistics-manager .repeatable-content-heading > div { display:grid; gap:.35rem; }
.statistics-manager .repeatable-content-card { border-top:3px solid var(--stat-accent,#73dfc2); }
.statistics-manager .repeatable-content-card:nth-child(4n + 1) { --stat-accent:#73dfc2; }
.statistics-manager .repeatable-content-card:nth-child(4n + 2) { --stat-accent:#f5b85c; }
.statistics-manager .repeatable-content-card:nth-child(4n + 3) { --stat-accent:#bd91ff; }
.statistics-manager .repeatable-content-card:nth-child(4n) { --stat-accent:#76b9ff; }
.statistics-manager .repeatable-content-card-heading strong { display:flex; align-items:center; gap:.35rem; color:var(--stat-accent,#73dfc2); }
.statistics-manager .repeatable-content-card input:focus-visible,
.statistics-manager .repeatable-content-card textarea:focus-visible { border-color:var(--stat-accent,#73dfc2); box-shadow:0 0 0 3px color-mix(in srgb,var(--stat-accent,#73dfc2) 20%, transparent); }
.impact-editor-manager .repeatable-content-card { border-top-color:var(--stat-accent,#bd91ff); }
}

.dashboard-metric-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.dashboard-metric-icon,
.dashboard-quick-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.18);
    color: var(--gold);
}

.dashboard-metric-value {
    color: var(--white);
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 0.9;
}

.dashboard-metric-copy,
.dashboard-status-note,
.dashboard-quick-copy small,
.dashboard-list-item p {
    color: var(--muted);
}

.dashboard-workspace-grid,
.dashboard-feed-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 1.6rem;
    margin-bottom: 1.8rem;
}

.dashboard-feature-card .section-title,
.dashboard-feed-card .section-title {
    margin-bottom: 1.4rem;
}

.dashboard-category-card { align-content:start; }
.dashboard-category-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.dashboard-admin-category { min-width:0; padding:1.1rem; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.025); scroll-margin-top:2rem; }
.dashboard-category-heading { display:flex; align-items:flex-start; gap:.8rem; margin-bottom:.8rem; }
.dashboard-category-heading h3 { margin:0; color:var(--white); font-size:1.2rem; }
.dashboard-category-heading p { margin:.25rem 0 0; color:var(--muted); font-size:.9rem; }
.dashboard-category-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.dashboard-category-links a { display:flex; min-height:58px; align-items:center; justify-content:space-between; gap:.6rem; padding:.72rem .8rem; color:var(--text); text-decoration:none; border:1px solid rgba(255,255,255,.1); border-radius:11px; background:linear-gradient(135deg,rgba(255,255,255,.045),rgba(255,255,255,.018)); line-height:1.3; transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.dashboard-category-links a:nth-child(4n + 1) { --option-accent:#73dfc2; }
.dashboard-category-links a:nth-child(4n + 2) { --option-accent:#f5b85c; }
.dashboard-category-links a:nth-child(4n + 3) { --option-accent:#bd91ff; }
.dashboard-category-links a:nth-child(4n) { --option-accent:#76b9ff; }
.dashboard-category-links a:hover, .dashboard-category-links a:focus-visible { color:var(--white); border-color:var(--option-accent); background:linear-gradient(135deg,color-mix(in srgb,var(--option-accent) 16%, transparent),rgba(255,255,255,.035)); box-shadow:0 8px 20px rgba(0,0,0,.14); transform:translateY(-2px); outline:none; }
.dashboard-option-label { display:inline-flex; align-items:center; gap:.65rem; }
.dashboard-category-links .dashboard-option-label i { display:grid; width:1.9rem; height:1.9rem; flex:0 0 1.9rem; place-items:center; border-radius:9px; color:var(--option-accent); background:color-mix(in srgb,var(--option-accent) 13%, transparent); font-size:.85rem; }
.dashboard-category-links > a > i { color:var(--option-accent); font-size:.78rem; transition:transform .18s ease; }
.dashboard-category-links a:hover > i, .dashboard-category-links a:focus-visible > i { transform:translateX(3px); }
@media (max-width: 760px) { .dashboard-category-grid { grid-template-columns:1fr; } }
@media (max-width: 520px) { .dashboard-category-links { grid-template-columns:1fr; } }

.dashboard-quick-grid,
.dashboard-status-list,
.dashboard-list {
    display: grid;
    gap: 1rem;
}

.dashboard-quick-link {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dashboard-quick-link:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 166, 35, 0.28);
    background: rgba(245, 166, 35, 0.06);
}

.dashboard-quick-copy {
    display: grid;
    gap: 0.35rem;
}

.dashboard-quick-copy strong,
.dashboard-list-item h3 {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
}

.dashboard-status-card {
    align-content: start;
}

.dashboard-status-list {
    margin-bottom: 1rem;
}

.dashboard-status-row {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.dashboard-list-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-message-preview {
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color .18s ease, padding .18s ease;
}

.dashboard-message-preview:hover,
.dashboard-message-preview:focus-visible {
    padding-right: .6rem;
    padding-left: .6rem;
    background: rgba(115, 223, 194, .08);
    outline: none;
}

.dashboard-list-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.dashboard-list-item span {
    color: #cdd5e8;
    font-size: 0.82rem;
    white-space: nowrap;
}

.embed-panel {
    display: grid;
    gap: 1.25rem;
}

.embed-frame-wrap {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.project-preview-frame {
    width: 100%;
    min-height: 620px;
    border: 0;
    background: #ffffff;
}

.gallery-admin-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-admin-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.gallery-admin-media img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-admin-copy {
    display: grid;
    gap: 0.45rem;
}

.gallery-admin-copy h3 {
    color: var(--white);
    font-size: 1.15rem;
}

.image-editor {
    display: grid;
    gap: 1.25rem;
}

.image-editor-preview-meta {
    display: grid;
    gap: 0.35rem;
}

.image-editor-label {
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.image-editor-filename {
    font-size: 0.92rem;
}

.image-editor-stage {
    display: grid;
    place-items: center;
}

.image-editor-stage canvas {
    width: min(100%, 360px);
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
    cursor: grab;
}

.image-editor-stage canvas.is-dragging {
    cursor: grabbing;
}

.image-editor-controls {
    display: grid;
    gap: 1rem;
}

.image-editor-note {
    font-size: 0.9rem;
}

.image-editor-modal {
    width: min(92vw, 760px);
    margin: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    padding: 0;
}

.image-editor-modal::backdrop {
    background: rgba(5, 10, 24, 0.8);
    backdrop-filter: blur(8px);
}

.image-editor-modal-card {
    display: grid;
    gap: 1.4rem;
    padding: 1.5rem;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.image-editor-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.empty-state {
    padding: 2.5rem;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

[data-reveal] {
    opacity: 1;
    transform: none;
}

body.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

body.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .hero-grid,
    .analysis-showcase,
    .dashboard-hero,
    .dashboard-workspace-grid,
    .dashboard-feed-grid,
    .journey-grid,
    .detail-grid,
    .contact-grid,
    .about-grid,
    .dashboard-grid,
    .admin-grid,
    .auth-grid,
    .strength-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .proficiency-grid,
    .services-grid,
    .projects-grid,
    .gallery-grid,
    .testimonials-grid,
    .insights-grid,
    .footer-grid,
    .dashboard-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portrait-frame {
        margin-left: auto;
        margin-right: auto;
    }

}

@media (max-width: 780px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header .container {
        width: min(calc(100% - 20px), var(--container));
    }

    .site-header {
        overflow: visible;
    }

    .navbar {
        position: relative;
        align-items: center;
        flex-wrap: wrap;
        row-gap: 0.85rem;
        padding: 0.85rem 0;
    }

    .logo {
        min-width: 0;
        flex: 1 1 auto;
        gap: 0.7rem;
    }

    .logo img {
        width: 46px;
    }

    .logo-copy strong {
        font-size: 0.82rem;
        letter-spacing: 0.08em;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 0.2rem);
        left: 0;
        right: 0;
        width: auto;
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        list-style: none;
        background: rgba(7, 23, 21, 0.98);
        border: 1px solid var(--line);
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a,
    .nav-pill {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        padding: 0.9rem 1rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 10px;
    }

    .nav-dropdown > a { justify-content:center; }
    .nav-submenu,
    .nav-dropdown:hover > .nav-submenu,
    .nav-dropdown:focus-within > .nav-submenu { display:grid; position:static; width:100%; min-width:0; max-width:none; max-height:38vh; overflow-y:auto; margin:.25rem 0 .4rem; padding:.35rem; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:rgba(255,255,255,.025); box-shadow:none; }
    .nav-submenu a { justify-content:flex-start; min-height:44px; padding:.65rem .8rem; text-align:left; text-transform:none; }

    .section {
        padding: 5rem 0;
    }

    .section-tight {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 3.5rem;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: clamp(2.8rem, 15vw, 4.2rem);
    }

    .analysis-stage-card,
    .analysis-asset-card {
        border-radius: 14px;
    }

    .analysis-metric-strip {
        grid-template-columns: 1fr;
    }

    .analysis-signal-grid {
        grid-template-columns: 1fr;
    }

    .portrait-card {
        display: flex;
        justify-content: center;
    }

    .hero-aside {
        order: -1;
    }

    .about-grid .quote-card {
        order: -1;
    }

    .portrait-frame,
    .quote-portrait,
    .admin-profile-preview {
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard-shell {
        padding: 4rem 0 4.5rem;
    }

    .admin-shell {
        padding: 3.75rem 0 4.25rem;
    }

    .admin-hero,
    .dashboard-hero,
    .project-form-card,
    .admin-table-wrap,
    .dashboard-metric-card,
    .dashboard-feature-card,
    .dashboard-feed-card {
        padding: 1.35rem;
    }

    .admin-hero,
    .dashboard-hero,
    .project-form-card,
    .admin-table-wrap,
    .dashboard-metric-card,
    .dashboard-feature-card,
    .dashboard-feed-card {
        border-radius: 14px;
    }

    .admin-hero h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .admin-actions,
    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-actions a,
    .admin-actions button,
    .admin-actions form,
    .dashboard-actions a,
    .dashboard-actions button {
        width: 100%;
    }

    .admin-actions form button {
        width: 100%;
    }

    .dashboard-card-head,
    .dashboard-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-status-row,
    .dashboard-hero-metrics > div,
    .dashboard-quick-link {
        grid-template-columns: 1fr;
    }

    .dashboard-status-row,
    .dashboard-hero-metrics > div {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid,
    .proficiency-grid,
    .services-grid,
    .projects-grid,
    .gallery-grid,
    .testimonials-grid,
    .insights-grid,
    .footer-grid,
    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }

    .gallery-admin-item {
        grid-template-columns: 1fr;
    }

    .portfolio-head,
    .footer-meta-row {
        flex-direction: column;
        align-items: start;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        padding: 0.88rem 1rem;
    }

    .live-chat-widget {
        left: 14px;
        bottom: 14px;
    }

    .live-chat-panel {
        left: 0;
        bottom: calc(100% + 0.75rem);
        width: min(92vw, 320px);
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .live-chat-widget,
    .whatsapp-float {
        max-width: calc(100vw - 28px);
    }

    .live-chat-panel {
        width: min(calc(100vw - 28px), 320px);
    }

    .admin-table-wrap table {
        min-width: 640px;
    }

    th,
    td {
        padding: 0.95rem 0.75rem;
    }
}

@media (min-width: 781px) {
    .profile-portrait { aspect-ratio: 4 / 5; }
}

/* Let project stories use the available desktop canvas without stretching
   the site-wide layout or changing the mobile reading experience. */
@media (min-width: 1101px) {
    .project-detail-container {
        width: min(calc(100% - 64px), 1680px);
    }

    .project-detail-page .detail-grid {
        grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
        align-items: start;
        gap: clamp(1.25rem, 2vw, 2rem);
    }

    .project-detail-page .detail-grid > div {
        min-width: 0;
    }

    .project-detail-page .project-article-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 781px) and (max-width: 1100px) {
    .project-detail-container {
        width: min(calc(100% - 40px), 980px);
    }
}

@media (max-width: 560px) {
    .container,
    .site-header .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .hero {
        padding-top: 2.25rem;
    }

    .hero-panel {
        gap: 2rem;
        padding-top: 1.25rem;
    }

    .hero-grid {
        gap: 1.75rem;
    }

    .hero-copy {
        gap: 1.2rem;
        text-align: center;
        min-width: 0;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 12vw, 3.1rem);
        line-height: 0.98;
    }

    .lead {
        font-size: 0.96rem;
    }

    .hero-actions,
    .hero-social {
        justify-content: center;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-aside {
        width: 100%;
        min-width: 0;
    }

    .portrait-frame {
        width: min(100%, 320px);
    }

    .stats-strip {
        margin-top: 2.5rem;
    }

    .stat-box {
        padding: 1.6rem 1rem;
    }

    .stat-box strong {
        font-size: 2.35rem;
    }

    .section,
    .section-tight {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2.2rem;
        gap: 0.9rem;
    }

    .section-header h2,
    .section-title h2,
    .portfolio-head h2,
    .cta-panel h2 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .proficiency-card,
    .service-card,
    .testimonial-card,
    .insight-card,
    .journey-card,
    .education-card,
    .story-card,
    .quote-card,
    .skill-card {
        padding: 1.35rem;
    }

    .portfolio-head {
        gap: 1.2rem;
        margin-bottom: 2rem;
    }

    .portfolio-head > div:last-child {
        width: 100%;
        justify-items: stretch !important;
    }

    .filter-row {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .filter-btn,
    .project-actions .btn,
    .hero-actions .btn,
    .resume-card .btn {
        width: 100%;
        justify-content: center;
    }

    .project-info,
    .gallery-copy {
        padding: 1.2rem;
        gap: 1rem;
    }

    .section-header,
    .portfolio-head,
    .story-stack,
    .project-info,
    .gallery-copy,
    .testimonial-card,
    .insight-card,
    .journey-card,
    .education-card,
    .quote-card,
    .story-card {
        min-width: 0;
    }

    .project-visual {
        min-height: 160px;
    }

    .gallery-media,
    .gallery-media img {
        min-height: 200px;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-tags,
    .gallery-meta,
    .chip-row,
    .hero-actions,
    .filter-row {
        min-width: 0;
    }

    .project-tags span,
    .gallery-meta span,
    .chip,
    .eyebrow,
    .filter-btn {
        max-width: 100%;
    }

    .project-info p,
    .gallery-copy p,
    .testimonial-quote,
    .journey-card p,
    .education-card p,
    .story-stack p,
    .quote-card li {
        overflow-wrap: anywhere;
    }

    .proficiency-top {
        gap: 0.65rem;
        font-size: 0.76rem;
    }

    .journey-column {
        gap: 1.2rem;
    }

    .testimonial-card,
    .insight-card {
        gap: 0.9rem;
    }

    .cta-panel {
        padding: 3.75rem 1.2rem;
    }
}

/* Richer portfolio theme with Bootstrap-like component states and responsive behavior. */
body { background: radial-gradient(ellipse at 86% 8%, rgba(201,154,255,.12), transparent 28%), radial-gradient(ellipse at 5% 42%, rgba(115,223,194,.07), transparent 30%), linear-gradient(180deg, #111827 0%, #172238 50%, #141e32 100%); }
.section { padding: 6.25rem 0; }
.section-tight { padding: 4.5rem 0; }
.site-header { background: rgba(17,24,39,.9); border-bottom: 1px solid rgba(222,232,250,.12); }
.site-header .navbar { min-height: 76px; }
.nav-menu a { transition: color .2s ease, background .2s ease, transform .2s ease; }
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--mint); }
.nav-menu a.is-active { color: var(--gold); }
.hero { padding-top: 3.5rem; }
.hero-panel { position: relative; overflow: hidden; padding: clamp(1.4rem, 4vw, 3.2rem); border: 1px solid rgba(222,232,250,.11); border-radius: 30px; background: radial-gradient(ellipse at 78% 14%, rgba(201,154,255,.16), transparent 34%), radial-gradient(ellipse at 12% 100%, rgba(115,223,194,.12), transparent 40%), rgba(25,36,58,.62); }
.hero-grid { gap: clamp(2rem, 5vw, 4.25rem); }
.hero-copy h1 { max-width: 11ch; color: var(--text); font-size: clamp(3rem, 7.2vw, 5.8rem); line-height: .98; text-transform: none; }
.hero-copy h1 span { color: var(--gold); }
.hero-role { color: var(--mint); }
.eyebrow { border-color: rgba(255,189,112,.42); border-radius: 999px; background: rgba(255,189,112,.08); color: var(--gold); letter-spacing: .11em; }
.portrait-frame { border-radius: 28px 28px 110px 28px; background: linear-gradient(145deg, var(--lilac), var(--mint) 52%, var(--gold)); padding: 5px; box-shadow: 0 24px 55px rgba(4,9,20,.35); }
.portrait-frame::after { inset: 5px; border: 1px solid rgba(255,255,255,.28); border-radius: 24px 24px 106px 24px; }
.profile-portrait { border-radius: 24px 24px 106px 24px; filter: saturate(1.06) contrast(1.03); }
.stats-strip { background: linear-gradient(95deg, rgba(36,53,80,.92), rgba(34,56,74,.92), rgba(43,45,74,.92)); border-color: rgba(222,232,250,.12); }
.stat-box strong { color: var(--gold); }
.stat-box:nth-child(2) strong { color: var(--mint); }
.stat-box:nth-child(3) strong { color: var(--lilac); }
.stat-box:nth-child(4) strong { color: #ff8f7f; }
.section-header h2, .section-title h2, .portfolio-head h2 { color: var(--text); }
.section-header h2 { max-width: 19ch; margin-inline: auto; font-size: clamp(2.25rem, 4.4vw, 3.6rem); }
.quote-card > .eyebrow { margin-bottom: .65rem; }
.proficiency-card, .service-card, .journey-card, .education-card, .skill-card, .story-card, .quote-card, .contact-panel, .detail-card, .dashboard-card, .testimonial-card, .insight-card { border-radius: 18px; background: linear-gradient(145deg, rgba(31,45,70,.96), rgba(24,37,60,.96)); border-color: rgba(222,232,250,.13); box-shadow: 0 16px 38px rgba(4,9,20,.2); }
.proficiency-card, .service-card, .journey-card, .education-card, .skill-card, .story-card, .quote-card, .contact-panel { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.proficiency-card:hover, .service-card:hover, .journey-card:hover, .education-card:hover, .skill-card:hover { transform: translateY(-4px); border-color: rgba(115,223,194,.38); box-shadow: 0 20px 44px rgba(4,9,20,.3); }
.service-card:nth-child(3n + 1) { border-top: 3px solid var(--mint); }
.service-card:nth-child(3n + 2) { border-top: 3px solid var(--coral); }
.service-card:nth-child(3n) { border-top: 3px solid var(--lilac); }
.service-icon { border-color: rgba(115,223,194,.32); background: rgba(115,223,194,.11); color: var(--mint); border-radius: 12px; }
.proficiency-card:nth-child(4n + 1) { border-left: 3px solid var(--mint); }
.proficiency-card:nth-child(4n + 2) { border-left: 3px solid var(--coral); }
.proficiency-card:nth-child(4n + 3) { border-left: 3px solid var(--lilac); }
.proficiency-card:nth-child(4n) { border-left: 3px solid var(--gold); }
.chip, .project-tags span, .badge { border-radius: 999px; background: rgba(115,223,194,.08); border-color: rgba(115,223,194,.2); color: #d8f8ee; }
.chip:hover { border-color: rgba(255,189,112,.5); background: rgba(255,189,112,.1); }
.btn { min-height: 46px; border-radius: 10px; box-shadow: 0 5px 14px rgba(3,8,18,.14); transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(3,8,18,.22); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .filter-btn:focus-visible, .nav-toggle:focus-visible, .hero-social a:focus-visible, .footer-social a:focus-visible { outline: 3px solid rgba(115,223,194,.65); outline-offset: 3px; }
.btn, .btn-primary { background: var(--gold); color: #20263a; }
.btn-outline { border-color: rgba(115,223,194,.46); color: var(--mint); background: rgba(115,223,194,.04); }
.btn-outline:hover { border-color: var(--mint); background: var(--mint); color: #142338; }
.btn-ghost { border-color: rgba(201,154,255,.3); color: #e0c9ff; background: rgba(201,154,255,.08); }
.filter-btn { border-radius: 999px; border-color: rgba(222,232,250,.18); background: rgba(36,53,80,.75); color: #d4deeb; text-transform: none; letter-spacing: .015em; transition: all .18s ease; }
.filter-btn.active, .filter-btn:hover { background: var(--lilac); border-color: var(--lilac); color: #211b36; }
.project-card, .gallery-card { border-radius: 16px; border-color: rgba(222,232,250,.14); transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.project-card:hover, .gallery-card:hover { transform: translateY(-5px); border-color: rgba(255,189,112,.4); box-shadow: 0 22px 48px rgba(4,9,20,.3); }
.project-visual { background: linear-gradient(135deg, #31486a, #432f62 60%, #1e5060); }
.project-visual::after { background: linear-gradient(180deg, transparent 35%, rgba(11,17,31,.66) 100%); }
.project-info { background: linear-gradient(155deg, rgba(31,45,70,.98), rgba(22,34,55,.98)); }
.project-info h3, .gallery-copy h3 { color: var(--text); }
.project-detail-media, .project-gallery-image-link img { border-color: rgba(115,223,194,.24); }
.impact-card:nth-child(4n + 1) { border-top: 3px solid var(--coral); }
.impact-card:nth-child(4n + 2) { border-top: 3px solid var(--mint); }
.impact-card:nth-child(4n + 3) { border-top: 3px solid var(--lilac); }
.impact-card:nth-child(4n) { border-top: 3px solid var(--gold); }
.journey-card small, .education-card small { color: var(--mint); }
.resume-card { background: radial-gradient(ellipse at 90% 10%, rgba(201,154,255,.2), transparent 45%), linear-gradient(145deg, rgba(31,45,70,.96), rgba(24,37,60,.96)); }
.cta-panel { border: 1px solid rgba(201,154,255,.28); border-radius: 28px; background: radial-gradient(ellipse at 10% 10%, rgba(255,122,105,.13), transparent 35%), radial-gradient(ellipse at 90% 90%, rgba(115,223,194,.16), transparent 42%), var(--panel); }
.cta-panel h2 { max-width: 18ch; margin-inline: auto; color: var(--text); }
.site-footer { background: #0d1423; border-top: 1px solid rgba(222,232,250,.12); }
.footer-label { color: var(--gold); }
.hero-social a, .footer-social a { border-color: rgba(201,154,255,.25); background: rgba(201,154,255,.07); transition: transform .18s ease, color .18s ease, background .18s ease; }
.hero-social a:hover, .footer-social a:hover { transform: translateY(-3px); background: var(--lilac); color: #1b1b30; }
.projects-showcase-section { background: linear-gradient(180deg, #151d32, #111827); }
.showcase-project-card { background: #202d47; border-color: rgba(222,232,250,.16); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.showcase-project-card:hover { transform: translateY(-6px); border-color: rgba(255,189,112,.48); box-shadow: 0 24px 48px rgba(3,8,18,.36); }
.showcase-project-info h3 { color: var(--lilac); }
.showcase-project-actions .btn { border-color: var(--lilac); background: rgba(201,154,255,.08); color: #e4ceff; }
.showcase-project-actions .btn:hover { background: var(--lilac); color: #211b36; }
.showcase-project-actions .btn-ghost { border-color: rgba(115,223,194,.32); color: var(--mint); }
.showcase-empty-state { background: #202d47; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: 0; border-color: var(--mint); box-shadow: 0 0 0 .22rem rgba(115,223,194,.18); }
.contact-list li { border-color: rgba(222,232,250,.12); }
.location-visibility-toggle input:checked + .location-toggle-track { background: var(--mint); }
.youtube-feature-card { border-color: rgba(201,154,255,.28); background: radial-gradient(ellipse at 0 0, rgba(201,154,255,.12), transparent 42%), linear-gradient(145deg, var(--panel-2), var(--panel-3)); }
.live-chat-trigger { background: #253550; border-color: rgba(115,223,194,.3); }
.whatsapp-float { background: #1e9b6a; }
.empty-state { border-color: rgba(201,154,255,.32); background: rgba(201,154,255,.055); border-radius: 16px; }
::selection { background: rgba(201,154,255,.46); color: #111827; }
@media (max-width: 780px) {
    .section { padding: 4.25rem 0; }
    .section-tight { padding: 3.5rem 0; }
    .hero-panel { padding: 1.15rem; border-radius: 22px; }
    .hero-copy h1 { font-size: clamp(2.8rem, 12vw, 4.3rem); }
    .site-header .nav-menu { background: rgba(18,27,45,.98); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Small feedback details make navigation and browsing feel responsive. */
.page-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 1200;
    width: var(--page-progress, 0%);
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--mint), var(--lilac) 58%, var(--gold));
    box-shadow: 0 0 12px rgba(115, 223, 194, .42);
    transition: width .12s linear;
}

body.reveal-ready [data-reveal] { transition-delay: var(--reveal-delay, 0ms); }
.filter-status {
    align-self: center;
    margin-left: .25rem;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .filter-status { flex-basis: 100%; margin: .15rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .page-progress { transition: none; }
}

/* Keep supporting text comfortable to read, including on narrow screens. */
.btn-sm,
.filter-btn,
.showcase-project-actions .btn { font-size: .82rem; }
.eyebrow,
.stat-box span,
.gallery-meta span,
.project-tags span,
.badge,
.chip,
.journey-card small,
.education-card small,
.testimonial-person span,
.insight-card small { font-size: .75rem; }
.project-tags span,
.badge,
.chip { letter-spacing: .025em; }
.journey-card small,
.education-card small,
.insight-card small { letter-spacing: .07em; }

.password-input-wrap { position: relative; width: 100%; }
.password-input-wrap input { padding-right: 4.5rem; }
.password-visibility-toggle {
    position: absolute;
    top: 50%;
    right: .8rem;
    min-height: 36px;
    padding: .35rem .55rem;
    transform: translateY(-50%);
    border: 1px solid rgba(115,223,194,.3);
    border-radius: 7px;
    background: rgba(115,223,194,.08);
    color: var(--mint);
    font: 700 .82rem/1 'Source Sans 3', sans-serif;
    cursor: pointer;
}
.password-visibility-toggle:hover { background: rgba(115,223,194,.16); }
.password-visibility-toggle:focus-visible { outline: 3px solid rgba(115,223,194,.65); outline-offset: 2px; }

/* Keep section badges and headings from touching inside content cards. */
.quote-card > .eyebrow,
.contact-panel > .eyebrow,
.project-article-card > .eyebrow,
.project-gallery-card > .eyebrow,
.project-showcase-heading .eyebrow,
.portfolio-head > div:first-child > .eyebrow {
    display: table;
    margin-bottom: .65rem;
}
.project-showcase-heading > div,
.portfolio-head > div:first-child {
    display: grid;
    justify-items: start;
    gap: .45rem;
}
.project-showcase-heading p { margin-top: 0; }
.contact-panel > h2 { margin-bottom: 1.15rem; }
.showcase-project-info { padding: clamp(1.2rem, 2vw, 1.5rem); }
.project-article-content { line-height: 1.85; }

/* Project detail reading layout: compact cards, clear text spacing and
   comfortable controls on tablets and phones. */
@media (max-width: 1100px) {
    .project-detail-page .detail-grid > aside { order: -1; }
}

@media (max-width: 780px) {
    .project-detail-page { padding-block:3rem; }
    .project-detail-container { width:min(calc(100% - 28px), 820px); }
    .project-detail-page .detail-grid { gap:1rem; }
    .project-detail-page .detail-grid > div,
    .project-detail-page .detail-grid > aside { display:grid; align-content:start; gap:1rem; min-width:0; }
    .project-detail-page .detail-card { min-width:0; padding:1.3rem; border-radius:16px; }
    .project-detail-page .project-article-card,
    .project-detail-page .project-gallery-card,
    .project-detail-page .dashboard-launch-card { margin-top:0; }
    .project-detail-page .project-back { margin-bottom:.85rem; }
    .project-detail-page .detail-card h1 { margin:.35rem 0 .8rem; font-size:clamp(1.85rem,6vw,2.8rem); line-height:1.12; overflow-wrap:anywhere; }
    .project-detail-page .detail-card h2 { line-height:1.18; overflow-wrap:anywhere; }
    .project-detail-page .lead { font-size:1rem; line-height:1.65; }
    .project-detail-page .project-meta { gap:.55rem; }
    .project-detail-page .badge { max-width:100%; white-space:normal; line-height:1.4; }
    .project-detail-page .project-article-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
    .project-detail-page .project-gallery-image-link { min-width:0; gap:.6rem; line-height:1.5; }
    .project-detail-page .project-gallery-image-link img { max-height:340px; }
    .project-detail-page .project-gallery-image-link span { font-size:.92rem; overflow-wrap:anywhere; }
    .project-detail-page .project-article-content { font-size:1rem; line-height:1.75; }
    .project-detail-page .project-article-content img { width:100%; margin:1rem auto; }
    .project-detail-page .case-study-grid { gap:.75rem; }
    .project-detail-page .case-study-step { min-width:0; padding:.9rem; }
    .project-detail-page .case-study-step p,
    .project-detail-page .case-study-impact strong { line-height:1.65; overflow-wrap:anywhere; }
    .project-detail-page .file-list { gap:.75rem; }
    .project-detail-page .file-item { min-width:0; padding:1rem; border-radius:12px; }
    .project-detail-page .file-item > div { min-width:0; max-width:100%; }
    .project-detail-page .file-item h3 { overflow-wrap:anywhere; }
    .project-detail-page .project-actions { display:flex; flex-wrap:wrap; gap:.6rem; }
    .project-detail-page .project-actions .btn { min-width:0; }
    .project-detail-page .stack-form { gap:.65rem; }
}

@media (max-width: 560px) {
    .project-detail-page { padding-block:2.35rem; }
    .project-detail-container { width:calc(100% - 22px); }
    .project-detail-page .detail-grid { gap:.8rem; }
    .project-detail-page .detail-grid > div,
    .project-detail-page .detail-grid > aside { gap:.8rem; }
    .project-detail-page .detail-card { padding:1.05rem; border-radius:14px; }
    .project-detail-page .project-detail-media { margin-bottom:1rem; border-radius:11px; }
    .project-detail-page .project-detail-image { max-height:360px; object-fit:contain; background:rgba(7,13,27,.45); }
    .project-detail-page .project-article-gallery { grid-template-columns:1fr; gap:1rem; }
    .project-detail-page .project-gallery-image-link img { max-height:320px; }
    .project-detail-page .project-article-content h2 { margin-top:1.35em; }
    .project-detail-page .case-study-impact { padding:.85rem; }
    .project-detail-page .file-item { align-items:stretch; padding:.85rem; }
    .project-detail-page .project-actions { flex-direction:column; width:100%; }
    .project-detail-page .project-actions .btn { width:100%; justify-content:center; }
    .project-detail-page .project-back .btn { min-height:44px; }
}

/* Make the expertise area read as a set of practical capability cards. */
#expertise .section-header { max-width: 820px; margin-bottom: 2.8rem; }
#expertise .section-header > .eyebrow { justify-self: center; }
#expertise .section-header h2 { max-width: 24ch; }
#expertise .section-header p { max-width: 62ch; }
#expertise .proficiency-grid { gap: 1.15rem; align-items: stretch; }
#expertise .proficiency-card {
    --expertise-accent: var(--mint);
    display: grid;
    align-content: start;
    gap: .9rem;
    min-width: 0;
    min-height: 280px;
    padding: 1.45rem;
    border-top: 3px solid var(--expertise-accent);
    border-left: 1px solid var(--line);
    background: radial-gradient(ellipse at 95% 0, color-mix(in srgb, var(--expertise-accent) 12%, transparent), transparent 46%), linear-gradient(145deg, rgba(31,45,70,.98), rgba(24,37,60,.98));
}
#expertise .proficiency-card:nth-child(4n + 2) { --expertise-accent: var(--coral); }
#expertise .proficiency-card:nth-child(4n + 3) { --expertise-accent: var(--lilac); }
#expertise .proficiency-card:nth-child(4n) { --expertise-accent: var(--gold); }
#expertise .proficiency-card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .25rem; }
#expertise .proficiency-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid color-mix(in srgb, var(--expertise-accent) 38%, transparent); border-radius: 13px; background: color-mix(in srgb, var(--expertise-accent) 12%, transparent); color: var(--expertise-accent); font-size: 1rem; }
#expertise .proficiency-index { color: var(--expertise-accent); font-size: .75rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
#expertise .proficiency-card h3 { margin: 0; color: var(--text); font-size: 1.45rem; line-height: 1.15; }
#expertise .proficiency-description { min-height: 3.1em; color: var(--muted); font-size: .95rem; line-height: 1.5; }
#expertise .proficiency-list { display: flex; flex-wrap: wrap; align-content: start; gap: .5rem; margin-top: .25rem; }
#expertise .proficiency-list .chip { max-width: 100%; padding: .42rem .68rem; border-color: color-mix(in srgb, var(--expertise-accent) 30%, transparent); background: color-mix(in srgb, var(--expertise-accent) 9%, transparent); color: #e8edf6; font-size: .82rem; font-weight: 650; letter-spacing: 0; line-height: 1.35; text-transform: none; white-space: normal; }
#expertise .proficiency-list .chip:hover { border-color: var(--expertise-accent); background: color-mix(in srgb, var(--expertise-accent) 16%, transparent); }
@media (max-width: 780px) {
    #expertise .proficiency-card { min-height: 0; }
    #expertise .proficiency-description { min-height: 0; }
}

.certification-card { display: grid; align-content: start; gap: 1rem; }
.certification-copy { display: grid; gap: .35rem; }
.certification-card h3 { margin: 0; }
.certification-image { display: grid; gap: .55rem; padding: .45rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); }
.certification-image img { width: 100%; aspect-ratio: 16 / 10; max-height: 280px; object-fit: contain; border-radius: 9px; background: #f4f5f7; }
.certification-image span { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .5rem .1rem; color: var(--mint); font-size: .85rem; font-weight: 700; }
.certificate-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.certificate-manager { display:grid; gap:1rem; margin:.75rem 0 1.5rem; }
.certificate-manager-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem; background:rgba(115,223,194,.07); border:1px solid rgba(115,223,194,.2); border-radius:12px; }
.certificate-manager-heading h3 { margin:0; }
.certificate-manager-heading .form-help { margin:.2rem 0 0; }
.certificate-admin-item { display: grid; align-content: start; gap: .8rem; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.certificate-admin-item-heading { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
.certificate-admin-item-heading strong { color:var(--text); line-height:1.35; }
.certificate-admin-preview-link { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f4f5f7; }
.certificate-admin-preview { display: block; width: 100%; max-height: 200px; object-fit: contain; }
.repeatable-content-manager { display:grid; gap:1rem; margin:.7rem 0 1.5rem; }
.repeatable-content-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem; background:rgba(115,223,194,.07); border:1px solid rgba(115,223,194,.2); border-radius:12px; }
.repeatable-content-heading .form-help { margin:0; }
.repeatable-content-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.repeatable-content-card { display:grid; align-content:start; gap:.8rem; min-width:0; padding:1rem; background:rgba(255,255,255,.025); border:1px solid var(--line); border-radius:14px; }
.repeatable-content-card-heading { display:flex; align-items:center; justify-content:space-between; gap:.75rem; color:var(--text); }
.repeatable-content-card .form-group { margin:0; }
.repeatable-content-card textarea { min-height:6rem; }
.repeatable-entry-image-preview { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; }
.repeatable-entry-image-preview[hidden] { display:none; }
.repeatable-entry-image-preview img { display:block; width:100px; height:76px; object-fit:cover; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.04); }
@media (max-width: 640px) {
    .certificate-upload-grid { grid-template-columns: 1fr; }
    .certificate-manager-heading { align-items:flex-start; flex-direction:column; }
    .repeatable-content-list { grid-template-columns:1fr; }
    .repeatable-content-heading { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 560px) {
    .hero-aside { margin: .15rem 0 .4rem; }
    .portrait-card { display: flex; justify-content: center; }
    .portrait-frame {
        width: min(72vw, 280px);
        max-width: 280px;
        margin: 0 auto;
        padding: 4px;
        border-radius: 22px;
        box-shadow: 0 14px 32px rgba(4, 9, 20, .3);
    }
    .portrait-frame::after { display: none; }
    .profile-portrait {
        aspect-ratio: 1 / 1;
        border-radius: 18px;
        object-position: center 24%;
    }
}

@media (max-width: 780px) {
    .site-header .navbar {
        min-height: 68px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: .6rem 0;
    }
    .site-header .logo {
        position: relative;
        left: auto;
        width: max-content;
        max-width: calc(100% - 62px);
        flex: 0 1 auto;
        justify-content: flex-start;
        gap: .55rem;
        transform: none;
    }
    .site-header .logo img { width: 40px; flex: 0 0 40px; }
    .site-header .logo-copy { min-width: 0; }
    .site-header .logo-copy strong {
        font-size: clamp(.62rem, 3vw, .76rem);
        letter-spacing: .06em;
        white-space: nowrap;
    }
    .site-header .nav-toggle {
        position: absolute;
        top: 50%;
        right: 0;
        margin: 0;
        transform: translateY(-50%);
    }
}
.email-template-colors {
    margin-top: 1rem;
}

.email-color-field {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.email-color-field input[type="color"] {
    width: 3.25rem;
    min-width: 3.25rem;
    height: 2.75rem;
    padding: .25rem;
    cursor: pointer;
}

.email-color-field input[readonly] {
    max-width: 8rem;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.email-current-logo { display:flex; align-items:center; gap:.75rem; margin-top:.75rem; color:var(--muted); font-size:.88rem; }
.email-current-logo img { width:auto; max-width:180px; height:58px; padding:.4rem; object-fit:contain; background:#152238; border:1px solid var(--line); border-radius:8px; }

.project-featured-toggle { margin:.25rem 0 1rem; }
.project-featured-toggle .location-toggle-copy { display:grid; gap:.1rem; }

@media (max-width: 980px) {
    .admin-site-header .navbar { position:relative; }
    .admin-site-header .nav-toggle { display:inline-flex; margin-left:auto; }
    .admin-site-header .nav-menu,
    .admin-site-header .nav-menu.active { position:absolute; top:calc(100% + .2rem); left:0; right:0; width:auto; max-height:calc(100vh - 90px); overflow-y:auto; padding:1rem; flex-direction:column; align-items:stretch; gap:.4rem; background:rgba(18,27,45,.98); border:1px solid var(--line); box-shadow:0 22px 60px rgba(0,0,0,.4); z-index:1001; }
    .admin-site-header .nav-menu { display:none; }
    .admin-site-header .nav-menu.active { display:flex; }
    .admin-site-header .nav-menu li { width:100%; }
    .admin-site-header .nav-menu > li > a { display:flex; width:100%; min-height:48px; align-items:center; justify-content:center; padding:.75rem 1rem; text-align:center; border:1px solid rgba(255,255,255,.06); border-radius:10px; background:rgba(255,255,255,.025); }
    .admin-site-header .nav-submenu,
    .admin-site-header .nav-dropdown:hover > .nav-submenu,
    .admin-site-header .nav-dropdown:focus-within > .nav-submenu { display:grid; position:static; width:100%; min-width:0; max-width:none; max-height:34vh; overflow-y:auto; margin:.25rem 0 .4rem; padding:.35rem; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:rgba(255,255,255,.025); box-shadow:none; }
    .admin-site-header .nav-submenu a { justify-content:flex-start; min-height:44px; padding:.65rem .8rem; text-align:left; text-transform:none; }
}
.project-featured-toggle small { color:var(--muted); font-size:.83rem; }
.project-case-study-fields { margin:.5rem 0 1rem; padding:1.2rem; background:rgba(10,18,32,.34); border:1px solid var(--line); border-radius:14px; }
.project-case-study-fields .section-title { margin-bottom:.4rem; }
.project-case-study-fields .section-title h3 { margin:.3rem 0; }
.project-case-study-fields .admin-grid { margin-top:.9rem; }

.project-case-study { overflow:hidden; }
.project-case-study-heading { margin-bottom:1rem; }
.project-case-study-heading h2 { margin:.35rem 0 0; }
.case-study-impact { display:grid; gap:.2rem; margin:0 0 1rem; padding:1rem 1.1rem; background:linear-gradient(115deg,rgba(115,223,194,.13),rgba(201,154,255,.1)); border:1px solid rgba(115,223,194,.32); border-radius:12px; }
.case-study-impact span { color:var(--mint); font-size:.76rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.case-study-impact strong { color:var(--text); font-size:1.15rem; }
.case-study-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.85rem; }
.case-study-step { padding:1rem; background:rgba(255,255,255,.035); border:1px solid var(--line); border-radius:12px; }
.case-study-step h3 { margin:0 0 .45rem; color:var(--mint); font-size:1.05rem; }
.case-study-step p { margin:0; color:var(--muted); white-space:normal; }
.featured-project-outcome { padding:.65rem .8rem; color:var(--muted); background:rgba(115,223,194,.08); border-left:3px solid var(--mint); border-radius:0 8px 8px 0; font-size:.92rem; }
.featured-project-outcome strong { display:block; margin-bottom:.12rem; color:var(--mint); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; }

@media (max-width:650px) {
    .case-study-grid { grid-template-columns:1fr; }
    .project-case-study-fields { padding:.9rem; }
}

/* Keep the admin navigation short, calm, and consistent across admin pages. */
.admin-site-header .nav-menu { gap:.45rem; }
.admin-site-header .nav-menu > li > a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:.55rem .8rem;
    border:1px solid transparent;
    border-radius:9px;
    color:#d7dced;
    font-size:.86rem;
    font-weight:650;
    letter-spacing:.01em;
    text-transform:none;
    white-space:nowrap;
}
.admin-site-header .nav-menu > li > a:hover,
.admin-site-header .nav-menu > li > a:focus-visible { border-color:rgba(115,223,194,.2); background:rgba(115,223,194,.08); color:var(--mint); }
.admin-site-header .nav-menu > li > .nav-pill-preview { border-color:rgba(201,154,255,.2); background:rgba(201,154,255,.07); color:#e3ceff; }
.admin-site-header .nav-menu > li > .nav-pill-logout { color:#ffb6ab; }
.admin-site-header .nav-menu > li > .nav-pill-logout:hover { border-color:rgba(255,143,127,.24); background:rgba(255,143,127,.08); color:#ffd0c8; }

@media (max-width:980px) {
    .admin-site-header .nav-menu > li > a { display:flex; width:100%; min-height:46px; text-align:center; background:rgba(255,255,255,.025); border-color:rgba(255,255,255,.06); }
}

.hiv-dashboard-heading { display:grid; justify-items:start; gap:1rem; max-width:920px; margin:0 auto 1.6rem; text-align:left; }
.hiv-dashboard-heading h1 { margin:0; color:var(--text); font-size:clamp(2.3rem,5vw,4.2rem); line-height:1.04; }
.hiv-dashboard-heading > p { max-width:70ch; margin:0; color:var(--muted); font-size:1.08rem; }
.hiv-dashboard-notice { display:flex; gap:.85rem; align-items:flex-start; margin:0 0 1.5rem; padding:1rem 1.2rem; color:#e8e4ce; background:rgba(255,189,112,.08); border:1px solid rgba(255,189,112,.3); border-radius:14px; }
.hiv-dashboard-notice > i { margin-top:.2rem; color:var(--gold); }
.hiv-dashboard-notice p { margin:0; line-height:1.6; }
.hiv-dashboard-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-bottom:1.2rem; }
.hiv-dashboard-kpis article,.hiv-dashboard-panel,.hiv-dashboard-callout { min-width:0; padding:1.2rem; background:linear-gradient(145deg,rgba(31,45,70,.96),rgba(22,34,55,.96)); border:1px solid rgba(222,232,250,.14); border-radius:16px; box-shadow:0 14px 34px rgba(3,8,18,.14); }
.hiv-dashboard-kpis article { display:grid; gap:.35rem; border-top:3px solid var(--mint); }
.hiv-dashboard-kpis article:nth-child(3n+2) { border-top-color:var(--lilac); }
.hiv-dashboard-kpis article:nth-child(3n) { border-top-color:var(--gold); }
.hiv-dashboard-kpis article > span,.hiv-dashboard-kpis small { color:var(--muted); font-size:.9rem; line-height:1.45; }
.hiv-dashboard-kpis strong { color:var(--text); font:650 clamp(1.8rem,3.2vw,2.5rem)/1.05 'Newsreader',Georgia,serif; }
.hiv-dashboard-visuals { margin:1.6rem 0 2rem; }
.hiv-visuals-heading { display:flex; justify-content:space-between; align-items:end; gap:1.5rem; margin-bottom:1rem; }
.hiv-visuals-heading h2 { margin:.45rem 0 0; color:var(--text); font-size:clamp(1.55rem,2.6vw,2.25rem); }
.hiv-visuals-heading p { max-width:58ch; margin:0; color:var(--muted); line-height:1.6; }
.hiv-visual-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.hiv-visual-card { min-width:0; margin:0; overflow:hidden; background:linear-gradient(145deg,rgba(31,45,70,.96),rgba(22,34,55,.96)); border:1px solid rgba(222,232,250,.14); border-radius:14px; box-shadow:0 14px 34px rgba(3,8,18,.14); }
.hiv-visual-card > a { position:relative; display:grid; min-height:190px; place-items:center; overflow:hidden; background:#0e1727; }
.hiv-visual-card img { display:block; width:100%; height:260px; object-fit:contain; transition:transform .22s ease,filter .22s ease; }
.hiv-visual-card > a:hover img { transform:scale(1.025); filter:brightness(.78); }
.hiv-visual-card > a > span { position:absolute; right:.7rem; bottom:.7rem; display:inline-flex; align-items:center; gap:.4rem; padding:.45rem .65rem; color:#f7f2e8; background:rgba(11,17,31,.88); border:1px solid rgba(201,154,255,.48); border-radius:999px; font-size:.78rem; font-weight:700; opacity:0; transform:translateY(4px); transition:opacity .18s ease,transform .18s ease; }
.hiv-visual-card > a:hover > span,.hiv-visual-card > a:focus-visible > span { opacity:1; transform:translateY(0); }
.hiv-visual-card figcaption { padding:.85rem .95rem 1rem; color:var(--muted); font-size:.87rem; line-height:1.55; }
.hiv-dashboard-chart-grid,.hiv-dashboard-bottom-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.2rem; margin:1.2rem 0; }
.hiv-panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:1rem; }
.hiv-panel-heading h2,.hiv-dashboard-files h2,.hiv-dashboard-callout h2 { margin:.35rem 0 0; color:var(--text); font-size:clamp(1.35rem,2vw,1.8rem); }
.hiv-panel-heading p { margin:.35rem 0 0; color:var(--muted); }
.hiv-panel-total { flex:0 0 auto; padding:.35rem .65rem; color:var(--mint); background:rgba(115,223,194,.09); border:1px solid rgba(115,223,194,.2); border-radius:999px; font-size:.82rem; font-weight:700; }
.hiv-bar-list,.hiv-outcome-list { display:grid; gap:.9rem; }
.hiv-bar-row > div:first-child,.hiv-outcome-row > div:first-child { display:flex; justify-content:space-between; gap:.75rem; margin-bottom:.35rem; color:var(--text); font-size:.93rem; }
.hiv-bar-row strong,.hiv-outcome-row strong { color:var(--gold); }
.hiv-bar-track { width:100%; height:10px; overflow:hidden; background:rgba(255,255,255,.08); border-radius:999px; }
.hiv-bar-track > span { display:block; height:100%; min-width:3px; background:linear-gradient(90deg,var(--mint),#5a9fd5); border-radius:inherit; }
.hiv-outcome-row:nth-child(2) .hiv-bar-track > span { background:var(--gold); }
.hiv-outcome-row:nth-child(3) .hiv-bar-track > span { background:var(--coral); }
.hiv-outcome-row:nth-child(4) .hiv-bar-track > span { background:var(--lilac); }
.hiv-panel-note { margin:.95rem 0 0; color:var(--muted); font-size:.88rem; line-height:1.55; }
.hiv-facility-panel { margin:1.2rem 0; }
.hiv-facility-heading { align-items:center; }
.hiv-facility-heading label { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; color:var(--muted); font-size:.9rem; }
.hiv-facility-heading select { min-height:42px; padding:.55rem .8rem; color:var(--text); background:#152238; border:1px solid var(--line); border-radius:9px; }
.hiv-facility-table-wrap { width:100%; overflow-x:auto; }
.hiv-facility-table { width:100%; min-width:720px; border-collapse:collapse; }
.hiv-facility-table th,.hiv-facility-table td { padding:.8rem .65rem; text-align:left; border-bottom:1px solid rgba(255,255,255,.08); }
.hiv-facility-table thead th { color:var(--muted); font-size:.77rem; letter-spacing:.04em; text-transform:uppercase; }
.hiv-facility-table tbody th { color:var(--text); font-weight:700; }
.hiv-facility-table tbody td { color:#d4deeb; font-variant-numeric:tabular-nums; }
.hiv-table-meter { position:relative; display:flex; align-items:center; min-width:115px; min-height:24px; overflow:hidden; }
.hiv-table-meter > span { position:absolute; inset:0 auto 0 0; background:rgba(115,223,194,.16); border-radius:5px; }
.hiv-table-meter strong { position:relative; padding-left:.45rem; color:var(--text); font-size:.83rem; }
.hiv-timeliness-meter > span { background:rgba(201,154,255,.17); }
.hiv-status { display:inline-flex; padding:.32rem .6rem; border-radius:999px; font-size:.78rem; font-weight:700; white-space:nowrap; }
.hiv-status-needs-support { color:#ffd0c8; background:rgba(255,143,127,.12); }
.hiv-status-watch { color:#ffe1a8; background:rgba(255,189,112,.12); }
.hiv-status-on-track { color:#b8f4dc; background:rgba(115,223,194,.11); }
.hiv-filter-feedback { margin:.75rem 0 0; color:var(--muted); font-size:.85rem; }
.hiv-dashboard-callout { display:grid; align-content:start; gap:.75rem; background:radial-gradient(ellipse at 90% 0,rgba(201,154,255,.16),transparent 50%),linear-gradient(145deg,rgba(31,45,70,.96),rgba(22,34,55,.96)); border-left:3px solid var(--gold); }
.hiv-dashboard-callout p,.hiv-dashboard-files p { margin:.25rem 0 0; color:var(--muted); line-height:1.65; }
.hiv-dashboard-files { display:grid; align-content:start; gap:.6rem; }
.hiv-dashboard-file-links { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:.45rem; }
.project2-dashboard .hiv-dashboard-heading { max-width:1000px; }
.project2-dashboard .hiv-dashboard-heading h1 { max-width:18ch; }
.project2-dashboard-actions { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:.25rem; }
.project2-dashboard .hiv-dashboard-notice { border-left:3px solid var(--gold); }
.project2-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
.project2-chart-panel,.project2-results-panel { margin:1.2rem 0; }
.project2-svg-wrap { width:100%; overflow-x:auto; }
.project2-chart-svg { display:block; width:100%; min-width:540px; height:auto; overflow:visible; }
.project2-grid-lines line { stroke:rgba(184,194,210,.2); stroke-width:1; }
.project2-axis-labels,.project2-month-labels { fill:#b8c2d2; font:16px 'Source Sans 3',Arial,sans-serif; }
.project2-value-labels { fill:#f7f4eb; font:700 19px 'Source Sans 3',Arial,sans-serif; }
.project2-trend-line { fill:none; stroke:#73dfc2; stroke-width:5; stroke-linecap:round; stroke-linejoin:round; }
.project2-chart-points circle { fill:#73dfc2; stroke:#152238; stroke-width:3; }
.project2-cause-list { display:grid; gap:1.2rem; margin-top:1.2rem; }
.project2-cause-row { display:grid; gap:.45rem; min-width:0; }
.project2-cause-row > div:first-child { display:flex; justify-content:space-between; align-items:flex-start; gap:.75rem; color:var(--text); line-height:1.45; }
.project2-cause-row > div:first-child span { min-width:0; overflow-wrap:anywhere; }
.project2-cause-row strong { flex:0 0 auto; color:var(--gold); white-space:nowrap; }
.project2-cause-track { height:13px; overflow:hidden; background:rgba(255,255,255,.08); border-radius:999px; }
.project2-cause-track span { display:block; width:var(--bar-width); height:100%; background:var(--bar-color); border-radius:inherit; }
.project2-gap-bars { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; align-items:end; min-height:230px; padding:1.1rem .25rem .2rem; border-bottom:1px solid rgba(255,255,255,.14); }
.project2-gap-bar { display:grid; grid-template-rows:auto 160px auto; justify-items:center; align-items:end; gap:.45rem; min-width:0; }
.project2-gap-bar strong { color:var(--text); font:700 1.25rem/1 'Newsreader',Georgia,serif; }
.project2-gap-bar span { align-self:end; width:min(100%,58px); height:var(--bar-height); min-height:8px; background:linear-gradient(180deg,var(--mint),#4e9e91); border-radius:9px 9px 2px 2px; }
.project2-gap-bar:nth-child(1) span { background:linear-gradient(180deg,var(--gold),#d58b4e); }
.project2-gap-bar:nth-child(2) span { background:linear-gradient(180deg,var(--lilac),#8e67bc); }
.project2-gap-bar small { color:var(--muted); font-size:.78rem; text-align:center; }
.project2-results-table { min-width:680px; }
.project2-results-table td,.project2-results-table th { white-space:nowrap; }
.project2-action-list { display:grid; gap:.7rem; margin:.25rem 0 0; padding-left:1.2rem; color:#e3eafa; line-height:1.6; }
.project2-action-list li::marker { color:var(--gold); }
@media (max-width:780px) {
    .project2-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .project2-dashboard .hiv-dashboard-heading h1 { max-width:22ch; }
    .project2-chart-grid { grid-template-columns:1fr; }
}
@media (max-width:520px) {
    .project2-kpis { grid-template-columns:1fr; }
    .project2-dashboard-actions { display:grid; grid-template-columns:1fr; width:100%; }
    .project2-dashboard-actions .btn { width:100%; justify-content:center; }
    .project2-chart-panel,.project2-results-panel { padding:.9rem; }
    .project2-gap-bars { gap:.35rem; min-height:195px; }
    .project2-gap-bar { grid-template-rows:auto 130px auto; }
    .project2-gap-bar small { font-size:.7rem; }
    .project2-cause-row > div:first-child { flex-direction:column; gap:.2rem; }
}

/* Project CMS: make the published entries quick to scan and open for edits. */
.project-admin-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:1.35rem; }
.project-admin-list { display:grid; gap:1rem; min-width:0; padding:clamp(1rem,2vw,1.5rem); background:linear-gradient(145deg,rgba(25,38,60,.96),rgba(17,27,45,.96)); border:1px solid rgba(222,232,250,.13); border-radius:18px; box-shadow:0 16px 38px rgba(4,9,20,.2); }
.project-admin-list-heading { display:flex; align-items:end; justify-content:space-between; gap:1.25rem; }
.project-admin-list-heading .section-title { margin:0; }
.project-admin-list-heading .section-title h2 { display:flex; align-items:center; gap:.65rem; margin:.35rem 0; color:var(--text); font-size:clamp(1.55rem,2.5vw,2.15rem); }
.project-admin-list-heading .section-title p { margin:0; color:var(--muted); line-height:1.55; }
.project-admin-count { display:inline-grid; min-width:2rem; height:2rem; place-items:center; padding:0 .55rem; color:#182238; background:var(--mint); border-radius:999px; font:750 .9rem/1 'Source Sans 3',sans-serif; }
.project-admin-search { display:grid; gap:.38rem; flex:0 1 350px; color:var(--muted); font-size:.82rem; font-weight:700; }
.project-admin-search input { width:100%; min-height:44px; padding:.65rem .85rem; color:var(--text); background:rgba(8,15,29,.72); border:1px solid rgba(222,232,250,.16); border-radius:10px; }
.project-admin-search input:focus { outline:0; border-color:var(--mint); box-shadow:0 0 0 .2rem rgba(115,223,194,.14); }
.project-admin-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,560px),1fr)); gap:1rem; align-items:stretch; }
.project-admin-card { display:grid; grid-template-columns:minmax(150px,.42fr) minmax(0,1fr); min-width:0; overflow:hidden; background:linear-gradient(145deg,rgba(31,45,70,.98),rgba(21,33,53,.98)); border:1px solid rgba(222,232,250,.13); border-radius:14px; }
.project-admin-card-cover { display:grid; min-height:100%; place-items:center; overflow:hidden; background:linear-gradient(145deg,rgba(115,223,194,.12),rgba(201,154,255,.13)),#111a2b; }
.project-admin-card-cover img { display:block; width:100%; height:100%; min-height:210px; object-fit:cover; }
.project-admin-card-cover > span { display:grid; width:54px; height:54px; place-items:center; color:var(--mint); border:1px solid rgba(115,223,194,.3); border-radius:16px; background:rgba(115,223,194,.08); font-size:1.3rem; }
.project-admin-card-content { display:grid; align-content:start; gap:.8rem; min-width:0; padding:1.15rem; }
.project-admin-card-topline { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.project-admin-format,.project-admin-featured { display:inline-flex; align-items:center; gap:.35rem; min-height:28px; padding:.28rem .58rem; border:1px solid rgba(115,223,194,.22); border-radius:999px; color:#c9f5e9; background:rgba(115,223,194,.08); font-size:.72rem; font-weight:750; }
.project-admin-featured { color:#ffe0ad; border-color:rgba(255,189,112,.25); background:rgba(255,189,112,.08); }
.project-admin-card-content h3 { margin:0; color:var(--text); font-size:clamp(1.15rem,1.6vw,1.45rem); line-height:1.25; overflow-wrap:anywhere; }
.project-admin-description { display:-webkit-box; overflow:hidden; margin:0; color:var(--muted); font-size:.92rem; line-height:1.55; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.project-admin-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.project-admin-meta > span { display:grid; gap:.15rem; min-width:0; color:#d8e1ee; font-size:.84rem; line-height:1.4; overflow-wrap:anywhere; }
.project-admin-meta strong { color:var(--mint); font-size:.69rem; letter-spacing:.06em; text-transform:uppercase; }
.project-admin-card-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem; margin-top:.1rem; }
.project-admin-card-actions form { margin:0; }
.project-admin-card-actions .btn { min-height:39px; }
.project-admin-no-results,.project-admin-empty { padding:1.5rem; color:var(--muted); text-align:center; border:1px dashed rgba(222,232,250,.2); border-radius:13px; background:rgba(255,255,255,.025); }
.project-admin-empty h3 { margin:.6rem 0 .25rem; color:var(--text); }
.project-admin-empty p { margin:0; }
.project-admin-empty > i { color:var(--mint); font-size:1.5rem; }
.project-form-card { min-width:0; }
.project-form-card > .section-title { margin-bottom:1.25rem; }
.project-form-card > .section-title h2 { margin:.35rem 0 0; }
.project-form-card .stack-form { gap:1.15rem; }
.project-form-card .form-group { min-width:0; gap:.5rem; }
.project-form-card .form-group > label { line-height:1.35; }
.project-form-card input:not([type="checkbox"]),
.project-form-card textarea,
.project-form-card select { max-width:100%; }
.project-form-card .admin-actions { display:flex; flex-wrap:wrap; gap:.65rem; }
.project-form-card .admin-actions form { margin:0; }
.project-admin-layout [hidden] { display:none !important; }

@media (max-width:780px) {
    .hiv-dashboard-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .hiv-dashboard-chart-grid,.hiv-dashboard-bottom-grid { grid-template-columns:1fr; }
    .hiv-visual-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .hiv-visuals-heading { align-items:flex-start; flex-direction:column; gap:.6rem; }
}
@media (max-width:520px) {
    .hiv-dashboard-kpis { grid-template-columns:1fr; }
    .hiv-dashboard-kpis article { min-height:0; }
    .hiv-visual-grid { grid-template-columns:1fr; }
    .hiv-visual-card img { height:auto; max-height:300px; }
    .hiv-facility-heading { align-items:flex-start; flex-direction:column; }
    .hiv-dashboard-notice { padding:.9rem; }
    .hiv-dashboard-panel,.hiv-dashboard-callout { padding:1rem; }
}

/* Keep the dashboard and its visual previews comfortable on narrow devices. */
.hiv-dqa-dashboard,
.hiv-dqa-dashboard .container,
.hiv-dashboard-visuals,
.hiv-visual-grid,
.hiv-dashboard-chart-grid,
.hiv-dashboard-bottom-grid { min-width:0; }
.hiv-visual-card > a { min-width:0; padding:.4rem; }
.hiv-visual-card img { max-width:100%; object-fit:contain; }
.hiv-visual-card figcaption { overflow-wrap:anywhere; }
.hiv-bar-row > div:first-child,
.hiv-outcome-row > div:first-child { min-width:0; flex-wrap:wrap; align-items:baseline; }
.hiv-bar-row > div:first-child > span,
.hiv-outcome-row > div:first-child > span { min-width:0; overflow-wrap:anywhere; }
.hiv-facility-heading select { max-width:100%; }

@media (max-width:780px) {
    .hiv-dqa-dashboard { padding-block:2.5rem; }
    .hiv-dqa-dashboard > .container { width:min(calc(100% - 32px),820px); }
    .hiv-dashboard-heading { margin-bottom:1.2rem; }
    .hiv-dashboard-heading h1 { font-size:clamp(2rem,7vw,3.2rem); overflow-wrap:anywhere; }
    .hiv-dashboard-heading > p { font-size:1rem; line-height:1.65; }
    .hiv-visuals-heading p { max-width:65ch; }
    .hiv-visual-grid { gap:.85rem; }
    .hiv-visual-card > a { min-height:0; aspect-ratio:16 / 10; }
    .hiv-visual-card img { width:100%; height:100%; max-height:none; }
    .hiv-visual-card > a > span { opacity:1; transform:none; }
    .hiv-dashboard-chart-grid,.hiv-dashboard-bottom-grid { gap:.9rem; margin:.9rem 0; }
    .hiv-panel-heading { flex-wrap:wrap; }
    .hiv-panel-heading > div { min-width:0; }
}

@media (max-width:520px) {
    .hiv-dqa-dashboard { padding-block:1.8rem; }
    .hiv-dqa-dashboard > .container { width:calc(100% - 24px); }
    .hiv-dashboard-heading { gap:.75rem; }
    .hiv-dashboard-heading h1 { font-size:clamp(1.8rem,9vw,2.45rem); }
    .hiv-dashboard-notice { align-items:flex-start; gap:.65rem; line-height:1.55; }
    .hiv-dashboard-kpis { gap:.7rem; }
    .hiv-dashboard-kpis article,.hiv-dashboard-panel,.hiv-dashboard-callout { padding:.9rem; border-radius:13px; }
    .hiv-dashboard-visuals { margin:1.2rem 0 1.5rem; }
    .hiv-visuals-heading h2 { font-size:1.55rem; line-height:1.2; overflow-wrap:anywhere; }
    .hiv-visual-grid { gap:.75rem; }
    .hiv-visual-card > a { aspect-ratio:4 / 3; }
    .hiv-visual-card > a > span { right:.5rem; bottom:.5rem; padding:.38rem .55rem; font-size:.72rem; }
    .hiv-visual-card figcaption { padding:.7rem .75rem .8rem; font-size:.9rem; }
    .hiv-panel-heading { gap:.6rem; }
    .hiv-panel-heading h2,.hiv-dashboard-files h2,.hiv-dashboard-callout h2 { font-size:1.3rem; line-height:1.22; overflow-wrap:anywhere; }
    .hiv-panel-total { white-space:normal; }
    .hiv-facility-heading label { width:100%; align-items:flex-start; flex-direction:column; }
    .hiv-facility-heading select { width:100%; }
    .hiv-facility-table-wrap { margin-inline:-.15rem; }
    .hiv-dashboard-file-links { display:grid; grid-template-columns:1fr; }
    .hiv-dashboard-file-links .btn { width:100%; justify-content:center; }
}

@media (max-width:780px) {
    .project-admin-layout { gap:1rem; }
    .project-admin-list { padding:1rem; border-radius:15px; }
    .project-admin-list-heading { align-items:stretch; flex-direction:column; }
    .project-admin-search { flex:1 1 auto; width:100%; }
    .project-admin-card-grid { grid-template-columns:minmax(0,1fr); }
    .project-admin-card { grid-template-columns:minmax(130px,.38fr) minmax(0,1fr); }
    .project-admin-card-content { padding:1rem; gap:.7rem; }
    .project-admin-card-cover img { min-height:190px; }
    .project-form-card { padding:1.25rem; }
}
@media (max-width:560px) {
    .project-admin-card { grid-template-columns:minmax(0,1fr); }
    .project-admin-card-cover { min-height:0; max-height:210px; }
    .project-admin-card-cover img { height:190px; min-height:0; }
    .project-admin-card-content { padding:1rem; }
    .project-admin-meta { grid-template-columns:minmax(0,1fr); }
    .project-admin-card-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .project-admin-card-actions .btn,
    .project-admin-card-actions form,
    .project-admin-card-actions form .btn { width:100%; }
    .project-admin-card-actions form { grid-column:1 / -1; }
    .project-form-card { padding:1rem; }
    .project-form-card .admin-actions { display:grid; grid-template-columns:1fr; }
    .project-form-card .admin-actions .btn { width:100%; justify-content:center; }
}

/* Consistent reading rhythm and breathing room across public and admin pages. */
p { line-height:1.72; }
p + p { margin-top:.72em; }
p + ul, p + ol { margin-top:.45em; }
li + li { margin-top:.3em; }
.section-header { row-gap:1.15rem; }
.section-header p { max-width:66ch; }
.stack-form { gap:1.35rem; }
.form-group { gap:.7rem; }
.admin-hero,
.project-admin-list,
.project-form-card,
.dashboard-card,
.contact-panel,
.auth-panel { padding:clamp(1.25rem,2.6vw,2rem); }
.project-form-card .stack-form { gap:1.4rem; }
.project-form-section { gap:1.15rem; padding:clamp(1rem,2.2vw,1.5rem); }
.project-case-study-fields { margin:0; }
.project-case-study-fields .section-title { gap:.65rem; }
.project-case-study-fields .admin-grid { gap:1rem; }
.project-media-admin-grid { gap:1.15rem; }
.project-media-admin-item { padding:1rem; }
.project-article-gallery { gap:1.25rem; }
.project-gallery-figure { gap:.25rem; padding:.9rem; }
.project-gallery-image-link { gap:.7rem; }
.project-gallery-figure figcaption { padding-top:.15rem; }
.project-article-card,
.project-gallery-card,
.dashboard-launch-card { padding:clamp(1.1rem,2.4vw,1.8rem); }
.project-article-content p { max-width:78ch; }
.project-article-content h2,
.project-article-content h3 { margin-top:1.8em; }
.footer-grid { column-gap:clamp(1.4rem,3vw,2.5rem); row-gap:2rem; }
.footer-copy { line-height:1.75; }

@media (max-width:560px) {
    .project-form-card { padding:1rem; }
    .project-form-section { gap:1rem; padding:1rem; }
    .project-form-card .stack-form { gap:1.1rem; }
    .project-gallery-figure { padding:.8rem; }
    .project-article-card,
    .project-gallery-card,
    .dashboard-launch-card { padding:1rem; }
    .footer-grid { row-gap:1.6rem; }
}
