/* ==========================================================================
   Jordan Rivers Portfolio — Dark Teal + Orange Theme
   ========================================================================== */

:root {
    --bg: #0F1419;
    --bg-alt: #141A21;
    --bg-card: #1A222B;
    --border: rgba(43, 122, 120, 0.18);
    --border-strong: rgba(43, 122, 120, 0.4);

    --primary: #2B7A78;
    --primary-bright: #3AAFA9;
    --accent: #F2994A;
    --accent-bright: #F5B57E;

    /* Section accent colors */
    --c-emergencies: #E74C3C;
    --c-healthcare:  #3498DB;
    --c-agriculture: #27AE60;
    --c-data:        #9B59B6;
    --c-ventures:    #F2994A;
    --c-highlights:  #F2C94C;
    --c-speaking:    #6C7DE0;
    --c-media:       #EB5E8C;
    --c-technology:  #3AAFA9;

    --text: #E6EDF3;
    --text-muted: #8B98A6;
    --text-dim: #5C6873;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', Menlo, monospace;

    --radius: 12px;
    --radius-sm: 6px;
    --shadow-glow: 0 0 24px rgba(58, 175, 169, 0.2);

    --max-w: 1200px;
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-bright); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ----- Navigation ----- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
    background: rgba(15, 20, 25, 0.95);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    color: var(--text);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-mark {
    color: var(--accent);
    font-size: 1.05em;
    line-height: 1;
}

.nav-links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color .2s ease;
}
.nav-links a:hover { color: var(--primary-bright); }
.nav-cta {
    color: var(--accent) !important;
    border: 1px solid rgba(242, 153, 74, 0.4);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    transition: all .2s ease;
}
.nav-cta:hover {
    background: rgba(242, 153, 74, 0.08);
    border-color: var(--accent);
}
/* ----- Nav dropdown (Sections menu) ----- */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-caret {
    font-size: 0.7em;
    color: var(--text-dim);
    transition: transform .2s ease, color .2s ease;
    display: inline-block;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
    color: var(--primary-bright);
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
    color: var(--primary-bright);
    transform: rotate(-180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 50%;
    transform: translate(-50%, -4px);
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 110;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.nav-dropdown-menu li {
    list-style: none;
    padding: 0;
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.55rem 1.1rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .15s ease, background .15s ease;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    color: var(--primary-bright);
    background: rgba(58, 175, 169, 0.07);
}

.lang-toggle {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    padding: 0.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(15, 20, 25, 0.4);
    margin-left: 1rem;
}
.lang-link {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    padding: 0.3rem 0.55rem;
    border-radius: 3px;
    letter-spacing: 0.06em;
    transition: all .2s ease;
    text-decoration: none;
}
.lang-link:hover {
    color: var(--primary-bright);
    background: rgba(58, 175, 169, 0.08);
}
.lang-link.is-active {
    color: var(--bg);
    background: var(--primary-bright);
}
.lang-link.is-active:hover {
    color: var(--bg);
    background: var(--primary-bright);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-bright);
    transition: transform .2s ease;
}

/* ----- Hero ----- */
.hero {
    position: relative;
    padding: 9rem 0 6rem;
    overflow: hidden;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 30% 20%, rgba(43, 122, 120, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 45% at 75% 80%, rgba(242, 153, 74, 0.10), transparent 60%);
    pointer-events: none;
}
.hero-inner { position: relative; }

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-bright);
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
}
.hero-brand {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--primary-bright);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-bright) 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-role {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 0 1.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.hero-tagline {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    color: var(--text);
    max-width: 720px;
    margin: 0 auto 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
}
.hero-statement {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 0.5rem;
    line-height: 1.6;
}
.hero-pulse {
    display: block;
    width: 100%;
    max-width: 460px;
    height: 50px;
    margin: 1rem auto 1.75rem;
    color: var(--primary-bright);
    opacity: 0.65;
    overflow: visible;
}
.hero-pulse path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: pulse-draw 3.2s cubic-bezier(.6, 0, .35, 1) 0.4s forwards;
}
@keyframes pulse-draw {
    to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-pulse path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        animation: none;
    }
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: var(--text);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    background: var(--primary-bright);
    color: var(--bg);
    transform: translateY(-1px);
    box-shadow: 0 0 36px rgba(58, 175, 169, 0.4);
}
.btn-ghost {
    color: var(--accent);
    border-color: rgba(242, 153, 74, 0.4);
    background: transparent;
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
    background: rgba(242, 153, 74, 0.06);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    max-width: 720px;
    margin: 0 auto;
}
.stat {
    background: rgba(26, 34, 43, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    transition: all .25s ease;
}
.stat:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.stat-value {
    font-family: var(--font-mono);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* ----- Sections ----- */
.section {
    padding: 6rem 0;
    position: relative;
}
.section-alt { background: var(--bg-alt); }

.section-head {
    margin-bottom: 3rem;
    max-width: 760px;
}
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-bright);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.section-lede {
    font-size: 1.075rem;
    color: var(--text-muted);
    margin: 0;
}

.subsection-title {
    font-size: 1.15rem;
    font-family: var(--font-mono);
    color: var(--primary-bright);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 3.5rem 0 1.5rem;
}

/* Section accent strips */
#emergencies  { --section-accent: var(--c-emergencies); }
#healthcare   { --section-accent: var(--c-healthcare); }
#agriculture  { --section-accent: var(--c-agriculture); }
#data         { --section-accent: var(--c-data); }
#ventures     { --section-accent: var(--c-ventures); }
#highlights   { --section-accent: var(--c-highlights); }
#speaking     { --section-accent: var(--c-speaking); }
#media        { --section-accent: var(--c-media); }
#technology   { --section-accent: var(--c-technology); }

#emergencies .section-tag,
#healthcare .section-tag,
#agriculture .section-tag,
#data .section-tag,
#ventures .section-tag,
#highlights .section-tag,
#speaking .section-tag,
#media .section-tag,
#technology .section-tag { color: var(--section-accent); }

/* ----- Highlights ----- */
.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.highlight-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--c-highlights);
    border-radius: var(--radius);
    transition: all .25s ease;
}
.highlight-card:hover {
    border-color: var(--border-strong);
    border-left-color: var(--c-highlights);
    transform: translateX(2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.highlight-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--c-highlights);
    padding-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.highlight-title {
    font-size: 1.05rem;
    margin: 0 0 0.45rem;
    color: var(--text);
    font-weight: 600;
}
.highlight-title a {
    color: var(--text);
    transition: color .2s ease;
}
.highlight-title a:hover {
    color: var(--c-highlights);
}
.highlight-desc {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.highlight-partners {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--border);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    line-height: 1.55;
}
.highlight-partners-label {
    color: var(--c-highlights);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-right: 0.4rem;
}
@media (max-width: 720px) {
    .highlight-card {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}

/* ----- Speaking ----- */
.speaking-group-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--c-speaking);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}
.speaking-group-label:first-of-type {
    margin-top: 0;
}
.speaking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.speaking-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--c-speaking);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    transition: all .25s ease;
}
.speaking-card:hover {
    border-color: var(--border-strong);
    transform: translateX(2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.speaking-upcoming {
    border-left-width: 4px;
    background:
        linear-gradient(135deg, rgba(108, 125, 224, 0.06), transparent 40%),
        var(--bg-card);
}
.speaking-upcoming::before {
    content: 'UPCOMING';
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--bg);
    background: var(--c-speaking);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.speaking-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0.85rem;
}
.speaking-date {
    color: var(--c-speaking);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.speaking-location {
    color: var(--text-muted);
}
.speaking-meta-sep {
    color: var(--text-dim);
    margin: 0 0.05rem;
}
.speaking-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-left: auto;
}
.speaking-tag {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    background: rgba(108, 125, 224, 0.08);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    letter-spacing: 0;
}
.speaking-title {
    font-size: 1.1rem;
    margin: 0 0 0.4rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.35;
}
.speaking-title a { color: var(--text); transition: color .2s ease; }
.speaking-title a:hover { color: var(--c-speaking); }
.speaking-event {
    font-size: 0.92rem;
    color: var(--primary-bright);
    margin-bottom: 0.85rem;
    line-height: 1.4;
    font-weight: 500;
}
.speaking-desc {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}
@media (max-width: 720px) {
    .speaking-tags {
        margin-left: 0;
        margin-top: 0.4rem;
        width: 100%;
    }
}

/* ----- Media ----- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.media-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .25s ease;
}
.media-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.media-link { display: block; }
.media-thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--bg);
    position: relative;
    transition: filter .25s ease;
}
.media-card:hover .media-thumb { filter: brightness(1.06); }

.media-thumb-video::after,
.media-thumb-audio:not(.media-thumb-fallback)::after {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .2s ease, background .2s ease;
}
.media-card:hover .media-thumb-video::after,
.media-card:hover .media-thumb-audio:not(.media-thumb-fallback)::after {
    background: var(--c-media);
    transform: translate(-50%, -50%) scale(1.08);
}
/* media-thumb-audio with thumbnail needs relative positioning for ::after */
.media-thumb-audio:not(.media-thumb-fallback) {
    position: relative;
}

.media-thumb-fallback {
    background:
        linear-gradient(135deg, rgba(235, 94, 140, 0.16), rgba(58, 175, 169, 0.08)),
        var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.media-wave {
    width: 70%;
    height: auto;
    color: var(--c-media);
    fill: currentColor;
    opacity: 0.85;
    filter: drop-shadow(0 2px 10px rgba(235, 94, 140, 0.3));
    transition: opacity .3s ease, transform .3s ease;
}
.media-card:hover .media-wave {
    opacity: 1;
    transform: scaleY(1.08);
}

.media-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; }
.media-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
}
.media-format {
    color: var(--c-media);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.media-outlet { color: var(--text-muted); }
.media-date   { color: var(--text-dim); }
.media-lang {
    background: var(--c-media);
    color: var(--bg);
    padding: 0.05rem 0.4rem;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-left: auto;
}
.media-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    font-weight: 600;
}
.media-title a { color: var(--text); transition: color .2s ease; }
.media-title a:hover { color: var(--c-media); }
.media-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Placeholder for sections awaiting content */
.section-pending {
    background: var(--bg-card);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.section-pending code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--accent);
    background: rgba(242, 153, 74, 0.08);
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

/* ----- About: portrait floats, text wraps around (portal-window style) ----- */
.about-portrait {
    float: left;
    width: 280px;
    margin: 0.25rem 2.5rem 1.25rem 0;
    padding: 0;
    shape-outside: circle(50%);  /* text follows the circle, not the bounding box */
    shape-margin: 1.5rem;
}
.about-portrait img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 30%;  /* favor face area */
    border-radius: 50%;
    border: 3px solid rgba(58, 175, 169, 0.9);
    box-shadow:
        0 0 0 8px rgba(15, 20, 25, 0.7),     /* dark separator ring */
        0 0 36px rgba(58, 175, 169, 0.32),   /* near teal glow */
        0 0 70px rgba(58, 175, 169, 0.14),   /* far teal glow */
        0 18px 44px rgba(0, 0, 0, 0.5);      /* drop shadow */
    transition: border-color .3s ease, box-shadow .3s ease;
    display: block;
}
.about-portrait img:hover {
    border-color: #5DD3CD;  /* lighter teal */
    box-shadow:
        0 0 0 8px rgba(15, 20, 25, 0.7),
        0 0 48px rgba(58, 175, 169, 0.5),
        0 0 90px rgba(58, 175, 169, 0.22),
        0 18px 44px rgba(0, 0, 0, 0.5);
}

/* Values grid must clear the float so it starts below the portrait */
/* Let the About lede use the full container width to the right of the
   floated portrait (override the global .section-head 760px cap). The
   floated portrait already takes ~320px on the left, so removing the cap
   gives the lede ~880px to wrap into — roughly 75-80ch, still readable. */
#mission .section-head {
    max-width: none;
}
#mission .section-lede {
    /* Readability cap — wider than default but bounded so lines stay scannable */
    max-width: 80ch;
}

#mission .values-grid {
    clear: left;
}

@media (max-width: 960px) {
    .about-portrait {
        width: 220px;
        margin: 0.25rem 2rem 1rem 0;
    }
}
@media (max-width: 720px) {
    .about-portrait {
        float: none;
        width: 180px;
        margin: 0 auto 1.5rem;
        shape-outside: none;
    }
}

/* ----- Mission / Values ----- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all .25s ease;
}
.value-card:hover {
    border-color: var(--border-strong);
    border-left-color: var(--accent);
    transform: translateY(-3px);
}
.value-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--text);
}
.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ----- Credentials (Emergencies) ----- */
.cred-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.cred-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.cred-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: var(--section-accent, var(--primary));
    opacity: 0.6;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.cred-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.cred-card:hover::before { transform: scaleX(1); }
.cred-number {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--section-accent, var(--primary-bright));
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
    line-height: 1;
}
.cred-title {
    font-size: 1.15rem;
    margin: 0 0 0.85rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.cred-skills {
    list-style: none;
    margin: 0; padding: 0;
}
.cred-skills li {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.25rem 0 0.25rem 1rem;
    position: relative;
}
.cred-skills li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--section-accent, var(--primary-bright));
}

.apps-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}
.apps-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-right: 0.5rem;
}
.app-pill {
    font-size: 0.85rem;
    padding: 0.4rem 0.85rem;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 999px;
    color: var(--text);
}

/* ----- Impact strip ----- */
.impact-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1.75rem;
    background: rgba(15, 20, 25, 0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.impact-item { text-align: center; }
.impact-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}
.impact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ----- Solutions (Healthcare / Agriculture) ----- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.solution-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--section-accent, var(--primary));
    transition: width .4s ease;
}
.solution-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.solution-card:hover::before { width: 100%; }

.solution-title {
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
    color: var(--text);
}
.solution-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
}
.solution-features {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.solution-features li {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    background: rgba(58, 175, 169, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}
.solution-impact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
}

/* ----- Roles (Data Science) ----- */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all .25s ease;
}
.role-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}
.role-period {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--c-data);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
.role-title {
    font-size: 1.05rem;
    margin: 0 0 0.25rem;
    color: var(--text);
}
.role-company {
    font-size: 0.95rem;
    color: var(--primary-bright);
    margin-bottom: 1rem;
}
.role-achievements {
    list-style: none;
    margin: 0; padding: 0;
}
.role-achievements li {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.3rem 0 0.3rem 1.1rem;
    position: relative;
    line-height: 1.5;
}
.role-achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--c-data);
}

/* Expertise grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all .25s ease;
}
.expertise-card:hover {
    border-color: var(--border-strong);
}
.expertise-name {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-bright);
    margin: 0 0 1rem;
    font-family: var(--font-mono);
}
.expertise-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tool-pill {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    background: rgba(43, 122, 120, 0.08);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

/* Philosophy */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.philosophy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all .25s ease;
}
.philosophy-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.philosophy-mark {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-data);
    letter-spacing: 0.12em;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
    line-height: 1;
}
.philosophy-card h4 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    color: var(--text);
}
.philosophy-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ----- Ventures ----- */
.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.venture-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}
.venture-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.venture-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.venture-role {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.venture-period { color: var(--text-dim); }
.venture-name {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
    color: var(--text);
}
.venture-name a {
    color: var(--text);
    transition: color .2s ease;
}
.venture-name a:hover {
    color: var(--accent);
}
.venture-url {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    margin: -0.25rem 0 1rem;
    letter-spacing: 0.02em;
}
.venture-url-pending {
    color: var(--text-muted);
}
.pending-tag {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--bg);
    background: var(--c-ventures);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    vertical-align: middle;
}
.venture-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
    flex: 1;
}
.venture-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}
.metric-pill {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    background: rgba(242, 153, 74, 0.08);
    border: 1px solid rgba(242, 153, 74, 0.2);
    border-radius: var(--radius-sm);
    color: var(--accent-bright);
}

/* ----- Technology ----- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all .25s ease;
}
.tech-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.tech-name {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-technology);
    margin: 0 0 1rem;
    font-family: var(--font-mono);
}
.tech-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tech-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
    background: rgba(58, 175, 169, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

/* ----- Contact ----- */
.contact-card-wrap {
    max-width: 540px;
    margin: 0 auto 2rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 760px;
    margin: 0 auto 2rem;
}
.contact-hint {
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.55;
}
.contact-languages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    max-width: 760px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(43, 122, 120, 0.06);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}
.lang-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0.3rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bg);
    background: var(--primary-bright);
    border-radius: var(--radius-sm);
    letter-spacing: 0.06em;
}
.lang-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
    line-height: 1.5;
}
.available-for {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    max-width: 760px;
    margin: 0 auto 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(15, 20, 25, 0.55);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.available-for-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 0.5rem;
}
.available-pill {
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    background: rgba(58, 175, 169, 0.06);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text);
}
@media (max-width: 720px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all .25s ease;
    color: var(--text);
}
.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(242, 153, 74, 0.18);
    color: var(--text);
}
.contact-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}
.contact-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.social-links a {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all .2s ease;
}
.social-links a:hover {
    color: var(--primary-bright);
    border-color: var(--border-strong);
    background: rgba(43, 122, 120, 0.06);
}

/* ----- Footer ----- */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-logo {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-copy {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ----- Reveal Animation ----- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
    .hero { padding: 7rem 0 4rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (max-width: 720px) {
    .nav-links {
        position: fixed;
        top: 60px; left: 0; right: 0;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 1.5rem;
        transform: translateY(-110%);
        transition: transform .3s ease;
    }
    .nav-links.is-open { transform: translateY(0); }
    .nav-links li { padding: 0.6rem 0; }
    .nav-toggle { display: flex; }

    /* Inline-expand the Sections dropdown on mobile */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0.4rem 0 0 1rem;
        min-width: 0;
        margin-top: 0.25rem;
        border-left: 1px dashed var(--border);
    }
    .nav-dropdown-menu li {
        padding: 0;
    }
    .nav-dropdown-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    .nav-caret { display: none; }

    .lang-toggle {
        margin-left: 0.5rem;
        margin-right: 0.25rem;
    }
    .lang-link {
        font-size: 0.68rem;
        padding: 0.25rem 0.45rem;
    }

    .section { padding: 4rem 0; }
    .hero-stats { grid-template-columns: 1fr; }
    .stat-value { font-size: 1.6rem; }
    .footer-inner { justify-content: center; text-align: center; }
}
