/* Base */
:root {
    --bg: #0b0c10;
    --panel: #111317;
    --ink: #0f1115;
    --text: #f7f9fc;
    --muted: #d0d8e6;
    --brand: #2e82ff;
    --brand-2: #ffb95c;
    --accent: #8ad1ff;
    --stroke: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(46, 130, 255, .12), transparent 60%),
        radial-gradient(800px 600px at -10% -10%, rgba(46, 130, 255, .08), transparent 60%),
        linear-gradient(180deg, #0c0d11, #0a0b0e);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.section-title {
    font-family: 'Fraunces', serif;
    letter-spacing: 0.01em;
}

/* Ambient background orbs */
.bg-orb {
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(0px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.orb-1 {
    top: -80px;
    right: 8%;
    background: radial-gradient(circle, rgba(46, 130, 255, 0.55), transparent 70%);
}

.orb-2 {
    bottom: 12%;
    left: -60px;
    background: radial-gradient(circle, rgba(255, 185, 92, 0.5), transparent 70%);
}

.orb-3 {
    top: 35%;
    left: 60%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(138, 209, 255, 0.45), transparent 70%);
}

/* Utility */
.section {
    padding: 72px 0;
    position: relative;
    z-index: 1;
}

.motion-ready .section {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s cubic-bezier(.2, .75, .25, 1), transform .8s cubic-bezier(.2, .75, .25, 1);
}

.motion-ready .section.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
}

.stagger-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.section-text {
    max-width: 880px;
    color: var(--muted);
}

/* Glass navbar */
.glass {
    background: rgba(12, 13, 17, 0.65);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--stroke);
    position: relative;
    z-index: 1200;
    isolation: isolate;
}

.navbar.glass {
    position: sticky;
    top: 0;
}

.navbar .container,
.navbar-brand,
.navbar-nav,
.navbar-collapse {
    position: relative;
    z-index: 2;
}

.navbar-dark .navbar-nav .nav-link {
    color: #e8eefc;
    font-weight: 500;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.7rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link.nav-link-blog,
.nav-link-blog {
    color: #ffd89f;
    border: 1px solid rgba(255, 185, 92, 0.55);
    border-radius: 999px;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link.nav-link-blog:hover,
.nav-link-blog:hover {
    color: #fff3de;
    border-color: rgba(255, 185, 92, 0.8);
}

.navbar-dark .navbar-nav .nav-link.nav-link-intelligence,
.nav-link-intelligence {
    color: #bfe6ff;
    border: 1px solid rgba(138, 209, 255, 0.44);
    border-radius: 999px;
    background: rgba(46, 130, 255, 0.08);
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link.nav-link-intelligence:hover,
.nav-link-intelligence:hover {
    color: #ffffff;
    border-color: rgba(138, 209, 255, 0.75);
    background: rgba(46, 130, 255, 0.15);
}

.nav-work-dropdown {
    position: relative;
}

.navbar-dark .navbar-nav .nav-link-work {
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.nav-link-work::after {
    margin-left: 0.48rem;
    transition: transform 0.2s ease;
}

.navbar .work-menu {
    min-width: 19rem;
    padding: 0.55rem;
    border: 1px solid rgba(138, 209, 255, 0.22);
    border-radius: 17px;
    background: rgba(10, 12, 17, 0.97);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px) saturate(140%);
}

.work-menu .work-menu-item {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
    padding: 0.68rem 0.78rem;
    border-radius: 11px;
    color: #eaf0f8;
    white-space: normal;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.work-menu .work-menu-item span {
    font-weight: 700;
}

.work-menu .work-menu-item small {
    color: #9caabd;
    font-size: 0.72rem;
    line-height: 1.35;
}

.work-menu .work-menu-item:hover,
.work-menu .work-menu-item:focus,
.work-menu .work-menu-item[aria-current="page"] {
    color: #ffffff;
    background: rgba(46, 130, 255, 0.15);
    transform: translateX(2px);
}

.work-menu .work-menu-item:hover small,
.work-menu .work-menu-item:focus small,
.work-menu .work-menu-item[aria-current="page"] small {
    color: #c9e8fb;
}

@media (min-width: 992px) {
    .nav-work-dropdown:hover > .work-menu,
    .nav-work-dropdown:focus-within > .work-menu {
        display: block;
        margin-top: 0;
    }

    .nav-work-dropdown:hover > .nav-link-work::after,
    .nav-work-dropdown:focus-within > .nav-link-work::after {
        transform: rotate(180deg);
    }
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link-work {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }

    .work-menu {
        width: 100%;
        min-width: 0;
        margin: 0.25rem 0 0.55rem;
        box-shadow: none;
    }
}

/* Hero */
/* .hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    padding: 80px 0 48px;
} */

.hero-img {
    width: clamp(180px, 22vw, 240px);
    height: clamp(230px, 30vw, 320px);
    border-radius: 32px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    filter: saturate(1.02) contrast(1.02);
    object-position: 50% 12%;
    background: rgba(255, 255, 255, 0.03);
}

.text-gradient {
    background: linear-gradient(90deg, #fff, #8ab6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Dynamic Header Text Styling ===== */

/* Dark gray header text when background shifts to white */
/* Keep hero background dark; only invert text for readability on scroll */ 

.hero {
    transition: color 0.8s ease;
    position: relative;
    z-index: 1;
    padding: 90px 0 60px;
}

.hero-positioning {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
}

.hero-positioning .hero-name {
    max-width: 820px;
    margin: 0.4rem 0 0.75rem;
    color: var(--text);
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 0.9;
}

.hero-role {
    max-width: 780px;
    margin: 0 0 1.15rem;
    font-size: clamp(1.65rem, 3.6vw, 3.2rem);
    line-height: 1.05;
}

.hero-kicker {
    color: #9dc2ff;
}

.hero-positioning-line {
    max-width: 720px;
    margin: 0;
    color: #d8e1ee;
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    line-height: 1.75;
}

.hero-scope {
    margin: 0.9rem 0 0;
    color: var(--brand-2);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hero-name {
    font-size: 9rem;
    line-height: 0.86;
    letter-spacing: 0;
    margin-top: 0.4rem;
    margin-bottom: 0.6rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

@media (max-width: 991px) {
    .hero-name {
        font-size: 6rem;
    }
}

@media (max-width: 767px) {
    .hero-name {
        font-size: 4rem;
        line-height: 0.92;
    }

    .hero-positioning {
        min-height: auto;
        padding-top: 64px;
    }
}

@media (max-width: 380px) {
    .hero-name {
        font-size: 3.5rem;
    }
}

#typed,
.typed-cursor {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    opacity: 1 !important;
}

.hero.scrolled {
    background-color: transparent !important;
    /* keep the dark gradient */
}

.hero.scrolled h1,
.hero.scrolled h2,
.hero.scrolled p,
.hero.scrolled .btn,
.hero.scrolled .btn:hover {
    color: #e9eef6 !important;
    /* slightly lighter for contrast on dark */
    text-shadow: none;
}

/* Tagline contrast (more punch) */
header p.lead {
    color: var(--brand-2);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.consultative-trigger {
    border-color: rgba(138, 209, 255, 0.4) !important;
    color: #eaf2ff !important;
    box-shadow: 0 12px 28px rgba(46, 130, 255, 0.15);
}

.consultative-trigger:hover {
    background: rgba(138, 209, 255, 0.12) !important;
    border-color: rgba(138, 209, 255, 0.6) !important;
}

.consultative-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: 1px solid rgba(138, 209, 255, 0.28);
    border-radius: 1.4rem;
    background: rgba(12, 13, 17, 0.88);
    backdrop-filter: blur(12px);
    color: #f4f8ff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(138, 209, 255, 0.08);
    z-index: 1100;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.consultative-fab:hover {
    transform: translateY(-2px);
    border-color: rgba(138, 209, 255, 0.5);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42), 0 0 24px rgba(46, 130, 255, 0.18);
}

.consultative-fab-image {
    width: 3.1rem;
    height: 3.1rem;
    display: block;
}

.consultative-modal,
.consultative-shell,
.consultative-pane,
.consultative-scroll {
    -webkit-overflow-scrolling: touch;
}

.consultative-modal,
.consultative-shell {
    overscroll-behavior: contain;
}

.consultative-scroll {
    overscroll-behavior: contain;
}

.hero.scrolled p.lead {
    color: #76a9ff;
    /* brighter against dark bg while scrolled */
}

/* Skills */
.alt-bg {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 85%);
}

.skill-box {
    position: relative;
    min-height: 164px;
    color: var(--text);
    perspective: 900px;
    transform-style: preserve-3d;
    transition: transform .2s ease;
}

.skill-box:hover {
    transform: translateY(-4px);
}

.skill-box:focus-visible {
    outline: 2px solid rgba(138, 209, 255, 0.72);
    outline-offset: 4px;
}

.skill-box i {
    color: var(--brand);
    margin-bottom: 8px;
    display: block;
}

.skill-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 164px;
    background: linear-gradient(145deg, rgba(17, 19, 23, 0.96), rgba(13, 15, 20, 0.98));
    border: 1px solid var(--stroke);
    padding: 16px;
    border-radius: 14px;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform .42s ease, border-color .2s ease, box-shadow .2s ease;
}

.skill-front {
    transform: rotateY(0deg);
}

.skill-back {
    transform: rotateY(180deg);
    align-items: stretch;
    text-align: left;
    background: linear-gradient(145deg, rgba(11, 18, 31, 0.98), rgba(18, 20, 24, 0.98));
}

.skill-box:hover .skill-front,
.skill-box:focus-within .skill-front {
    transform: rotateY(-180deg);
}

.skill-box:hover .skill-back,
.skill-box:focus-within .skill-back {
    transform: rotateY(0deg);
    border-color: rgba(46, 130, 255, .48);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.skill-detail {
    min-height: 54px;
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.skill-meter {
    height: 10px;
    width: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-meter span {
    display: block;
    height: 100%;
    width: var(--skill-level);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-2));
}

.skill-back strong {
    color: var(--text);
    font-size: 0.82rem;
}

/* More vertical spacing between skill rows */
#skills .row {
    row-gap: 34px;
}

@media (min-width: 768px) {
    #skills .row {
        row-gap: 36px;
    }
}

.credential-card {
    border: 1px solid var(--stroke);
    background: linear-gradient(150deg, rgba(17, 19, 23, 0.95), rgba(12, 13, 17, 0.98));
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
}

.capability-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(17, 19, 23, 0.95), rgba(12, 13, 17, 0.98));
    padding: 22px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.capability-card h3 {
    margin: 0;
    color: #eef4ff;
    font-size: 1.15rem;
}

.capability-card p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.capability-card a {
    color: #9dc2ff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.capability-card a:hover,
.capability-card a:focus {
    color: #eaf0ff;
    text-decoration: underline;
}

.role-paths {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.25rem;
    border-top: 1px solid var(--stroke);
    padding-top: 1rem;
}

.role-paths span {
    margin-right: 0.2rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.role-paths a {
    border: 1px solid rgba(138, 209, 255, 0.24);
    border-radius: 999px;
    background: rgba(138, 209, 255, 0.08);
    color: #bfe6ff;
    padding: 0.38rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.role-paths a:hover,
.role-paths a:focus {
    border-color: rgba(138, 209, 255, 0.55);
    color: #ffffff;
}

.credential-kicker {
    color: var(--accent);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.credential-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: #eef4ff;
}

.credential-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.credential-link-list a {
    color: #dce8ff;
    font-weight: 600;
    text-decoration: none;
}

.credential-link-list a:hover,
.credential-link-list a:focus {
    color: #8ad1ff;
    text-decoration: underline;
}

.credential-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.credential-cloud span {
    border: 1px solid rgba(138, 209, 255, 0.24);
    background: rgba(46, 130, 255, 0.08);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 0.9rem;
}

/* Project cards */
.project-box.card {
    border: 1px solid var(--stroke);
    background: var(--panel);
    color: var(--text);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
}

.project-box.card:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 130, 255, .4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}

.project-box.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(46, 130, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.project-box.card:hover::after {
    opacity: 1;
}

/* Remove underline and lighten project description text */
.project-box.card {
    text-decoration: none !important;
}

.project-box.card p {
    text-decoration: none !important;
    color: #d8e1ee !important;
    /* lighter gray text for better readability */
}

.project-box.card .card-body {
    position: relative;
    z-index: 1;
}

.venture-backlog .project-box.card {
    min-height: 100%;
}

.venture-backlog .project-box.card h3 {
    font-size: 1.05rem;
    line-height: 1.28;
}

.venture-backlog .project-box.card p {
    font-size: 0.94rem;
    line-height: 1.65;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.project-tags .badge {
    background: rgba(157, 194, 255, 0.12);
    border: 1px solid rgba(157, 194, 255, 0.22);
    color: #dce8ff;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: #9dc2ff;
    font-weight: 700;
    text-decoration: none;
}

.project-link:hover {
    color: #eaf0ff;
    text-decoration: underline;
}

.project-embed {
    overflow: hidden;
}

.project-embed .twitter-tweet {
    margin: 0 !important;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    border: 1px solid rgba(157, 194, 255, 0.26);
    border-radius: 999px;
    color: #9dc2ff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.45rem 0.7rem;
    text-decoration: none;
}

.project-cta:hover {
    color: #eaf0ff;
    border-color: rgba(157, 194, 255, 0.55);
    text-decoration: underline;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.project-actions .project-cta {
    margin-top: 0;
}

.project-status {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(138, 209, 255, 0.24);
    border-radius: 999px;
    background: rgba(138, 209, 255, 0.08);
    color: #bfe6ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    padding: 0.32rem 0.58rem;
}

.project-privacy {
    margin-top: 0.8rem;
    border-left: 2px solid rgba(255, 216, 159, 0.42);
    color: #b8beca;
    font-size: 0.78rem;
    line-height: 1.55;
    padding-left: 0.7rem;
}

.project-role,
.project-result,
.project-why,
.project-stack {
    display: grid;
    gap: 0.18rem;
    margin: 0.72rem 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
}

.project-signal-meta {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    margin-top: 0.72rem;
}

.project-signal-meta .project-role,
.project-signal-meta .project-stack {
    margin-top: 0;
}

.project-role strong,
.project-result strong,
.project-why strong,
.project-stack strong {
    color: #9dc2ff;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-result {
    border-left: 2px solid rgba(157, 242, 208, 0.52);
    padding-left: 0.7rem;
}

.project-result strong {
    color: #9df2d0;
}

@media (max-width: 575px) {
    .project-signal-meta {
        grid-template-columns: 1fr;
    }
}

/* Optional: brighten project titles slightly for hierarchy */
.project-box.card h3 {
    color: #eaf0ff !important;
}

/* Ensure hover doesn't add underline back */
.project-box.card:hover,
.project-box.card:hover p,
.project-box.card:hover h3 {
    text-decoration: none !important;
}

.badge {
    border: 1px solid var(--stroke);
}

/* Projects header + filters */
.projects-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s ease;
}

.filter-pill.active,
.filter-pill:hover {
    background: rgba(46, 130, 255, 0.2);
    border-color: rgba(46, 130, 255, 0.5);
    color: #eaf0ff;
}

/* Portfolio intelligence */
.portfolio-intelligence {
    display: grid;
    gap: 18px;
}

.portfolio-split {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
}

.portfolio-panel {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background:
        radial-gradient(640px 280px at 100% 0%, rgba(138, 209, 255, 0.1), transparent 54%),
        linear-gradient(160deg, rgba(17, 19, 23, 0.96), rgba(12, 13, 17, 0.98));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    color: var(--text);
    overflow: hidden;
}

.portfolio-panel-wide {
    min-width: 0;
}

.portfolio-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 12px;
}

.portfolio-panel-header h3 {
    margin: 0;
    color: #eef4ff;
    font-size: 1.18rem;
    line-height: 1.25;
}

.portfolio-panel-header .eyebrow {
    margin-bottom: 6px;
}

.portfolio-panel-header>span {
    flex: 0 0 auto;
    border: 1px solid rgba(138, 209, 255, 0.22);
    border-radius: 999px;
    background: rgba(138, 209, 255, 0.08);
    color: #bfe6ff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.48rem 0.7rem;
}

.skill-graph-wrap {
    overflow-x: auto;
    padding: 0 18px 8px;
}

.skill-graph {
    display: block;
    min-width: 760px;
    width: 100%;
    height: auto;
}

.graph-rail {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 1;
}

.skill-edge {
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    opacity: 0.46;
}

.skill-node text,
.project-node text {
    fill: #eaf0ff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.project-node circle {
    fill: #101822;
    stroke: #9dc2ff;
    stroke-width: 1.5;
}

.project-node-meta {
    fill: #aab7c8 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
}

.graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 22px 20px;
}

.graph-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #dce8ff;
    font-size: 0.78rem;
    padding: 0.38rem 0.62rem;
}

.graph-legend span::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--legend-color);
    box-shadow: 0 0 14px color-mix(in srgb, var(--legend-color) 52%, transparent);
}

.radar-wrap {
    display: grid;
    place-items: center;
    padding: 2px 14px 0;
}

.radar-chart {
    display: block;
    width: min(100%, 340px);
    height: auto;
}

.radar-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1;
}

.radar-axis {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 1;
}

.radar-area {
    fill: rgba(138, 209, 255, 0.24);
    stroke: #8ad1ff;
    stroke-width: 2;
    filter: drop-shadow(0 12px 24px rgba(46, 130, 255, 0.28));
}

.radar-dot {
    fill: #ffb95c;
    stroke: #111317;
    stroke-width: 1.5;
}

.radar-label {
    fill: #dce8ff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
}

.radar-dimensions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 22px 22px;
}

.radar-dimensions div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: #cdd8e8;
    font-size: 0.78rem;
    padding: 0.52rem 0.62rem;
}

.radar-dimensions strong {
    color: #ffffff;
}

.role-matrix-wrap {
    overflow-x: auto;
    padding: 0 18px 20px;
}

.role-matrix {
    min-width: 620px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    color: #eaf0ff;
}

.role-matrix th,
.role-matrix td {
    padding: 0.58rem 0.65rem;
    vertical-align: middle;
}

.role-matrix thead th {
    color: #aebbd0;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.role-matrix tbody tr {
    background: rgba(255, 255, 255, 0.04);
}

.role-matrix tbody th {
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
    color: #f4f8ff;
    font-size: 0.88rem;
    font-weight: 700;
    max-width: 210px;
}

.role-matrix tbody th a {
    color: inherit;
    text-decoration: none;
}

.role-matrix tbody th a:hover {
    color: #8ad1ff;
    text-decoration: underline;
}

.role-matrix tbody td:last-child {
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
}

.role-matrix td {
    min-width: 86px;
    white-space: nowrap;
}

.role-score {
    display: inline-flex;
    width: 52px;
    height: 8px;
    margin-right: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.role-score span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.role-score-strong span {
    background: linear-gradient(90deg, #9df2d0, #8ad1ff);
}

.role-score-good span {
    background: linear-gradient(90deg, #8ad1ff, #9dc2ff);
}

.role-score-medium span {
    background: linear-gradient(90deg, #ffb95c, #ffd89f);
}

.role-score-light span {
    background: rgba(208, 216, 230, 0.54);
}

.role-matrix td strong {
    color: #ffffff;
    font-size: 0.82rem;
}

.pulse-refresh:disabled {
    cursor: wait;
    opacity: 0.72;
}

.ai-pulse-shell {
    min-height: 220px;
}

.ai-pulse-panel {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background:
        radial-gradient(760px 360px at 100% 0%, rgba(255, 185, 92, 0.09), transparent 54%),
        linear-gradient(160deg, rgba(17, 19, 23, 0.96), rgba(12, 13, 17, 0.98));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    color: var(--text);
    overflow: hidden;
}

.ai-pulse-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 12px;
}

.ai-pulse-chart-head h3,
.ai-pulse-error h3 {
    margin: 0;
    color: #eef4ff;
    font-size: 1.18rem;
    line-height: 1.25;
}

.ai-pulse-chart-head>span {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 185, 92, 0.24);
    border-radius: 999px;
    background: rgba(255, 185, 92, 0.08);
    color: #ffd89f;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.48rem 0.7rem;
}

.ai-pulse-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
    padding: 0 22px 22px;
}

.ai-pulse-chart-card,
.ai-pulse-side {
    min-width: 0;
}

.ai-pulse-chart-scroll {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

#aiPulseCanvas {
    display: block;
    min-width: 620px;
}

.ai-pulse-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ai-pulse-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #dce8ff;
    font-size: 0.78rem;
    padding: 0.38rem 0.62rem;
}

.ai-pulse-legend span::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--legend-color);
}

.ai-pulse-note {
    color: #aebbd0;
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 12px 0 0;
}

.ai-pulse-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.ai-pulse-stats div:last-child {
    grid-column: 1 / -1;
}

.ai-pulse-stats div {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    padding: 0.7rem;
}

.ai-pulse-stats span {
    display: block;
    color: #aebbd0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ai-pulse-stats strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-pulse-table-wrap {
    max-height: 360px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.ai-pulse-table {
    min-width: 560px;
    width: 100%;
    border-collapse: collapse;
    color: #dce8ff;
    font-size: 0.82rem;
}

.ai-pulse-table th,
.ai-pulse-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.64rem 0.7rem;
    vertical-align: top;
}

.ai-pulse-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(13, 15, 20, 0.98);
    color: #aebbd0;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.ai-pulse-table tbody th {
    max-width: 210px;
}

.ai-pulse-table a {
    color: #eef4ff;
    text-decoration: none;
}

.ai-pulse-table a:hover {
    color: #8ad1ff;
    text-decoration: underline;
}

.ai-pulse-error {
    padding: 22px;
}

.ai-pulse-error p:last-child {
    color: #cdd8e8;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .portfolio-split {
        grid-template-columns: 1fr;
    }

    .ai-pulse-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .portfolio-panel-header {
        flex-direction: column;
        padding: 18px 18px 10px;
    }

    .radar-dimensions {
        grid-template-columns: 1fr;
        padding-inline: 18px;
    }

    .graph-legend {
        padding-inline: 18px;
    }

    .ai-pulse-chart-head {
        flex-direction: column;
        padding: 18px 18px 10px;
    }

    .ai-pulse-grid {
        padding-inline: 18px;
    }

    .ai-pulse-stats {
        grid-template-columns: 1fr;
    }
}

/* Featured case study */
.case-study {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

.case-hero {
    position: relative;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 28px;
    background: radial-gradient(1200px 420px at 100% 0%, rgba(46, 130, 255, 0.22), transparent 55%),
        linear-gradient(160deg, rgba(17, 19, 23, 0.95), rgba(12, 13, 17, 0.98));
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.case-hero h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.case-hero p {
    color: #d2dae6;
    max-width: 640px;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.case-meta span {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.case-panel {
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 24px;
    background: var(--panel);
}

.case-panel h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #d7e2f4;
    margin-bottom: 10px;
}

.case-panel ul {
    padding-left: 18px;
    color: #cbd5e2;
}

@media (min-width: 992px) {
    .case-study {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: start;
    }
}

/* Upload */
.upload-card {
    max-width: 860px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
}

.upload-divider {
    height: 1px;
    background: var(--stroke);
    margin: 20px 0;
}

.upload-card textarea,
.upload-card .form-control,
.upload-card .form-select {
    background: #0f1115;
    border: 1px solid var(--stroke);
    color: var(--text);
}

.upload-card textarea::placeholder {
    color: #7f8ba1;
}

/* Project reports */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.report-card {
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(17, 19, 23, 0.96), rgba(12, 13, 17, 0.96));
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.report-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.report-subtitle {
    color: #cfd6df;
    margin-bottom: 0;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.report-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.03);
}

.report-summary {
    color: #dde6f2;
    margin-bottom: 12px;
}

.report-section {
    margin-bottom: 12px;
}

.report-section h4 {
    color: #eaf0ff;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.report-section p,
.report-section ul {
    color: #d6deea;
    margin-bottom: 8px;
}

.report-section ul {
    padding-left: 18px;
}

.report-footer {
    margin-top: 8px;
}

.report-links {
    margin-top: 12px;
}

/* Coursework + ideas */
.coursework-intro {
    max-width: 780px;
    margin: 0 auto;
}

.coursework-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: #8ad1ff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.degree-coursework-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.degree-coursework-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(138, 209, 255, 0.2);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(46, 130, 255, 0.16), transparent 38%),
        linear-gradient(145deg, rgba(17, 21, 28, 0.96), rgba(10, 12, 17, 0.94));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.degree-coursework-card--bachelors {
    background:
        radial-gradient(circle at 100% 0%, rgba(202, 164, 100, 0.14), transparent 40%),
        linear-gradient(145deg, rgba(18, 20, 25, 0.96), rgba(10, 12, 17, 0.94));
}

.degree-coursework-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.degree-level {
    display: block;
    margin-bottom: 7px;
    color: #8ad1ff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.degree-coursework-card--bachelors .degree-level {
    color: #e2c38d;
}

.degree-coursework-heading h2 {
    margin: 0;
    color: #f7f9fc;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.12;
}

.degree-coursework-heading p {
    margin: 8px 0 0;
    color: #c7d0dc;
    font-size: 0.9rem;
}

.degree-mark {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border: 1px solid rgba(138, 209, 255, 0.3);
    border-radius: 17px;
    background: rgba(138, 209, 255, 0.08);
    color: #cfeeff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.degree-coursework-card--bachelors .degree-mark {
    border-color: rgba(226, 195, 141, 0.3);
    background: rgba(226, 195, 141, 0.08);
    color: #f3d9ad;
}

.course-group {
    margin-top: 22px;
}

.course-group h3 {
    margin: 0 0 11px;
    color: #e8edf5;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.course-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.course-chip-list li {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: #dce4ee;
    font-size: 0.78rem;
    line-height: 1.35;
}

.curriculum-source {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aeb9c8;
    font-size: 0.78rem;
    line-height: 1.6;
}

.curriculum-source a {
    display: inline-block;
    margin-left: 4px;
    color: #e2c38d;
    font-weight: 700;
    text-decoration: none;
}

.curriculum-source a:hover,
.curriculum-source a:focus-visible {
    color: #f7ddb0;
    text-decoration: underline;
}

.coursework-projects-heading {
    max-width: 760px;
    margin: clamp(72px, 10vw, 112px) auto 18px;
}

.coursework-projects-heading .section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.course-card.card,
.idea-card.card {
    border: 1px solid var(--stroke);
    background: var(--panel);
    color: var(--text);
    border-radius: 16px;
}

.course-subtitle,
.idea-subtitle {
    color: #cfd6df;
    margin-top: 6px;
}

.course-meta,
.idea-meta {
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--stroke);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.course-card ul,
.idea-card ul {
    padding-left: 18px;
}

@media (max-width: 991.98px) {
    .degree-coursework-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .degree-coursework-card {
        padding: 22px 18px;
        border-radius: 19px;
    }

    .degree-coursework-heading {
        gap: 12px;
    }

    .degree-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
        font-size: 0.68rem;
    }

    .course-chip-list li {
        width: 100%;
    }
}

.resume-card.card {
    border: 1px solid var(--stroke);
    background: var(--panel);
    color: var(--text);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.resume-card .eyebrow {
    margin-bottom: 6px;
}

.idea-ip {
    color: #d0d8e6;
    font-size: 14px;
}

/* Venture lab */
.venture-lab {
    position: relative;
}

.venture-lab-intro {
    max-width: 760px;
    margin: 0 auto;
}

.venture-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.venture-card {
    grid-column: span 4;
    position: relative;
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
        linear-gradient(155deg, rgba(17, 19, 23, 0.92), rgba(12, 13, 17, 0.98));
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 28px rgba(46, 130, 255, 0.08);
    backdrop-filter: blur(18px);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.venture-card:hover {
    transform: translateY(-6px);
    border-color: rgba(138, 209, 255, 0.34);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 34px rgba(46, 130, 255, 0.18);
}

.venture-card-featured {
    grid-column: span 7;
    grid-row: span 2;
}

.venture-card-tall {
    grid-column: span 5;
    grid-row: span 2;
}

.venture-card-wide {
    grid-column: span 8;
}

.venture-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(138, 209, 255, 0.22), transparent 32%),
        linear-gradient(135deg, rgba(46, 130, 255, 0.18), rgba(12, 13, 17, 0.78));
}

.venture-card-featured .venture-visual,
.venture-card-tall .venture-visual {
    aspect-ratio: 16 / 11;
}

.venture-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .45s ease, filter .3s ease, opacity .3s ease;
}

.venture-visual-placeholder img {
    object-fit: cover;
}

.venture-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.08), rgba(8, 10, 14, 0.86) 68%);
    opacity: 0;
    transition: opacity .25s ease;
}

.venture-overlay p {
    margin: 0;
    color: #eef4ff;
    line-height: 1.6;
    max-width: 52ch;
}

.venture-link-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8ad1ff;
}

.venture-link-text::after {
    content: "\2192";
}

.venture-card:hover .venture-visual img,
.venture-card:focus-within .venture-visual img {
    transform: scale(1.06);
    filter: brightness(0.55);
}

.venture-card:hover .venture-overlay,
.venture-card:focus-within .venture-overlay {
    opacity: 1;
}

.venture-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 22px 22px 24px;
}

.venture-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.venture-header h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.15;
    color: #eef4ff;
}

.llm-summary {
    margin: 0;
    color: #e4ecf8;
    line-height: 1.65;
}

.venture-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dev {
    color: #0e2c20;
    background: rgba(120, 255, 201, 0.9);
    border-color: rgba(120, 255, 201, 0.35);
}

.status-stealth {
    color: #301e0a;
    background: rgba(255, 196, 112, 0.92);
    border-color: rgba(255, 196, 112, 0.34);
}

.status-concept {
    color: #0e2240;
    background: rgba(138, 209, 255, 0.9);
    border-color: rgba(138, 209, 255, 0.34);
}

.venture-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.venture-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #d5e0f2;
    font-size: 0.82rem;
}

.venture-tag i {
    color: #8ad1ff;
}

.venture-summary {
    margin: 0;
    color: #cfd8e6;
    line-height: 1.65;
}

.market-signal {
    margin: 0;
    border-left: 3px solid rgba(255, 185, 92, 0.58);
    border-radius: 0 12px 12px 0;
    background: rgba(255, 185, 92, 0.08);
    color: #f1e1c6;
    font-size: 0.88rem;
    line-height: 1.55;
    padding: 0.72rem 0.85rem;
}

.market-signal strong {
    color: #ffd89f;
}

.market-signal.compact {
    margin-top: 1rem;
    font-size: 0.82rem;
}

.tech-specs {
    margin: 0;
    padding-left: 18px;
    color: #d5e0f2;
    line-height: 1.6;
}

.tech-specs li + li {
    margin-top: 6px;
}

.venture-action {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(138, 209, 255, 0.28);
    background: rgba(46, 130, 255, 0.12);
    color: #eef4ff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.venture-action:hover,
.venture-action:focus-visible {
    background: rgba(46, 130, 255, 0.2);
    border-color: rgba(138, 209, 255, 0.42);
    transform: translateY(-1px);
}

@media (max-width: 1199px) {
    .venture-card,
    .venture-card-featured,
    .venture-card-tall,
    .venture-card-wide {
        grid-column: span 6;
        grid-row: auto;
    }
}

@media (max-width: 767px) {
    .venture-grid {
        grid-template-columns: 1fr;
    }

    .venture-card,
    .venture-card-featured,
    .venture-card-tall,
    .venture-card-wide {
        grid-column: auto;
    }

    .venture-overlay {
        opacity: 1;
        padding: 20px;
        background: linear-gradient(180deg, rgba(8, 10, 14, 0.04), rgba(8, 10, 14, 0.78) 72%);
    }

    .venture-header {
        flex-direction: column;
    }
}

/* Highlights + tiles */
.highlight-card {
    border: 1px solid var(--stroke);
    background: linear-gradient(150deg, rgba(17, 19, 23, 0.95), rgba(12, 13, 17, 0.98));
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

/* Scatter plot navigation */
.scatter-field {
    position: relative;
    min-height: 460px;
    border-radius: 28px;
    padding: 18px;
    perspective: 900px;
    background-image:
        linear-gradient(115deg, rgba(46, 130, 255, 0.10), transparent 34%, rgba(255, 185, 92, 0.08)),
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(46, 130, 255, 0.12) 1px, transparent 1px);
    background-size: auto, 20px 20px, 80px 80px;
    background-position: center, 0 0, 10px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.scatter-field::before {
    content: "";
    position: absolute;
    inset: 44px 36px 42px;
    border-left: 1px solid rgba(138, 209, 255, 0.34);
    border-bottom: 1px solid rgba(138, 209, 255, 0.34);
    transform: rotateX(58deg) rotateZ(-9deg);
    transform-origin: bottom left;
    background:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.74;
}

.scatter-plane {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform-style: preserve-3d;
}

.scatter-axis {
    position: absolute;
    color: rgba(208, 216, 230, 0.72);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.axis-x {
    right: 38px;
    bottom: 30px;
}

.axis-y {
    left: 28px;
    top: 34px;
    writing-mode: vertical-rl;
}

.axis-z {
    right: 82px;
    top: 44px;
    transform: rotate(-26deg);
}

.scatter-node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    --mx: 0px;
    --my: 0px;
    transform: translate3d(var(--mx), var(--my), calc(var(--z) * 1px)) scale(var(--node-scale));
    transform-style: preserve-3d;
    transition: transform .2s ease, box-shadow .2s ease;
    z-index: 2;
}

.scatter-blob {
    width: 64px;
    height: 64px;
    border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%;
    background: linear-gradient(140deg, rgba(46, 130, 255, 0.6), rgba(138, 209, 255, 0.25));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
    animation: blobPulse 6s ease-in-out infinite;
    position: relative;
    flex-shrink: 0;
    transform: translateZ(calc(var(--z) * 0.8px));
}

.scatter-blob::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    opacity: 0.6;
}

.scatter-label {
    background: rgba(12, 13, 17, 0.8);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 10px 14px;
    min-width: 180px;
    transform: scale(0.96) translateY(3px);
    opacity: 0.78;
    transition: transform .22s ease, opacity .22s ease, border-color .22s ease, box-shadow .22s ease;
    backdrop-filter: blur(10px);
}

.scatter-depth-line {
    position: absolute;
    left: 30px;
    top: 44px;
    width: calc(var(--z) * 0.8px);
    height: 1px;
    background: linear-gradient(90deg, rgba(138, 209, 255, 0.5), transparent);
    transform: rotate(128deg);
    transform-origin: left center;
    opacity: 0.62;
}

.scatter-label .tile-metric {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    transform: translateY(2px);
    opacity: 0.82;
    transition: transform .22s ease, opacity .22s ease, color .22s ease;
}

.scatter-label .tile-title {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 1.06rem;
    font-weight: 700;
    transform: translateY(2px);
    transition: transform .22s ease, text-shadow .22s ease;
}

.scatter-label .tile-desc {
    display: block;
    margin-top: 2px;
    font-size: 0.85rem;
    color: var(--muted);
    transform: translateY(2px);
    opacity: 0.78;
    transition: transform .22s ease, opacity .22s ease, color .22s ease;
}

.scatter-node:hover {
    transform: translate3d(var(--mx), calc(var(--my) - 4px), calc((var(--z) + 24) * 1px)) scale(calc(var(--node-scale) + 0.04));
}

.scatter-node:hover .scatter-label {
    transform: scale(1.03) translateY(-3px);
    opacity: 1;
    border-color: rgba(46, 130, 255, 0.5);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.scatter-node:hover .tile-metric,
.scatter-node:hover .tile-title,
.scatter-node:hover .tile-desc {
    transform: translateY(0);
    opacity: 1;
}

.scatter-node:hover .tile-title {
    text-shadow: 0 8px 24px rgba(46, 130, 255, 0.4);
}

.scatter-node.scatter-accent .scatter-blob {
    background: linear-gradient(140deg, rgba(138, 209, 255, 0.7), rgba(46, 130, 255, 0.25));
}

.scatter-node.scatter-neutral .scatter-blob {
    background: linear-gradient(140deg, rgba(255, 185, 92, 0.7), rgba(255, 185, 92, 0.25));
}

@keyframes blobPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08) rotate(2deg); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .scatter-field {
        min-height: auto;
        padding: 12px;
        display: grid;
        gap: 12px;
        perspective: none;
    }

    .scatter-field::before,
    .scatter-plane,
    .scatter-depth-line {
        display: none;
    }

    .scatter-node {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100%;
        transform: none !important;
    }

    .scatter-label {
        flex: 1;
        min-width: 0;
    }

    .bg-orb {
        display: none;
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 980px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, .08);
}

.timeline .timeline-item.card {
    margin-left: 48px;
    margin-bottom: 14px;
    border: 1px solid var(--stroke);
    background: var(--panel);
    color: var(--text);
    border-radius: 14px;
    position: relative;
}

.timeline .timeline-item.card::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(46, 130, 255, .25);
}

/* Buttons */
.btn-primary {
    background: var(--brand);
    border-color: rgba(46, 130, 255, .6);
}

.btn-outline-primary {
    border-color: rgba(46, 130, 255, .6);
    color: #cfe2ff;
}

/* Links */
a,
.nav-link {
    color: #cfd9ff;
}

a:hover,
.nav-link:hover {
    color: #ffffff;
}

/* Footer */
footer {
    border-top: 1px solid var(--stroke);
}

/* Back-to-top button */
#back-to-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    display: none;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: .5rem .9rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
}

#back-to-top:hover {
    filter: brightness(1.08);
}

@media (min-width: 992px) {
    .hero-img {
        width: 240px;
        height: 300px;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline .timeline-item.card {
        margin-left: 40px;
    }
}

/* Contact form tweaks (already aligned with Bootstrap) */
.contact-form {
    max-width: 760px;
}

/* JSON-driven placeholders */
#projectsGrid .card,
#experienceTimeline .card {
    background: var(--panel);
    color: var(--text);
}



/* ===== Transition Effect ===== */
/* header {
    transition: background-color 0.4s ease, color 0.4s ease;
} */

/* Blog SEO pages */
.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

@media (max-width: 767px) {
    .consultative-modal {
        align-items: flex-start;
    }

    .consultative-shell {
        max-height: calc(100vh - 2rem);
    }

    .consultative-grid {
        max-height: none;
    }

    .consultative-pane {
        max-height: none !important;
        overflow-y: visible;
    }

    .consultative-scroll {
        max-height: 32vh !important;
        overflow-y: auto !important;
    }

    .consultative-fab {
        right: 1rem;
        bottom: 1rem;
        width: 4rem;
        height: 4rem;
    }

    #back-to-top {
        right: 1rem;
        bottom: 5.2rem;
    }
}

.blog-card {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 16px;
}

.blog-mini-hero {
    background: linear-gradient(140deg, rgba(46, 130, 255, 0.18), rgba(255, 185, 92, 0.13));
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 24px;
}

.blog-home-ca {
    color: var(--text);
    border: 1px solid var(--stroke);
    border-radius: 10px;
    padding: 6px 12px;
    text-decoration: none;
    line-height: 1.1;
}

.blog-home-ca:hover {
    color: #fff;
    border-color: rgba(46, 130, 255, 0.65);
}

.blog-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.blog-stat {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 14px;
}

.blog-stat-value {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.blog-stat-label {
    color: var(--muted);
    font-size: 0.86rem;
}

.post-meta-row,
.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.blog-type-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(157, 194, 255, 0.26);
    border-radius: 999px;
    background: rgba(46, 130, 255, 0.11);
    color: #dce8ff;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.34rem 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-type-concept-note {
    border-color: rgba(255, 185, 92, 0.34);
    background: rgba(255, 185, 92, 0.12);
    color: #ffe0af;
}

.blog-type-research-study {
    border-color: rgba(157, 242, 208, 0.38);
    background: rgba(157, 242, 208, 0.12);
    color: #c8f8e5;
}

.blog-search-phrase {
    color: var(--muted);
    font-size: 0.86rem;
}

.research-note-box {
    border: 1px solid rgba(255, 185, 92, 0.28);
    border-radius: 12px;
    background: rgba(255, 185, 92, 0.08);
    color: #f4e8d5;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.research-study-box {
    border-color: rgba(157, 242, 208, 0.34);
    background: rgba(157, 242, 208, 0.08);
    color: #dcf8ed;
}

.blog-index-studies {
    border-top: 1px solid rgba(157, 242, 208, 0.2);
    padding-top: 1.5rem;
}

.blog-index-concepts {
    border-top: 1px solid rgba(255, 185, 92, 0.2);
    padding-top: 1.5rem;
}

.blog-route-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 14px;
    color: var(--text);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.blog-route-card:hover {
    transform: translateY(-2px);
    border-color: rgba(46, 130, 255, 0.52);
}

.blog-top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-top-link {
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.84rem;
    transition: border-color .18s ease, color .18s ease;
}

.blog-top-link:hover {
    color: var(--text);
    border-color: rgba(46, 130, 255, 0.45);
}

.blog-post {
    max-width: 880px;
}

.blog-post img {
    display: block;
    width: min(100%, 760px);
    height: auto;
    margin: 18px auto;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: var(--panel);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.bluf-box,
.tldr-box {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-left: 4px solid var(--brand);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}

.blog-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-nav a {
    color: var(--accent);
}

.blog-footer-muted {
    color: rgba(208, 216, 230, 0.45);
}

.blog-quick-notes {
    font-size: 0.84rem;
    color: rgba(208, 216, 230, 0.68);
    line-height: 1.5;
}

/* Blog theme toggle + light mode */
.blog-theme-toggle {
    border: 1px solid var(--stroke);
    background: var(--panel);
    color: var(--text);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.blog-theme-toggle:hover {
    border-color: rgba(46, 130, 255, .5);
}

body.blog-theme.theme-light {
    --panel: #fdfefe;
    --text: #122033;
    --muted: #4d5b6d;
    --brand: #0b66d1;
    --brand-2: #d17a0b;
    --accent: #0b66d1;
    --stroke: rgba(18, 32, 51, 0.18);
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(11, 102, 209, .12), transparent 60%),
        radial-gradient(800px 600px at -10% -10%, rgba(11, 102, 209, .08), transparent 60%),
        linear-gradient(180deg, #f8fbff, #eef3f9);
    color: var(--text);
}

html.theme-light body.blog-theme {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(11, 102, 209, .12), transparent 60%),
        radial-gradient(800px 600px at -10% -10%, rgba(11, 102, 209, .08), transparent 60%),
        linear-gradient(180deg, #f8fbff, #eef3f9);
    color: #122033;
}

html.theme-light body.blog-theme h1,
html.theme-light body.blog-theme h2,
html.theme-light body.blog-theme h3,
html.theme-light body.blog-theme h4,
html.theme-light body.blog-theme p,
html.theme-light body.blog-theme li,
html.theme-light body.blog-theme time,
html.theme-light body.blog-theme .section-title {
    color: #122033;
}

html.theme-light body.blog-theme .section-text,
html.theme-light body.blog-theme .small,
html.theme-light body.blog-theme .text-muted {
    color: #4d5b6d !important;
}

html.theme-light body.blog-theme .blog-card,
html.theme-light body.blog-theme .bluf-box,
html.theme-light body.blog-theme .tldr-box,
html.theme-light body.blog-theme .blog-theme-toggle,
html.theme-light body.blog-theme .blog-mini-hero,
html.theme-light body.blog-theme .blog-stat,
html.theme-light body.blog-theme .blog-route-card,
html.theme-light body.blog-theme .blog-top-link,
html.theme-light body.blog-theme .blog-home-ca {
    background: #ffffff;
    color: #122033;
    border-color: rgba(18, 32, 51, 0.18);
}

html.theme-light body.blog-theme a {
    color: #0b66d1;
}

html.theme-light body.blog-theme .bg-dark,
html.theme-light body.blog-theme footer {
    background: #e9eff7 !important;
    color: #122033 !important;
}

body.blog-theme.theme-light .section-text,
body.blog-theme.theme-light .small.text-muted {
    color: var(--muted) !important;
}

body.blog-theme.theme-light .blog-quick-notes {
    color: rgba(77, 91, 109, 0.78);
}

body.blog-theme.theme-light .blog-footer-muted {
    color: rgba(77, 91, 109, 0.55);
}

body.blog-theme.theme-light .bg-orb {
    opacity: 0.14;
}

body.blog-theme.theme-light .bg-dark {
    background: #e9eff7 !important;
    color: #122033 !important;
}

body.blog-theme.theme-light .text-white {
    color: #122033 !important;
}

body.blog-theme.theme-light footer a {
    color: #0b66d1;
}

/* ===== 2026 interaction and readability pass ===== */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 2000;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-2));
    box-shadow: 0 0 18px rgba(138, 209, 255, 0.55);
}

.hero-positioning {
    isolation: isolate;
    overflow: clip;
}

.hero-positioning::before {
    content: "";
    position: absolute;
    inset: 4% -10% 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(138, 209, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 209, 255, 0.035) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(ellipse at 58% 36%, black 12%, transparent 72%);
}

.hero-positioning::after {
    content: "";
    position: absolute;
    width: min(72vw, 850px);
    aspect-ratio: 1;
    right: -24%;
    top: -28%;
    z-index: -1;
    border: 1px solid rgba(138, 209, 255, 0.09);
    border-radius: 50%;
    box-shadow:
        0 0 0 90px rgba(46, 130, 255, 0.025),
        0 0 0 180px rgba(46, 130, 255, 0.018);
    pointer-events: none;
}

.hero-typed-line {
    min-height: 2rem;
    margin: -0.35rem 0 1rem;
    color: #bfe6ff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.92rem, 1.4vw, 1.08rem);
    font-weight: 600;
    letter-spacing: 0.035em;
}

#typed,
.typed-cursor {
    color: #bfe6ff !important;
    -webkit-text-fill-color: #bfe6ff;
}

.hero-signal-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 720px;
}

.hero-signal-rail a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    position: relative;
    color: #dce6f4;
    padding: 0.9rem 1.15rem 0.9rem 0;
    margin-right: 1.15rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.hero-signal-rail a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-signal-rail a span {
    color: var(--brand-2);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.hero-signal-rail a:hover,
.hero-signal-rail a:focus {
    color: #ffffff;
}

.home-flow-section {
    padding-block: clamp(5rem, 9vw, 8.5rem);
}

.home-flow-section + .home-flow-section {
    margin-top: -1px;
}

.section-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.editorial-link {
    color: #bfe6ff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.editorial-link span {
    display: inline-block;
    margin-left: 0.25rem;
    transition: transform .2s ease;
}

.editorial-link:hover span {
    transform: translate(3px, -3px);
}

.featured-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.featured-project-slot {
    min-width: 0;
}

.featured-project-slot:nth-child(1),
.featured-project-slot:nth-child(4) {
    grid-column: span 7;
}

.featured-project-slot:nth-child(2),
.featured-project-slot:nth-child(3) {
    grid-column: span 5;
}

.featured-project-slot:nth-child(5) {
    grid-column: 3 / span 8;
}

.featured-project-slot .project-box.card {
    min-height: 100%;
    border-radius: 22px;
    background:
        radial-gradient(600px circle at var(--pointer-x, 80%) var(--pointer-y, 0%), rgba(138, 209, 255, 0.12), transparent 38%),
        linear-gradient(155deg, rgba(18, 22, 29, 0.98), rgba(10, 12, 16, 0.98));
}

.featured-project-slot:nth-child(1) .project-box.card,
.featured-project-slot:nth-child(4) .project-box.card {
    background:
        radial-gradient(650px circle at var(--pointer-x, 85%) var(--pointer-y, 0%), rgba(46, 130, 255, 0.2), transparent 42%),
        linear-gradient(145deg, rgba(19, 25, 35, 0.99), rgba(10, 12, 16, 0.98));
}

.featured-project-slot:nth-child(5) .project-box.card {
    border-color: rgba(255, 185, 92, 0.2);
}

.featured-project-slot .card-body {
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.featured-project-slot .project-box h3 {
    font-size: clamp(1.25rem, 2vw, 1.7rem) !important;
}

.capability-card,
.credential-card,
.highlight-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.capability-card::before,
.credential-card::before,
.highlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(420px circle at var(--pointer-x, 50%) var(--pointer-y, 0%), rgba(138, 209, 255, 0.13), transparent 42%);
    transition: opacity .25s ease;
}

.capability-card:hover::before,
.credential-card:hover::before,
.highlight-card:hover::before {
    opacity: 1;
}

.capability-card,
.credential-card,
.highlight-card {
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.capability-card:hover,
.credential-card:hover,
.highlight-card:hover {
    transform: translateY(-3px);
    border-color: rgba(138, 209, 255, 0.25);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

/* Work experience body contrast */
.timeline .timeline-item.card .card-body,
.timeline .timeline-item.card p,
.timeline .timeline-item.card li,
.timeline .timeline-item.card .small,
.timeline .timeline-item.card .text-muted {
    color: #dce6f4 !important;
}

.timeline .timeline-item.card h3,
.timeline .timeline-item.card strong {
    color: #ffffff !important;
}

.timeline .timeline-item.card li::marker {
    color: #8ad1ff;
}

/* Coursework and reports: stronger editorial typography */
.course-card.card,
.report-card {
    border-radius: 20px;
    border-color: rgba(255, 255, 255, 0.1);
}

.course-card .card-body,
.report-card {
    padding: clamp(1.3rem, 2.5vw, 2rem);
}

.course-card h3,
.report-card h3 {
    color: #f7f9fc;
    font-family: 'Fraunces', serif;
    font-size: clamp(1.3rem, 2vw, 1.65rem) !important;
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1.18;
}

.course-card h4,
.report-section h4 {
    color: #9dc2ff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.course-card p,
.course-card li,
.report-card p,
.report-card li {
    color: #d8e2ef;
    font-size: 0.96rem;
    line-height: 1.72;
}

.course-subtitle,
.report-subtitle {
    color: #bfe6ff !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem !important;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.course-meta,
.report-meta {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.035em;
}

.report-summary {
    border-left: 2px solid rgba(255, 185, 92, 0.6);
    padding-left: 0.9rem;
    font-size: 1.02rem !important;
}

/* Blog dark mode contrast without changing the palette */
html:not(.theme-light) body.blog-theme {
    --muted: #d8e2ef;
}

html:not(.theme-light) body.blog-theme p,
html:not(.theme-light) body.blog-theme li,
html:not(.theme-light) body.blog-theme time,
html:not(.theme-light) body.blog-theme .section-text,
html:not(.theme-light) body.blog-theme .small,
html:not(.theme-light) body.blog-theme .text-muted,
body.blog-theme:not(.theme-light) p,
body.blog-theme:not(.theme-light) li,
body.blog-theme:not(.theme-light) time {
    color: #d8e2ef !important;
}

html:not(.theme-light) body.blog-theme .blog-card,
html:not(.theme-light) body.blog-theme .blog-post,
html:not(.theme-light) body.blog-theme .bluf-box,
html:not(.theme-light) body.blog-theme .tldr-box {
    color: #eef4ff;
}

html:not(.theme-light) body.blog-theme .blog-quick-notes,
html:not(.theme-light) body.blog-theme .blog-footer-muted,
html:not(.theme-light) body.blog-theme .blog-stat-label,
html:not(.theme-light) body.blog-theme .blog-search-phrase {
    color: #bcc9da !important;
}

/* Standalone portfolio intelligence page */
.intelligence-hero {
    padding: clamp(5rem, 10vw, 9rem) 0 4rem;
}

.intelligence-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
}

.intelligence-title {
    max-width: 900px;
    margin: 0.5rem 0 1rem;
    color: #f7f9fc;
    font-size: clamp(3.4rem, 8vw, 7.5rem);
    line-height: 0.92;
}

.intelligence-deck {
    max-width: 720px;
    color: #d8e2ef;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.intelligence-index {
    border-left: 1px solid rgba(138, 209, 255, 0.24);
    padding-left: 1.5rem;
}

.intelligence-index a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #dce8ff;
    padding: 0.85rem 0;
    text-decoration: none;
}

.intelligence-index a span {
    color: var(--brand-2);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

@media (max-width: 991px) {
    .featured-project-slot:nth-child(n) {
        grid-column: span 6;
    }

    .featured-project-slot:nth-child(5) {
        grid-column: 2 / span 10;
    }

    .intelligence-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .featured-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .featured-project-slot:nth-child(n) {
        grid-column: 1;
    }

    .hero-signal-rail {
        justify-content: center;
    }

    .hero-signal-rail a {
        padding-right: 0.75rem;
        margin-right: 0.75rem;
    }

    .section-actions {
        width: 100%;
        justify-content: space-between;
    }

    .home-flow-section {
        padding-block: 5rem;
    }
}

/* Homepage scroll narratives */
html,
body {
    overflow-x: clip;
}

.metrics-story,
.world-story {
    position: relative;
    z-index: 2;
    overflow: visible;
    background: #121416;
}

.metrics-story {
    border-block: 1px solid rgba(231, 232, 234, 0.08);
    padding: clamp(6rem, 10vw, 9rem) 0;
}

.scroll-stories-ready .metrics-story {
    height: 270vh;
    padding: 0;
}

.metrics-story-sticky {
    display: grid;
    min-height: 100svh;
    align-items: center;
    overflow: visible;
    padding: clamp(6.5rem, 10vh, 8.5rem) 0 clamp(3rem, 7vh, 5rem);
    background:
        radial-gradient(circle at 78% 38%, rgba(184, 137, 98, 0.11), transparent 32%),
        linear-gradient(180deg, #121416, #15181b 55%, #121416);
}

.scroll-stories-ready .metrics-story-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 680px;
}

.scroll-stories-ready .metrics-story-sticky.is-scroll-pinned,
.scroll-stories-ready .world-story-sticky.is-scroll-pinned {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
    z-index: 20;
}

.scroll-stories-ready .metrics-story-sticky.is-scroll-complete,
.scroll-stories-ready .world-story-sticky.is-scroll-complete {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    height: 100svh;
}

.metrics-story-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.metrics-story-copy {
    max-width: 610px;
}

.metrics-story-title {
    max-width: 11ch;
    margin: 0.65rem 0 1rem;
    color: #e7e8ea;
    font-size: clamp(2.9rem, 6vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.94;
}

.metrics-story-deck {
    max-width: 540px;
    margin: 0;
    color: #c0c4c9;
    font-size: clamp(0.96rem, 1.25vw, 1.08rem);
    line-height: 1.7;
}

.metrics-story-list {
    display: grid;
    margin-top: clamp(2rem, 5vh, 3.5rem);
    border-top: 1px solid rgba(231, 232, 234, 0.12);
}

.metrics-story-item {
    display: grid;
    grid-template-columns: 2.25rem minmax(6.7rem, 0.58fr) 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(231, 232, 234, 0.1);
    color: #e7e8ea;
}

.scroll-stories-ready .metrics-story-item {
    opacity: calc(0.22 + (var(--metric-progress, 0) * 0.78));
    transform: translateX(calc((1 - var(--metric-progress, 0)) * 20px));
    transition: opacity 80ms linear, transform 80ms linear;
}

.metrics-story-index,
.metrics-chart-kicker,
.metrics-chart-state,
.metrics-chart-card figcaption,
.metrics-chart-note {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.metrics-story-index {
    color: #989fa7;
}

.metrics-story-value {
    color: #d1a67d;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.55rem, 2.8vw, 2.45rem);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.metrics-story-label {
    color: #c0c4c9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.metrics-chart-card {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid rgba(231, 232, 234, 0.09);
    border-radius: 28px;
    background: #1d2126;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.metrics-chart-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(231, 232, 234, 0.035), transparent 40%);
}

.metrics-chart-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.metrics-chart-kicker {
    color: #989fa7;
}

.metrics-chart-heading h3 {
    margin: 0.3rem 0 0;
    color: #e7e8ea;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    font-weight: 500;
}

.metrics-chart-state {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #c0c4c9;
    white-space: nowrap;
}

.metrics-chart-state i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #d1a67d;
    box-shadow: 0 0 0 5px rgba(209, 166, 125, 0.09);
}

#metricsChartCanvas {
    display: block;
    width: 100%;
    height: clamp(250px, 38vh, 390px);
}

.metrics-chart-card figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.8rem;
    color: #989fa7;
}

.metrics-chart-note {
    margin: 1.4rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(231, 232, 234, 0.08);
    color: #989fa7;
    letter-spacing: 0.09em;
    line-height: 1.5;
    text-transform: none;
}

.metrics-story-rail {
    position: absolute;
    right: clamp(1rem, 3vw, 2.5rem);
    top: 18%;
    width: 1px;
    height: 64%;
    overflow: hidden;
    background: rgba(231, 232, 234, 0.1);
}

.metrics-story-rail span {
    display: block;
    width: 100%;
    height: calc(var(--metrics-progress, 0) * 100%);
    background: #d1a67d;
}

.world-story {
    min-height: 100svh;
    background: #101214;
}

.scroll-stories-ready .world-story {
    height: 380vh;
}

.world-story-sticky {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    overflow: visible;
    background: #101214;
}

.scroll-stories-ready .world-story-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
}

#storyGlobeCanvas,
.world-story-vignette,
.world-story-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#storyGlobeCanvas {
    z-index: -3;
    opacity: 0.98;
}

.world-story-vignette {
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(16, 18, 20, 0.82) 0%, rgba(16, 18, 20, 0.13) 48%, rgba(16, 18, 20, 0.58) 100%),
        linear-gradient(180deg, rgba(16, 18, 20, 0.72) 0%, transparent 20%, transparent 74%, rgba(16, 18, 20, 0.9) 100%);
}

.world-story-grid {
    z-index: -1;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(231, 232, 234, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(231, 232, 234, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, black, transparent 72%);
}

.world-story-copy {
    position: relative;
    height: 100svh;
    pointer-events: none;
}

.world-story-beat {
    position: absolute;
    left: max(0.75rem, 2vw);
    top: 50%;
    width: min(760px, calc(100% - 2rem));
    opacity: var(--beat-opacity, 1);
    transform: translate3d(0, calc(-50% + var(--beat-y, 0px)), 0) scale(var(--beat-scale, 1));
    transform-origin: left center;
    will-change: opacity, transform;
}

.scroll-stories-ready .world-story-beat {
    opacity: var(--beat-opacity, 0);
}

.world-story-beat--two {
    left: auto;
    right: max(0.75rem, 3vw);
    max-width: 650px;
    text-align: right;
    transform-origin: right center;
}

.world-story-beat--three {
    left: 50%;
    width: min(960px, calc(100% - 2rem));
    text-align: center;
    transform: translate3d(-50%, calc(-50% + var(--beat-y, 0px)), 0) scale(var(--beat-scale, 1));
    transform-origin: center;
}

.world-story-kicker {
    margin: 0 0 1rem;
    color: #d1a67d;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.world-story-beat h2 {
    margin: 0;
    color: #e7e8ea;
    font-size: clamp(3.7rem, 9vw, 9.4rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.86;
    text-wrap: balance;
}

.world-story-beat--two h2 {
    font-size: clamp(3.1rem, 7vw, 7.2rem);
}

.world-story-beat p:last-child {
    max-width: 590px;
    margin: 1.6rem 0 0;
    color: #c0c4c9;
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    line-height: 1.65;
}

.world-story-beat--two p:last-child {
    margin-left: auto;
}

.world-story-beat--three p:last-child {
    margin-inline: auto;
}

.world-story-caption {
    position: absolute;
    right: clamp(1.25rem, 4vw, 4rem);
    bottom: clamp(1.5rem, 4vh, 3rem);
    left: clamp(1.25rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #989fa7;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.world-story-caption i {
    position: relative;
    height: 1px;
    flex: 1;
    overflow: hidden;
    background: rgba(231, 232, 234, 0.12);
}

.world-story-caption i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #d1a67d;
    transform: scaleX(var(--world-progress, 0));
    transform-origin: left;
}

.scroll-stories-ready .contact-after-world {
    z-index: 5;
    margin-top: -11svh;
    padding-top: clamp(7rem, 13vh, 10rem);
    border-radius: 44px 44px 0 0;
    background: #171a1e;
    box-shadow: 0 -30px 90px rgba(0, 0, 0, 0.32);
}

@media (max-width: 991px) {
    .scroll-stories-ready .metrics-story {
        height: 315vh;
    }

    .scroll-stories-ready .metrics-story-sticky {
        min-height: 760px;
    }

    .metrics-story-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .metrics-story-copy {
        max-width: none;
    }

    .metrics-story-title {
        max-width: 13ch;
        font-size: clamp(2.7rem, 7vw, 4.8rem);
    }

    .metrics-story-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        border-top: 0;
    }

    .metrics-story-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        align-content: start;
        border-top: 1px solid rgba(231, 232, 234, 0.12);
    }

    #metricsChartCanvas {
        height: clamp(220px, 31vh, 300px);
    }
}

@media (max-width: 767px) {
    .scroll-stories-ready .metrics-story {
        height: 340vh;
    }

    .metrics-story-sticky {
        padding: 5.7rem 0 2rem;
    }

    .scroll-stories-ready .metrics-story-sticky {
        min-height: 690px;
    }

    .metrics-story-layout {
        gap: 1.35rem;
    }

    .metrics-story-title {
        margin-top: 0.35rem;
        font-size: clamp(2.15rem, 10vw, 3.4rem);
    }

    .metrics-story-deck {
        display: none;
    }

    .metrics-story-list {
        margin-top: 1.2rem;
        gap: 0.55rem;
    }

    .metrics-story-item {
        padding: 0.7rem 0;
    }

    .metrics-story-value {
        font-size: clamp(1.35rem, 6vw, 1.85rem);
    }

    .metrics-story-label {
        font-size: 0.72rem;
    }

    .metrics-chart-card {
        border-radius: 20px;
        padding: 1rem;
    }

    #metricsChartCanvas {
        height: clamp(190px, 27vh, 245px);
    }

    .metrics-chart-note,
    .metrics-story-rail {
        display: none;
    }

    .scroll-stories-ready .world-story {
        height: 350vh;
    }

    .world-story-vignette {
        background:
            linear-gradient(180deg, rgba(16, 18, 20, 0.78) 0%, transparent 25%, transparent 62%, rgba(16, 18, 20, 0.94) 100%),
            linear-gradient(90deg, rgba(16, 18, 20, 0.62), rgba(16, 18, 20, 0.08));
    }

    .world-story-beat,
    .world-story-beat--two,
    .world-story-beat--three {
        right: auto;
        left: 1rem;
        width: calc(100% - 2rem);
        max-width: none;
        text-align: left;
        transform: translate3d(0, calc(-50% + var(--beat-y, 0px)), 0) scale(var(--beat-scale, 1));
        transform-origin: left center;
    }

    .world-story-beat h2,
    .world-story-beat--two h2 {
        font-size: clamp(3rem, 15vw, 5.4rem);
        line-height: 0.9;
    }

    .world-story-beat--two p:last-child,
    .world-story-beat--three p:last-child {
        margin-left: 0;
    }

    .world-story-caption {
        right: 1rem;
        bottom: 1.25rem;
        left: 1rem;
    }

    .scroll-stories-ready .contact-after-world {
        margin-top: -8svh;
        border-radius: 28px 28px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .scroll-stories-ready .metrics-story,
    .scroll-stories-ready .world-story {
        height: auto;
    }

    .scroll-stories-ready .metrics-story-sticky,
    .scroll-stories-ready .world-story-sticky {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
    }

    .scroll-stories-ready .metrics-story-sticky.is-scroll-pinned,
    .scroll-stories-ready .world-story-sticky.is-scroll-pinned,
    .scroll-stories-ready .metrics-story-sticky.is-scroll-complete,
    .scroll-stories-ready .world-story-sticky.is-scroll-complete {
        position: relative;
        inset: auto;
        height: auto;
        width: auto;
    }

    .metrics-story-item {
        opacity: 1 !important;
        transform: none !important;
    }

    .world-story-sticky {
        min-height: 100svh !important;
        padding: 7rem 0 5rem;
    }

    .world-story-copy {
        display: grid;
        height: auto;
        gap: 5rem;
    }

    .scroll-stories-ready .world-story-beat,
    .world-story-beat,
    .world-story-beat--two,
    .world-story-beat--three {
        position: relative;
        inset: auto;
        width: min(760px, calc(100% - 2rem));
        margin-inline: auto;
        opacity: 1 !important;
        text-align: left;
        transform: none !important;
    }

    .world-story-beat--two p:last-child,
    .world-story-beat--three p:last-child {
        margin-left: 0;
    }

    .scroll-stories-ready .contact-after-world {
        margin-top: 0;
        border-radius: 0;
    }
}
