/* =========================================================
    PREMIUM LAYER — loaded after style.css, components.css
    and responsive.css. Remove its <link> to revert the
    typography and layout changes.

    Direction: midnight blue with a single blue accent,
        a serif for headlines, a clean grotesque for text.
        Open, hairline-ruled layouts for lists; boxed cards only
        where the content is a self-contained item.
========================================================= */

/* ---------- 1. Fonts (self-hosted) ---------- */
@font-face {font-family: "Geist"; src: url("../assets/fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;}
@font-face {font-family: "Newsreader"; src: url("../assets/fonts/newsreader-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;}
@font-face {font-family: "Geist Mono"; src: url("../assets/fonts/geist-mono-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;}
@font-face { font-family: "FA Brands"; src: url("../assets/fonts/fa-brands-sub.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "FA Solid"; src: url("../assets/fonts/fa-solid-sub.woff2") format("woff2"); font-weight: 900; font-display: block; }
@font-face { font-family: "FA Regular"; src: url("../assets/fonts/fa-regular-sub.woff2") format("woff2"); font-weight: 400; font-display: block; }

/* Only the icons this site uses */
.fa-solid, .fa-brands, .fa-regular { display: inline-block; font-style: normal; font-weight: 400; line-height: 1; text-rendering: auto; -webkit-font-smoothing: antialiased; }
.fa-brands { font-family: "FA Brands"; }
.fa-solid { font-family: "FA Solid"; font-weight: 900; }
.fa-regular { font-family: "FA Regular"; }
.fa-github::before { content: "\f09b"; }
.fa-linkedin::before { content: "\f08c"; }
.fa-linkedin-in::before { content: "\f0e1"; }
.fa-whatsapp::before { content: "\f232"; }
.fa-x-twitter::before { content: "\e61b"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-circle-check::before { content: "\f058"; }
.fa-arrow-up-right-from-square::before { content: "\f08e"; }

/* ---------- 2. Tokens ---------- */
:root {
    --bg: #0a1322;
    --bg-secondary: #0d192b;
    --bg-card: #0f1b2f;
    --bg-card-hover: #14233b;

    --cyan: #33c3ff;                 /* logo blue — the one accent */
    --accent-hover: #7dd8ff;
    --accent-ink: #04121f;
    --blue: #1f7aff;
    --gradient: #33c3ff;

    --text: #edf0f6;
    --text-secondary: #c3ccdb;
    --muted: #97a5ba;

    --line: rgba(190, 205, 230, 0.12);
    --line-strong: rgba(190, 205, 230, 0.22);
    --border: rgba(190, 205, 230, 0.16);
    --border-light: rgba(190, 205, 230, 0.1);

    --container-width: 1180px;
    --header-height: 76px;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-card: none;
    --shadow-glow: none;

    --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
    --font-text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- 3. Base typography ---------- */
html { scroll-padding-top: 96px; }
body,
button, input, textarea, select {font-family: var(--font-text);}
body {font-size: 1rem; line-height: 1.7; letter-spacing: -0.003em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;}
p { color: var(--text-secondary); }
h1, h2 {font-family: var(--font-display); font-weight: 420; letter-spacing: -0.022em; line-height: 1.08; font-optical-sizing: auto;}
h1 { font-size: clamp(2.7rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.12; }
h3, h4 {font-family: var(--font-text); font-weight: 600; letter-spacing: -0.012em; line-height: 1.3;}
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }

/* The one-word colour accent is retired: spans keep the headline tone */
.gradient-text, .text-gradient {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: inherit;
}

/* Remaining category labels: plain, sentence-case */
.eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--cyan);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

a { color: var(--cyan); }
a:hover { color: var(--accent-hover); }
::selection { background: var(--cyan); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* Calm, readable measure */
.section-head p, .page-hero p, .lead, .section-description { max-width: 62ch; }
p { max-width: 75ch; }
.card p, .project-body p { max-width: none; }

/* ---------- 4. Header and navigation ---------- */
.site-header {
    background: rgba(10, 19, 34, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.site-header.scrolled { background: rgba(10, 19, 34, 0.94); box-shadow: none; }
.header-container { min-height: var(--header-height); }

.brand { gap: 12px; }
.brand-mark {
    width: 40px; height: 40px;
    border: 1px solid var(--cyan);
    border-radius: 9px;
    background: transparent;
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.brand-text strong { font-size: 0.97rem; font-weight: 600; letter-spacing: -0.01em; }

.main-navigation { gap: 6px; }
.nav-link {
    padding: 8px 12px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
}
.nav-link::after { display: none; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.active { color: var(--text); }
.nav-link.active:not(.nav-cta)::after {
    display: block;
    left: 12px; right: 12px; bottom: 2px;
    height: 1px;
    border-radius: 0;
    background: var(--cyan);
    transform: none;
}
.nav-cta {
    margin-left: 10px;
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    color: var(--text);
}
.nav-cta:hover, .nav-cta.active { border-color: var(--cyan); color: var(--cyan); background: rgba(51, 195, 255, 0.06); }

.menu-toggle { border-radius: 8px; background: transparent; border-color: var(--line-strong); }

/* ---------- 5. Buttons ---------- */
.btn {
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    box-shadow: none;
}
.btn:hover { transform: none; }
.btn-primary { background: var(--cyan); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); box-shadow: none; }
.btn-secondary, .btn-outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--text);
}
.btn-secondary:hover, .btn-outline:hover {
    border-color: var(--cyan);
    background: rgba(51, 195, 255, 0.06);
    color: var(--text);
}
.btn-link {
    min-height: 0;
    padding: 4px 2px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--cyan);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    text-decoration-color: rgba(51, 195, 255, 0.45);
}
.btn-link:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

/* ---------- 6. Motion policy ---------- */
/* Scroll-reveal and hover-lift are removed: content is simply there. */
.reveal, .reveal-up, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
.card, .card:hover { transform: none; }

/* ---------- 7. Sections ---------- */
.section { padding: 104px 0; }
.section-alt {
    background: rgba(255, 255, 255, 0.014);
    border-block: 1px solid var(--line);
}
.section-head, .section-heading {
    max-width: 720px;
    margin: 0 0 56px;
    text-align: left;
}
.section-head h2, .section-heading h2 { margin-bottom: 18px; }
.section-head p, .section-heading p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

/* ---------- 8. Cards ---------- */
.card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: none;
    transition: border-color 0.2s ease;
}
.card:hover { background: var(--bg-card); border-color: var(--line); box-shadow: none; }
a.card:hover { border-color: rgba(51, 195, 255, 0.5); }
.card h3 { margin-bottom: 10px; }
.card p { line-height: 1.7; }

/* Lists of capabilities are open columns with a top rule, not boxes */
.grid-3 > .card,
.skill-card,
.projects-category-card,
.experience-overview-card,
.skills-process-card {
    padding: 22px 0 0;
    border: 0;
    border-top: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
}
.grid-3 > .card:hover,
.skill-card:hover,
.experience-overview-card:hover,
.skills-process-card:hover { background: transparent; border-top-color: var(--line-strong); }
a.projects-category-card:hover { border-top-color: var(--cyan); background: transparent; }
.projects-category-card .projects-category-link,
.projects-category-card > span:last-child { color: var(--cyan); font-weight: 600; font-size: 0.92rem; }

.grid-2, .grid-3 { gap: 32px; }
.grid-3 { gap: 40px; }

/* ---------- 9. Tags ---------- */
.tag-list { gap: 8px; }
.tag {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
}

/* ---------- 10. Home hero ---------- */
.hero { padding: 104px 0 80px; }
.hero::before { display: none; }
.hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    align-items: center;
    gap: 80px;
}
.hero .hero-role {
    max-width: none;
    margin-bottom: 26px;
    color: var(--cyan);
    font-size: 0.95rem;
    font-weight: 500;
}
.hero h1 { margin-bottom: 28px; font-size: clamp(2.7rem, 5.2vw, 4.4rem); line-height: 1.04; letter-spacing: -0.026em; }
.hero p.lead, .hero-content > .lead {
    max-width: 54ch;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}
.hero-actions { margin-top: 36px; gap: 14px 18px; }
.hero-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.hero-highlight {
    padding: 0; border: 0; background: none; border-radius: 0;
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--muted);
    font-size: 0.88rem;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: none; }

/* Workflow panel */
.hero-flow {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    overflow: hidden;
}
.hero-flow-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 16px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}
.hero-flow .status-line { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.hero-flow .status-dot { background: #6ccba2; }
.flow-steps { list-style: none; margin: 0; padding: 10px 22px 14px; }
.flow-step {
    position: relative;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 16px;
    margin: 0;
    padding: 16px 0;
}
.flow-step + .flow-step { border-top: 1px solid var(--line); }
.flow-index {
    display: grid; place-items: center;
    width: 28px; height: 28px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
}
.flow-step h3 { margin: 2px 0 4px; font-size: 1rem; }
.flow-step p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; max-width: none; }
.flow-tools {
    display: inline-block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0;
}

/* One orchestrated moment: the workflow draws in once on load */
@media (prefers-reduced-motion: no-preference) {
    .flow-step { opacity: 0; transform: translateY(8px); animation: flow-in 0.55s cubic-bezier(.2,.7,.2,1) forwards; }
    .flow-step:nth-child(1) { animation-delay: 0.25s; }
    .flow-step:nth-child(2) { animation-delay: 0.45s; }
    .flow-step:nth-child(3) { animation-delay: 0.65s; }
    .flow-step:nth-child(4) { animation-delay: 0.85s; }
    @keyframes flow-in { to { opacity: 1; transform: none; } }
}

/* Stats: a quiet ruled row, not three boxes */
.stats-section { padding: 0; }
.stats-section .container { padding: 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-block: 1px solid var(--line);
}
.stat-card {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 30px 0 30px 32px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: none;
}
.stat-card:first-child { padding-left: 0; border-left: 0; }
.stat-number {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 420;
    letter-spacing: -0.02em;
    line-height: 1;
}
.stat-label { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- 11. Page heroes ---------- */
.page-hero {
    padding: 84px 0 64px;
    border-bottom: 1px solid var(--line);
    background: none;
}
.page-hero h1 { max-width: 20ch; margin: 18px 0 22px; font-size: clamp(2.5rem, 4.8vw, 4rem); line-height: 1.06; }
.page-hero p { color: var(--text-secondary); font-size: 1.08rem; line-height: 1.7; }
.breadcrumb { margin-bottom: 10px; color: var(--muted); font-size: 0.84rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); text-decoration: none; }
.page-hero .tag-list, .experience-hero-tags, .projects-hero-tags, .skills-hero-tags, .education-hero-tags { margin-top: 28px; }

/* ---------- 12. Project cards ---------- */
.project-card { border-radius: var(--radius-lg); overflow: hidden; }
.project-visual {
    min-height: 132px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-secondary);
}
.project-card .project-visual > span:only-child {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 420;
    letter-spacing: -0.01em;
}
.project-body { padding: 28px 30px 30px; }
.project-body h2, .project-body h3 { font-family: var(--font-text); }
.project-body > .eyebrow + h2, .project-body > .eyebrow + h3,
.project-body > .projects-card-top + h2, .project-body > .projects-card-top + h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 450; letter-spacing: -0.015em; }
.featured-projects-cta { margin-top: 40px; text-align: left; }

/* Status pills read as plain metadata */
.status-badge, .projects-status, .experience-status, .education-cert-badge {
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

/* ---------- 13. About ---------- */
.about-image-wrap { padding: 10px; border-radius: 16px; border-color: var(--line); }
.profile-photo { border-radius: 8px; }
.about-image-caption { color: var(--muted); font-size: 0.82rem; }
.about-intro-card, .about-approach-card { padding: 34px; }
.approach-item { border-radius: var(--radius-md); background: transparent; }
.approach-number, .skills-process-number {
    width: auto; height: auto;
    background: none;
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 420;
    letter-spacing: 0;
}

/* ---------- 14. Experience, education and other long-form cards ---------- */
.experience-card, .education-cert-card, .education-learning-card, .education-feature-card,
.experience-resume-card, .projects-featured-card, .projects-automation-card {
    border-radius: var(--radius-lg);
}
.education-feature-card, .education-cert-top, .education-learning-heading { grid-template-columns: 1fr; }
.experience-company { color: var(--cyan); font-weight: 500; }
.experience-date { color: var(--muted); font-size: 0.86rem; }
.experience-list li::marker, .list-clean li::marker, .projects-feature-list li::marker { color: var(--cyan); }

/* ---------- 15. Call-to-action blocks ---------- */
.callout {
    padding: 56px 48px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    text-align: left;
}
.callout h2 { max-width: 26ch; margin: 0 0 16px; }
.callout p { max-width: 56ch; color: var(--muted); }
.callout .btn { margin-top: 26px; }

/* ---------- 16. Forms ---------- */
input, textarea, select {
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--bg-secondary);
    color: var(--text);
}
input:focus, textarea:focus, select:focus {
    outline: 0;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(51, 195, 255, 0.16);
}
label { font-weight: 500; font-size: 0.9rem; }
.contact-form-card { padding: 36px; border-radius: var(--radius-lg); }
.contact-social-link { border-radius: var(--radius-md); }

/* ---------- 17. Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: transparent; }
.footer-container { padding-top: 56px; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.footer-brand p { max-width: 38ch; margin-top: 18px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.footer-navigation-group h3 { margin-bottom: 14px; color: var(--muted); font-family: var(--font-text); font-size: 0.84rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.footer-navigation { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-navigation a { color: var(--text-secondary); font-size: 0.93rem; }
.footer-navigation a:hover { color: var(--cyan); }
.footer-social-section { display: block; margin-top: 32px; padding: 0; border: 0; }
.footer-socials { display: flex; justify-content: flex-start; gap: 10px; width: auto; }
.footer-socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    transform: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-socials a:hover { color: var(--cyan); border-color: var(--cyan); transform: none; }
.footer-bottom {
    margin-top: 40px;
    padding: 22px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.84rem;
}
.footer-bottom p { color: var(--muted); font-size: 0.84rem; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1050px) {
    :root { --header-height: 72px; }
    .hero-grid { gap: 56px; }
    .nav-link { font-size: 0.86rem; padding: 8px 9px; }
}
@media (max-width: 900px) {
    .hero { padding: 72px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .main-navigation {
        background: var(--bg);
        border-color: var(--line-strong);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
    }
    .nav-link { padding: 12px 14px; font-size: 0.97rem; color: var(--text-secondary); }
    .nav-link:hover, .nav-link.active { background: rgba(51, 195, 255, 0.07); color: var(--text); }
    .nav-cta { margin: 6px 0 0; text-align: center; border-color: var(--cyan); color: var(--cyan); }
    .footer-main { flex-direction: column; gap: 34px; }
}
@media (max-width: 700px) {
    .section { padding: 72px 0; }
    .page-hero { padding: 60px 0 44px; }
    .section-head, .section-heading { margin-bottom: 40px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card, .stat-card:first-child { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
    .stat-card:first-child { border-top: 0; }
    .callout { padding: 36px 24px; }
    .contact-form-card { padding: 24px 20px; }
    .grid-3 { gap: 32px; }
    .hero-flow-head { padding: 12px 18px; }
    .flow-steps { padding: 6px 18px 10px; }
    .brand-text strong { font-size: 0.92rem; }
}

/* ---------- 19. Refinements ---------- */
.project-card { padding: 0; }
.featured-projects-cta { justify-content: flex-start; margin-top: 40px; }

/* Tools: four open columns instead of one stacked box */
.card.toolkit-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.toolkit-card .toolkit-group { margin: 0; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.toolkit-card .toolkit-group h3 { margin-bottom: 14px; font-size: 1.02rem; }
.btn.toolkit-link {
    display: inline-flex;
    margin: 40px 0 0;
    padding: 11px 20px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.92rem;
}
.btn.toolkit-link:hover { border-color: var(--cyan); color: var(--text); }
@media (max-width: 1000px) { .card.toolkit-card { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card.toolkit-card { grid-template-columns: 1fr; gap: 28px; } }

/* Projects page */
.projects-vrk-preview {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 150px; padding: 28px; border: 0; border-radius: 0; background: var(--bg-secondary);
    text-align: center;
}
.projects-vrk-preview .projects-preview-kicker {
    color: var(--muted); font-size: 0.82rem; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.projects-vrk-preview strong {
    color: var(--text); font-family: var(--font-display); font-size: 1.9rem; font-weight: 420; letter-spacing: -0.015em; line-height: 1.15;
}
.projects-vrk-preview > span:last-child { color: var(--cyan); font-size: 0.9rem; }
.projects-vrk-visual { background: var(--bg-secondary); }

/* Workflow steps are a real sequence: a plain numbered list */
.projects-steps { display: block; margin: 12px 0 0; padding-left: 1.3rem; }
.projects-steps li { margin: 0 0 8px; padding-left: 6px; color: var(--text-secondary); line-height: 1.6; }
.projects-steps li::marker { color: var(--cyan); font-family: var(--font-mono); font-size: 0.86rem; }

/* Heading rhythm inside cards and timelines */
.card p + h3, .card p + h4, .card ul + h3, .card ul + h4 { margin-top: 24px; }
.experience-timeline-heading { margin-bottom: 28px; }
.experience-timeline-heading h2 { margin-bottom: 12px; }
@media (max-width: 900px) { .nav-link.active:not(.nav-cta)::after { display: none; } }

/* Logo mark (image) */
img.brand-mark {
    width: 46px; height: 46px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    object-fit: contain;
}
@media (max-width: 700px) { img.brand-mark { width: 40px; height: 40px; } }

/* ---------- AI automation showcase additions ---------- */
.automation-lab { background: var(--bg); }
.automation-lab-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; }
.automation-blueprint, .automation-principles { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-card); padding: clamp(20px, 3vw, 30px); }
.blueprint-kicker { color: var(--cyan); font: 500 .78rem/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.blueprint-flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 24px 0 18px; }
.blueprint-node { min-height: 116px; padding: 14px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); position: relative; }
.blueprint-node:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 42%; z-index: 1; color: var(--cyan); font-size: 1rem; }
.blueprint-node span { display: block; color: var(--cyan); font: 500 .72rem var(--font-mono); margin-bottom: 9px; }
.blueprint-node strong { display: block; color: var(--text); font-size: .92rem; line-height: 1.35; }
.blueprint-node small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.45; margin-top: 7px; }
.blueprint-note { border-top: 1px solid var(--line); padding-top: 15px; margin: 0; font-size: .9rem; }
.principle-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.principle-list li { padding-left: 19px; position: relative; color: var(--text-secondary); font-size: .91rem; }
.principle-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.principle-list strong { display: block; color: var(--text); margin-bottom: 2px; }
.automation-usecases { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.usecase-item { padding: 18px; border-top: 1px solid var(--line-strong); }
.usecase-item .usecase-index { color: var(--cyan); font: 500 .76rem var(--font-mono); }
.usecase-item h3 { margin: 9px 0 6px; }
.usecase-item p { font-size: .88rem; margin: 0; }
@media (max-width: 760px) {
  .automation-lab-grid { grid-template-columns: 1fr; }
  .blueprint-flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .blueprint-node:nth-child(2)::after { display: none; }
  .automation-usecases { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .blueprint-flow { gap: 8px; }
  .blueprint-node { min-height: 105px; padding: 11px 9px; }
  .blueprint-node:not(:last-child)::after { display: none; }
}
