/* ============================================================
   franklindsay.me — portfolio
   Self-contained static styles. No build step.
   ============================================================ */

:root {
    --bg:        #0a0a0f;
    --bg-alt:    #0e0e1a;
    --surface:   #16161f;
    --surface-2: #1e1e2d;
    --border:    #2a2a40;
    --border-lt: #34344e;
    --text:      #e7e7ef;
    --muted:     #9a9ab0;
    --faint:     #6b6b82;
    --accent:    #2dd4bf;
    --accent-2:  #22d3ee;
    --grad:      linear-gradient(110deg, #10b981 0%, #22d3ee 100%);
    --maxw:      1320px;
    --radius:    16px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -0.02em; }

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

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    background: var(--grad);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 10px;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    box-shadow: 0 6px 20px rgba(124, 92, 255, 0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(124, 92, 255, 0.4); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(34,211,238,0.08); }

/* ---------- nav ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 18px 0;
    transition: background .25s ease, padding .25s ease, border-color .25s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: 'Space Grotesk'; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #fff; }

/* ---------- hero ---------- */
.hero {
    padding: 180px 0 100px;
    position: relative;
    background:
        radial-gradient(900px 500px at 70% -10%, rgba(16,185,129,0.18), transparent 60%),
        radial-gradient(700px 400px at 10% 10%, rgba(34,211,238,0.12), transparent 55%);
}
.hero h1 { font-size: clamp(38px, 6.5vw, 68px); font-weight: 700; margin-bottom: 24px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 620px; }
.hero-cta { display: flex; gap: 14px; margin: 38px 0 56px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 30px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Space Grotesk'; font-size: 22px; color: var(--text); }
.hero-stats span { font-size: 14px; color: var(--faint); }

/* ---------- band ---------- */
.band { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 44px 0; }
.band-text { font-size: clamp(18px, 2.4vw, 24px); font-weight: 500; line-height: 1.5; max-width: 880px; color: var(--text); }
.band-text strong { color: var(--accent); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section-alt {
    position: relative;
    background:
        radial-gradient(1100px 460px at 50% -8%, rgba(34,211,238,.055), transparent 62%),
        var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-head { margin-bottom: 50px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }

/* ---------- case studies ---------- */
.case-flagship {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.case-flagship::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad);
}
.case-tag { font-size: 13px; font-weight: 600; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.case-flagship h3 { font-size: 30px; margin-bottom: 16px; }
.case-flagship > .case-body > p { color: var(--muted); max-width: 760px; margin-bottom: 24px; }
.case-points { list-style: none; margin-bottom: 26px; }
.case-points li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--muted); }
.case-points li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.case-points strong { color: var(--text); font-weight: 600; }
.case-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.case-stack span {
    font-size: 13px; font-weight: 500; color: var(--muted);
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 5px 12px; border-radius: 999px;
}
.case-link { color: var(--accent); font-weight: 600; font-size: 15px; }
.case-link:hover { text-decoration: underline; }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.case-mini {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px;
    transition: border-color .2s, transform .2s;
}
.case-mini:hover { border-color: var(--accent); transform: translateY(-3px); }
.case-mini h3 { font-size: 21px; margin-bottom: 12px; }
.case-mini p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

/* ---------- stack ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stack-col {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px;
}
.stack-col h4 { font-size: 16px; color: var(--accent); margin-bottom: 16px; }
.stack-col ul { list-style: none; }
.stack-col li { color: var(--muted); font-size: 15px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.stack-col li:last-child { border-bottom: none; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px;
    transition: border-color .2s, transform .2s;
}
.svc:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.svc h3 { font-size: 19px; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15px; }

/* ---------- contact ---------- */
.section-contact {
    text-align: center;
    background:
        radial-gradient(700px 360px at 50% 120%, rgba(16,185,129,0.18), transparent 60%),
        var(--bg-alt);
    border-top: 1px solid var(--border);
}
.contact-inner { max-width: 640px; }
.contact-inner .lede { margin: 0 auto 32px; }
.section-contact h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 20px; }
.contact-alt { margin-top: 22px; color: var(--faint); font-size: 15px; }
.contact-alt a { color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; color: var(--faint); font-size: 14px; flex-wrap: wrap; gap: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
    .case-grid, .stack-grid, .svc-grid { grid-template-columns: 1fr; }
    .stack-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { gap: 18px; }
    .nav-links a:not(.btn) { display: none; }
    .hero { padding: 140px 0 70px; }
    .section { padding: 70px 0; }
    .case-flagship { padding: 28px; }
}
@media (max-width: 480px) {
    .stack-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 28px; }
}

/* ---------- inner pages / blog ---------- */
.section-page {
    padding-top: 150px;
    background:
        radial-gradient(900px 460px at 78% -6%, rgba(16,185,129,.10), transparent 58%),
        radial-gradient(680px 380px at 8% 2%, rgba(34,211,238,.07), transparent 55%);
    background-repeat: no-repeat;
}
.container-narrow { max-width: 760px; }
.back-link { color: var(--muted); font-size: 14px; display: inline-block; margin-bottom: 24px; }
.back-link:hover { color: var(--accent); }

.post-row {
    display: block; padding: 28px 0; border-bottom: 1px solid var(--border);
    transition: transform .15s;
}
.post-row:hover { transform: translateX(4px); }
.post-row h3 { font-size: 24px; margin: 8px 0 8px; }
.post-row p { color: var(--muted); margin-bottom: 10px; }
.post-more { color: var(--accent); font-weight: 600; font-size: 14px; }

.post-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--faint); flex-wrap: wrap; }
.post-meta-lg { margin-bottom: 16px; }
.post-cat { background: var(--surface-2); border: 1px solid var(--border); color: var(--accent); padding: 3px 10px; border-radius: 999px; font-weight: 600; }

.post-title { font-size: clamp(30px, 5vw, 46px); margin-bottom: 28px; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }
.post-body { font-size: 18px; line-height: 1.75; color: var(--text); }
.post-body p { margin-bottom: 20px; color: var(--muted); }
.post-body h2, .post-body h3 { margin: 36px 0 14px; }
.post-body code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: 0.9em; color: var(--accent); }
.post-body a { color: var(--accent); text-decoration: underline; }
.post-body ul, .post-body ol { margin: 0 0 20px 22px; color: var(--muted); }
.post-body li { margin-bottom: 8px; }

.post-cta { margin-top: 50px; padding-top: 36px; border-top: 1px solid var(--border); text-align: center; }
.post-cta p { color: var(--muted); margin-bottom: 18px; font-size: 18px; }
.pagination-wrap { margin-top: 36px; }

/* article code blocks */
.post-body pre {
    background: #0d0d16; border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 20px; margin: 0 0 24px; overflow-x: auto; font-size: 14.5px; line-height: 1.6;
}
.post-body pre code { background: none; padding: 0; color: #cbd5f5; font-size: inherit; }
.post-body h2 { font-size: 26px; }
.post-body h3 { font-size: 21px; }
.post-body blockquote { border-left: 3px solid var(--accent); padding-left: 18px; margin: 0 0 22px; color: var(--text); font-style: italic; }

/* ---------- blog: controls (search + category chips) ---------- */
.blog-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 34px 0 30px; }
.blog-search { position: relative; flex: 0 0 auto; }
.blog-search input {
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
    padding: 11px 44px 11px 18px; color: var(--text); font-family: inherit; font-size: 15px; width: 260px;
    transition: border-color .15s;
}
.blog-search input:focus { outline: none; border-color: var(--accent); }
.blog-search button {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; display: flex;
}
.blog-search button:hover { color: var(--accent); }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-chip {
    font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap;
    background: var(--surface); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px;
    transition: border-color .15s, color .15s, background .15s;
}
.blog-chip:hover { color: var(--text); border-color: var(--chip, var(--accent)); }
.blog-chip.is-active { color: #07070b; background: var(--chip, var(--accent)); border-color: var(--chip, var(--accent)); }
.blog-resultcount { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* ---------- blog: card grid ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; margin-top: 8px; }
.blog-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.22);
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 18px 44px rgba(0,0,0,.4); }
.blog-card-cover { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.blog-card:hover .blog-card-cover img { transform: scale(1.04); }
.blog-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-body h3 { font-size: 19px; line-height: 1.3; }
.blog-card-body p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.blog-grid-related { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 18px; }
.blog-grid-related .blog-card-body { padding: 16px 18px 20px; }
.blog-grid-related .blog-card-body h3 { font-size: 16px; }
.blog-empty { margin-top: 30px; }
.blog-empty a { color: var(--accent); text-decoration: underline; }

/* ---------- blog: share row ---------- */
.post-share { display: flex; align-items: center; gap: 10px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--border); }
.post-share-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.share-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
    color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, transform .15s;
}
.share-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.share-copied {
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #07070b; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
    opacity: 0; pointer-events: none; transition: opacity .15s; white-space: nowrap;
}
.share-btn.copied .share-copied { opacity: 1; }
a.post-cat { transition: border-color .15s; }

@media (max-width: 560px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-search input { width: 100%; }
    .blog-search { width: 100%; }
}

/* ---------- individual pages ---------- */
.page-title { font-size: clamp(30px, 5vw, 50px); font-weight: 700; margin-bottom: 18px; }
.page-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.prose { font-size: 17px; line-height: 1.8; color: var(--muted); margin-top: 24px; }
.prose p { margin-bottom: 20px; }
.prose h3 { color: var(--text); font-size: 21px; margin: 34px 0 12px; }
.prose ul { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; }
.prose em { color: var(--text); font-style: italic; }

.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.head-link { color: var(--accent); font-weight: 600; font-size: 15px; white-space: nowrap; }
.head-link:hover { text-decoration: underline; }

/* clickable cards */
.case-flagship-link, .case-mini, .svc-link, .portfolio-card, .post-row { cursor: pointer; }
.case-flagship-link { display: block; text-decoration: none; transition: border-color .2s, transform .2s; }
.case-flagship-link:hover { border-color: var(--accent); transform: translateY(-3px); }
.svc-link { display: block; }
.svc-link .post-more { margin-top: 12px; display: inline-block; }

/* hire */
.hire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0; }
.hire-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.hire-item h3 { font-size: 17px; margin-bottom: 8px; }
.hire-item p { color: var(--muted); font-size: 15px; }
.hire-rate { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 26px; margin-top: 10px; }
.hire-rate h2 { font-size: 22px; margin-bottom: 10px; }
.hire-rate p { color: var(--muted); }

/* contact form */
.contact-form { margin-top: 30px; max-width: 620px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field label span { color: var(--accent); }
.field input, .field textarea {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 15px;
    transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid], .field textarea[aria-invalid] { border-color: #b03030; }
.field-error { display: block; margin-top: 6px; font-size: 13px; color: #ff9b9b; }
.alert-success { background: rgba(63,140,0,0.12); border: 1px solid #3f8c00; color: #b7e58a; padding: 14px 18px; border-radius: 10px; margin-bottom: 24px; }
.alert-error { background: rgba(220,40,40,0.1); border: 1px solid #b03030; color: #ffb4b4; padding: 14px 18px; border-radius: 10px; margin-bottom: 24px; }

/* services / portfolio listing pages */
.svc-grid-page { margin-top: 36px; }
.portfolio-list { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
.portfolio-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: border-color .2s, transform .2s; }
.portfolio-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.portfolio-card.is-flagship { position: relative; }
.portfolio-card.is-flagship::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); z-index: 3; }
.portfolio-card h3 { font-size: 24px; margin: 8px 0 12px; }
.portfolio-card p { color: var(--muted); margin-bottom: 16px; max-width: 720px; }

.project-role { color: var(--accent-2); font-weight: 600; margin-bottom: 16px; }
.project-visit { margin: 18px 0 10px; }

.related { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--border); }
.related h3 { font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.related-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.related-pills a { background: var(--surface-2); border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--text); transition: border-color .15s; }
.related-pills a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 820px) {
    .hire-grid, .field-row { grid-template-columns: 1fr; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PREMIUM UPGRADE — numbers, testimonials, process, faq,
   portrait, scroll reveal, refined hero glow
   ============================================================ */

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* richer hero glow + animated drift */
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
    background: radial-gradient(600px 300px at 85% 20%, rgba(16,185,129,0.14), transparent 70%);
    animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateX(-20px) translateY(0); } to { transform: translateX(20px) translateY(-12px); } }

/* by the numbers */
.numbers { padding: 56px 0; border-bottom: 1px solid var(--border); background: var(--bg); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.numbers-grid div { display: flex; flex-direction: column; gap: 8px; }
.numbers-grid strong { font-family: 'Space Grotesk'; font-size: clamp(34px, 5vw, 50px); font-weight: 700; line-height: 1; }
.numbers-grid span { font-size: 14px; color: var(--muted); }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.quote-card blockquote { font-size: 16px; line-height: 1.65; color: var(--text); margin: 0 0 22px; flex: 1; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quote-who { font-size: 14px; color: var(--muted); }
.quote-who strong { color: var(--text); display: block; }

/* how I work */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.process-num { font-family: 'Space Grotesk'; font-size: 30px; font-weight: 700; display: block; margin-bottom: 14px; }
.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 22px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: 'Space Grotesk'; font-weight: 600; font-size: 17px; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 22px; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 20px; margin: 0; line-height: 1.7; }

/* about portrait */
.about-portrait { display: flex; align-items: center; gap: 18px; margin: 8px 0 8px; }
.about-portrait img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.about-portrait strong { display: block; font-family: 'Space Grotesk'; font-size: 18px; color: var(--text); }
.about-portrait span { font-size: 14px; color: var(--muted); }

/* hire rate figure */
.rate-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.rate-figure { font-family: 'Space Grotesk'; font-size: 40px; font-weight: 700; line-height: 1; margin-bottom: 14px; }
.rate-unit { font-size: 18px; color: var(--muted); font-weight: 500; }

@media (max-width: 820px) {
    .numbers-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .quote-grid, .process-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TECHY ANIMATED HERO BACKGROUND (grid + drifting orbs + beam)
   ============================================================ */
.hero { position: relative; overflow: hidden; background: none; }
.hero .container { position: relative; z-index: 2; }
.hero::after { display: none; } /* replaces the old static drift glow */

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* faint tech line-grid, masked to fade out toward the edges */
.hero-grid {
    position: absolute; inset: -2px;
    background-image:
        linear-gradient(to right, rgba(16,185,129,.17) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(34,211,238,.15) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 82% 78% at 50% 4%, #000 42%, transparent 85%);
    mask-image: radial-gradient(ellipse 82% 78% at 50% 4%, #000 42%, transparent 85%);
    animation: gridPan 28s linear infinite;
}
@keyframes gridPan { to { background-position: 46px 46px; } }

/* slow drifting gradient orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb-1 {
    width: 540px; height: 540px; top: -200px; right: -90px;
    background: radial-gradient(circle, rgba(16,185,129,.9), transparent 62%);
    animation: orb1 19s ease-in-out infinite alternate;
}
.orb-2 {
    width: 460px; height: 460px; top: 30px; left: -140px;
    background: radial-gradient(circle, rgba(34,211,238,.78), transparent 62%);
    animation: orb2 23s ease-in-out infinite alternate;
}
@keyframes orb1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-70px,50px) scale(1.08); } }
@keyframes orb2 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,-30px) scale(1.06); } }

/* subtle light beam sweeping across */
.hero-beam {
    position: absolute; top: 0; height: 100%; width: 55%; left: -45%;
    background: linear-gradient(100deg, transparent, rgba(16,185,129,.06), transparent);
    transform: skewX(-18deg);
    animation: beam 11s ease-in-out infinite;
}
@keyframes beam { 0%, 100% { left: -45%; opacity: 0; } 50% { left: 85%; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .hero-grid, .orb-1, .orb-2, .hero-beam { animation: none; }
}
@media (max-width: 600px) {
    .orb { filter: blur(50px); opacity: .42; }
    .hero-beam { display: none; }
}

/* ---------- brand lockup (logo mark + name wordmark) ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--grad); color: #fff;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px;
    letter-spacing: -0.02em;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(16,185,129,.3);
}
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
@media (max-width: 420px) { .brand-name { display: none; } }

/* custom SVG mark sizing inside the brand tile */
.brand-mark svg { width: 21px; height: 21px; display: block; }

/* hero trust line + lede proof emphasis */
.lede strong { color: var(--text); font-weight: 700; }
.hero-trust { margin-top: 26px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.hero-trust .dot { width: 9px; height: 9px; border-radius: 50%; background: #3f8c00; box-shadow: 0 0 0 4px rgba(63,140,0,.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ============================================================
   PREMIUM POLISH PASS — glass nav, dot-grid, grain, depth
   ============================================================ */

/* subtle film grain overlay (depth + premium feel) */
body::after {
    content: ''; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
    opacity: .04; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* frosted-glass nav — always present, stronger on scroll */
.nav {
    background: rgba(10,10,15,.5);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav.scrolled { background: rgba(10,10,15,.82); border-bottom-color: rgba(255,255,255,.09); }

/* refined dot-grid instead of the cliché line grid */
.hero-grid {
    background-image: radial-gradient(rgba(110,230,210,.28) 1.4px, transparent 1.5px);
    background-size: 30px 30px;
    animation: dotPan 30s linear infinite;
}
@keyframes dotPan { to { background-position: 30px 30px; } }

/* card depth: subtle top-lit surface + elevation shadow */
.case-mini, .svc, .quote-card, .stack-col, .process-step,
.case-flagship, .hire-item, .faq-item, .portfolio-card, .numbers + * {
    background-image: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 42%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.28);
}
.case-mini:hover, .svc:hover, .portfolio-card:hover, .case-flagship-link:hover,
.quote-card:hover, .process-step:hover, .hire-item:hover {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 48px rgba(0,0,0,.4);
}

/* tighten typographic hierarchy on the stats */
.numbers-grid span { font-size: 15px; color: #b9b9cc; }

/* ---------- hero fills first screen; stats pinned to its bottom ---------- */
.hero { padding: 0; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; }
.hero-copy { padding-top: 130px; padding-bottom: 50px; }
.numbers { background: transparent; border-bottom: none; border-top: 1px solid var(--border); padding: 22px 0; }
@media (min-width: 880px) {
    .hero-inner { min-height: 100svh; }
    .hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 116px; padding-bottom: 40px; }
}
/* keep the hero from forcing scroll on very short laptops */
@media (min-width: 880px) and (max-height: 760px) {
    .hero-copy { padding-top: 104px; }
    .hero h1 { font-size: clamp(34px, 4.6vw, 52px); }
    .hero .lede { font-size: 17px; }
}

/* compact the hero on laptop-height screens so the stats fully fit one screen */
@media (min-width: 880px) and (max-height: 900px) {
    .hero-copy { padding-top: 94px; padding-bottom: 26px; }
    .hero h1 { font-size: clamp(32px, 3.9vw, 46px); margin-bottom: 18px; }
    .hero .lede { font-size: 16px; line-height: 1.55; }
    .hero-cta { margin: 28px 0 0; }
    .hero-trust { margin-top: 16px; }
    .numbers { padding: 16px 0; }
    .numbers-grid strong { font-size: clamp(30px, 3.6vw, 42px); }
    .numbers-grid span { font-size: 13px; }
}

/* hero copy is a flex item + a .container (margin:auto) — force full width so
   its max-width/centering matches the nav exactly (logo-aligned) */
.hero-copy { width: 100%; }

/* widen the hero lede for better balance at the full nav width */
.hero .lede { max-width: 780px; }

/* widen the statement band to fill more of the full nav width (less stranded-left) */
.band-text { max-width: 1040px; }

/* ---------- expanded footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 0; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 40px; }
.footer-brand-col { max-width: 380px; }
.footer-brand-col .brand { margin-bottom: 4px; }
.footer-tag { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); margin-bottom: 14px; font-family: 'Inter', sans-serif; }
.footer-col a { display: block; color: var(--muted); font-size: 15px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--muted); display: inline-flex; transition: color .15s, transform .15s; }
.footer-social a:hover { color: var(--accent); transform: translateY(-2px); }

/* contact direct buttons */
.contact-direct { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 6px; }

@media (max-width: 720px) {
    .footer-top { flex-direction: column; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 14px; }
}

/* portfolio gallery: 2-col grid, flagship spans full width */
.portfolio-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.portfolio-card.is-flagship { grid-column: 1 / -1; }
@media (max-width: 760px) { .portfolio-list { grid-template-columns: 1fr; } }

/* ---------- portfolio cover images ---------- */
.portfolio-card { padding: 0; overflow: hidden; }
.portfolio-thumb { height: 200px; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .4s ease; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.04); }
.portfolio-card.is-flagship .portfolio-thumb { height: 300px; }
.portfolio-body { padding: 28px; }

/* home mini-card thumbnails */
.case-mini { padding: 0; overflow: hidden; }
.case-mini-thumb { height: 170px; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.case-mini-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .4s ease; }
.case-mini:hover .case-mini-thumb img { transform: scale(1.04); }
.case-mini > h3 { margin-top: 24px; }
.case-mini > h3, .case-mini > p, .case-mini > .case-stack { padding-left: 28px; padding-right: 28px; }
.case-mini > .case-stack { padding-bottom: 28px; }

/* detail-page cover */
.project-cover { margin: 26px 0 8px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.project-cover img { width: 100%; display: block; }

/* ---------- project galleries + lightbox ---------- */
.project-gallery { margin-top: 46px; }
.project-gallery h3 { font-size: 20px; margin-bottom: 18px; color: var(--text); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface-2); aspect-ratio: 16 / 10; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .35s ease; }
.gallery-item:hover { border-color: var(--accent); }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 680px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,10,.93); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 18px; right: 28px; background: none; border: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; opacity: .75; }
.lightbox-close:hover { opacity: 1; }

/* ---------- flagship card with featured image (home Selected work) ---------- */
.case-flagship.has-media { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.case-flagship.has-media .case-body { padding: 0; }
.case-flagship-media {
    border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    transition: transform .35s ease;
}
.case-flagship-link:hover .case-flagship-media { transform: translateY(-4px); }
.case-flagship-media img { width: 100%; display: block; }
@media (max-width: 860px) {
    .case-flagship.has-media { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- testimonials: stars + carousel ---------- */
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
    width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    font-size: 17px; line-height: 1; transition: border-color .15s, background .15s, opacity .15s;
}
.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }
.carousel-btn:disabled { opacity: .35; cursor: default; }

.quote-carousel { overflow: hidden; }
.quote-track {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding-bottom: 6px;
    scrollbar-width: none;
}
.quote-track::-webkit-scrollbar { display: none; }
.quote-track .quote-card {
    flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start;
    margin: 0;
}
.quote-stars { color: #f5b301; font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.quote-stars .off { color: var(--border); }
@media (max-width: 920px) { .quote-track .quote-card { flex: 0 0 calc((100% - 22px) / 2); } }
@media (max-width: 620px) { .quote-track .quote-card { flex: 0 0 100%; } }

/* testimonials aggregate rating badge */
.rating-summary { margin-top: 12px; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rating-summary .rs-stars { color: #f5b301; letter-spacing: 2px; font-size: 16px; }
.rating-summary strong { color: var(--text); }

/* Upwork credentials row */
.upwork-creds { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.cred {
    font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    display: inline-flex; align-items: center; gap: 6px;
}
.cred-stars .rs-stars { color: #f5b301; letter-spacing: 1.5px; }
.cred-top { border-color: rgba(45,212,191,.45); color: var(--accent); background: rgba(45,212,191,.07); }
.cred-muted { background: transparent; border-color: transparent; color: var(--faint); font-weight: 500; padding-left: 4px; }

/* hero Upwork credential line */
.hero-cred { margin-top: 10px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-cred .rs-stars { color: #f5b301; letter-spacing: 1.5px; font-size: 14px; }
.hero-cred strong { color: var(--accent); font-weight: 700; }
@media (min-width: 880px) and (max-height: 900px) { .hero-cred { margin-top: 8px; font-size: 13px; } }

/* ---------- toolbox: section sub + icons + descriptors ---------- */
.section-sub { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 780px; line-height: 1.6; }
.stack-col h4 { margin-bottom: 5px; }
.stack-desc { font-size: 12.5px; color: var(--faint); margin-bottom: 16px; line-height: 1.5; }
.stack-col li { display: flex; align-items: center; gap: 11px; padding: 9px 0; transition: color .15s; }
.stack-col li img { width: 18px; height: 18px; opacity: .82; flex-shrink: 0; transition: opacity .15s, transform .15s; }
.stack-col li:hover { color: var(--text); }
.stack-col li:hover img { opacity: 1; transform: scale(1.12); }

/* toolbox "also experienced with" chips */
.stack-more { margin-top: 32px; }
.stack-more-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-chip {
    font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
    background: var(--surface); border: 1px solid var(--border);
    padding: 5px 12px; border-radius: 999px; transition: border-color .15s, color .15s;
}
.stack-chip:hover { border-color: var(--accent); color: var(--accent); }

/* how I work: subtle timeline connector between steps */
.process-grid { position: relative; }
.process-grid::before {
    content: ''; position: absolute; top: 54px; left: 9%; right: 9%; height: 2px; z-index: 0;
    background: linear-gradient(90deg, transparent, rgba(45,212,191,.35) 12%, rgba(45,212,191,.35) 88%, transparent);
}
.process-step { position: relative; z-index: 1; transition: border-color .2s, transform .2s; }
.process-step:hover { border-color: rgba(45,212,191,.4); transform: translateY(-3px); }
@media (max-width: 820px) { .process-grid::before { display: none; } }

/* multi-paragraph FAQ answers + see-all */
.faq-answer { padding: 0 0 20px; }
.faq-answer p { color: var(--muted); margin: 0 0 14px; line-height: 1.7; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--accent); text-decoration: underline; }
.faq-more { margin-top: 26px; text-align: center; }

/* ---------- services page: divider + toolbox-with-benefits ---------- */
.svc-divider { display: flex; align-items: center; gap: 20px; margin: 64px 0 38px; }
.svc-divider::before, .svc-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.svc-divider span { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.svctool-head { max-width: 800px; margin-bottom: 36px; }
.svctool-head h2 { font-size: 28px; line-height: 1.2; }
.svctool-head .section-sub { margin-top: 12px; }
.svctool-cat { margin-bottom: 36px; }
.svctool-cat > h3 { font-size: 14px; color: var(--accent); letter-spacing: .04em; margin-bottom: 18px; padding-bottom: 11px; border-bottom: 1px solid var(--border); }
.svctool-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px 36px; }
.svctool { display: flex; gap: 13px; align-items: flex-start; }
.svctool img { width: 22px; height: 22px; opacity: .82; flex-shrink: 0; margin-top: 2px; transition: opacity .15s, transform .15s; }
.svctool:hover img { opacity: 1; transform: scale(1.1); }
.svctool-name { display: block; font-weight: 600; color: var(--text); font-size: 14.5px; }
.svctool-help { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 3px; }
@media (max-width: 560px) { .svctool-list { grid-template-columns: 1fr; } .svctool-head h2 { font-size: 23px; } }

/* ---------- closing contact CTA panel ---------- */
.section-contact { text-align: left; }
.cta-panel {
    position: relative;
    display: grid; grid-template-columns: 1.25fr 1fr;
    background:
        radial-gradient(640px 320px at 88% 0%, rgba(45,212,191,.12), transparent 62%),
        var(--surface);
    border: 1px solid var(--border-lt); border-radius: 20px;
    overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.cta-panel::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--grad); z-index: 2;
}
.cta-left { padding: 48px; }
.cta-left h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.cta-left .lede { margin: 0 0 26px; max-width: none; }
.cta-points { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.cta-points li { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 15px; }
.cta-points .dot { width: 9px; height: 9px; border-radius: 50%; background: #3f8c00; box-shadow: 0 0 0 4px rgba(63,140,0,.18); flex-shrink: 0; }
.cta-points .tick { color: var(--accent); font-weight: 700; }
.cta-points .star { color: #f5b301; }

.cta-right {
    padding: 46px 40px; display: flex; flex-direction: column; gap: 12px;
    background: linear-gradient(160deg, rgba(45,212,191,.09), rgba(34,211,238,.03));
    border-left: 1px solid var(--border);
}
.cta-right h3 { font-size: 20px; margin-bottom: 0; }
.cta-right > p { color: var(--muted); font-size: 14px; margin-bottom: 10px; line-height: 1.55; }
.cta-btn { width: 100%; text-align: center; }
.cta-form-link { color: var(--accent); font-size: 14px; margin-top: 8px; }
.cta-form-link:hover { text-decoration: underline; }

@media (max-width: 800px) {
    .cta-panel { grid-template-columns: 1fr; }
    .cta-left { padding: 32px; }
    .cta-right { border-left: none; border-top: 1px solid var(--border); padding: 32px; }
}

/* ---------- footer rebuild ---------- */
.footer-accent { height: 3px; background: var(--grad); }
.footer-top { align-items: flex-start; }
.footer-brand-col { max-width: 340px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 48px; }
.footer-avail { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 14px; }
.footer-avail .dot { width: 8px; height: 8px; border-radius: 50%; background: #3f8c00; box-shadow: 0 0 0 4px rgba(63,140,0,.18); }
.footer-brand-col .footer-social { margin-top: 20px; }
.footer-cta-link { color: var(--accent) !important; font-weight: 600; }
.footer-cred { color: var(--accent); white-space: nowrap; }
.footer-toplink { color: var(--faint); font-size: 13px; transition: color .15s; }
.footer-toplink:hover { color: var(--accent); }
@media (max-width: 720px) { .footer-nav { grid-template-columns: 1fr 1fr; gap: 28px 40px; } }

/* ---------- about page: intro + stats ---------- */
.about-intro { display: flex; gap: 26px; align-items: center; margin: 10px 0 30px; flex-wrap: wrap; }
.about-photo { width: 130px; height: 130px; border-radius: 16px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.about-intro-meta strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 22px; color: var(--text); }
.about-role { display: block; font-size: 15px; color: var(--muted); margin: 2px 0 12px; }
.about-avail { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.about-avail .dot { width: 8px; height: 8px; border-radius: 50%; background: #3f8c00; box-shadow: 0 0 0 4px rgba(63,140,0,.18); }
.cred-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 26px 0; margin-bottom: 6px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.about-stats strong { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(26px, 4vw, 34px); display: block; line-height: 1; margin-bottom: 6px; }
.about-stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
    .about-stats { grid-template-columns: 1fr; gap: 16px; }
    .about-intro { flex-direction: column; align-items: flex-start; }
}

/* ---------- project image carousel ---------- */
.project-carousel { margin: 28px 0 14px; }
.pcarousel-stage { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 9; }
.pcarousel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .4s ease; cursor: zoom-in; }
.pcarousel-img.active { opacity: 1; }
.pcarousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: rgba(10,10,15,.55); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .15s, border-color .15s; display: flex; align-items: center; justify-content: center; }
.pcarousel-btn:hover { background: rgba(10,10,15,.82); border-color: var(--accent); }
.pcarousel-prev { left: 14px; }
.pcarousel-next { right: 14px; }
.pcarousel-count { position: absolute; bottom: 14px; right: 16px; z-index: 3; font-size: 13px; color: #fff; background: rgba(10,10,15,.55); border: 1px solid rgba(255,255,255,.14); padding: 4px 11px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pcarousel-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pcarousel-thumb { padding: 0; width: 88px; height: 56px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; background: var(--surface-2); }
.pcarousel-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pcarousel-thumb.active, .pcarousel-thumb:hover { opacity: 1; border-color: var(--accent); }
@media (max-width: 560px) { .pcarousel-thumb { width: 66px; height: 44px; } }
