/* ---------- Theme base ---------- */
:root {
    --accent: #19c29a;
    --bg: #0a0a0a;
    --surface: #101314;
    --text: #ffffff;
    --text-dim: #94a3b8;
    --text-subtle: #cbd5e1;
    --glass-bg: rgba(255,255,255,.012);
    --glass-border: rgba(255,255,255,.05);
    --card-radius: 10px;

    /* One radius scale. Replaces the eleven distinct literals that used to
       ship, so no two components disagree about how round they are. */
    --r-card: 10px;
    --r-control: 10px;
    --r-pill: 10px;
    --card-shadow: none;
    --dark-glass: rgba(0,0,0,0.9);

    /* One type system. Display carries headings, body carries prose, mono
       carries code and data. Paired on a contrast axis: Archivo is a
       neo-grotesque, IBM Plex Sans is humanist. */
    --font-display: Archivo, 'Arial Narrow', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, 'Segoe UI', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed header if needed */
:target {
    scroll-margin-top: 80px;
}

/* Global reset-ish */
html, body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
}

/* Single place to control page width + side padding (except hero) */
.mud-main-content .mud-container,
.section .mud-container {
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.page-root {
    background: var(--bg);
    color: var(--text);
}

.text-dim {
    display: inline-flex;
    align-items: center; /* vertical align */
    gap: 4px; /* small space between icon & text */
    color: var(--text-dim);
}

.text-subtle {
    color: var(--text-subtle);
}

/* Section rhythm */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 0.75rem;
}

.section-title .accent {
    color: var(--accent);
}

.section-subtitle {
    color: var(--text-subtle);
    font-size: 1rem;
    font-style: italic;
    margin: 0 0 2rem;
}

.section-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-card);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(16,19,20,.55);
    padding: 0;
    margin-top: 1rem;
}

.section-shell-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(700px 420px at 100% -10%, rgba(25,194,154,.04), transparent 60%),
                radial-gradient(500px 380px at -10% 110%, rgba(168,85,247,.025), transparent 55%);
}

.section-shell-content {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* Glass cards */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 15px;
}

/* Chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .3rem;
    margin-top: .5rem;
}

.mud-chip.chip {
    height: auto;
    min-height: 0;
    padding: .28rem .65rem;
    border-radius: var(--r-pill);
    border-color: rgba(25,194,154,.5);
    color: #e6fff7;
    background: rgba(25,194,154,.06);
    font-size: 0.82rem;
    line-height: 1.25;
}

.mud-chip.chip .mud-chip-content {
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

/* Subtle scramble effect for chip rows */
.chips .mud-chip.chip:nth-child(3n)   { transform: translateY(1px); }
.chips .mud-chip.chip:nth-child(4n+1) { transform: translateY(-1px); }

/* Bullets */
.bullets {
    margin: .75rem 0 0;
    padding-left: 1.25rem;
}

    .bullets li {
        margin: .35rem 0;
    }

/* ---------- AppBar / Footer ---------- */
/* --- Sticky AppBar --- */
.appbar {
    position: relative; /* no longer sticky here */
    width: 100%;
    background: rgba(10,10,10,.88);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

    /* AppBar sizing */
    .appbar .mud-container {
        min-height: 64px; /* consistent bar height */
        padding-top: env(safe-area-inset-top, 0);
    }


/* Make room for sticky bar on very small screens (optional) */
@media (max-width: 640px) {
    body {
        scroll-padding-top: 72px;
    }
    /* anchor links won’t hide under bar */
}

/* --- Brand logo scales with viewport --- */
.brand-link {
    display: flex;
    text-decoration: none;
}

.brand-logo {
    height: clamp(28px, 2.2vw + 18px, 44px); /* scales smoothly with width */
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 12px rgba(25,194,154,.35));
}

/* Slightly smaller on extra‑small screens */
@media (max-width: 420px) {
    .brand-logo {
        height: 32px;
    }
}

/* Ensure desktop nav & burger line up nicely with logo */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
}

/* Z‑index layering so the mobile sheet sits ABOVE the sticky bar */
.mobile-backdrop {
    z-index: 2100;
}

.mobile-sheet {
    z-index: 2000;
}
/* Desktop by default */
.nav-desktop {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-burger {
    display: none;
}

/* Force switch at <= 1024px (a bit wider than Mud's md=960) */
@media (max-width: 1024px) {
    .nav-desktop {
        display: none !important;
    }

    .nav-burger {
        display: inline-flex !important;
    }
}

/* (Optional) even larger safety net: <= 1200px */
@media (max-width: 1200px) and (min-width: 1025px) {
    /* Comment out if you don't want it this wide */
    /* .nav-desktop { display: none !important; }
  .nav-burger  { display: inline-flex !important; } */
}

/* Mobile overlay */
/* Backdrop behind the sheet */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55); /* dark overlay */
    backdrop-filter: blur(2px);
    z-index: 2100;
}

/* Glass panel style — same vibe as .glass sections */
.mobile-sheet {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(86vw, 380px);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    border-radius: 0; /* flush with screen edges */
    box-shadow: -20px 0 60px rgba(0,0,0,.6);
    z-index: 2200;
    padding: max(12px, env(safe-area-inset-top)) 16px 16px;
    display: flex;
    flex-direction: column;
}

/* Header with logo + close button */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--dark-glass);
}

.mobile-brand {
    height: 34px;
    width: auto;
    filter: drop-shadow(0 1px 8px rgba(25,194,154,.35));
    margin: auto
}

.mobile-close-btn {
    background: transparent;
    border: 0;
    color: #fff;
    padding: 8px;
    border-radius: var(--r-card);
}

    .mobile-close-btn:hover {
        background: rgba(255,255,255,.06);
    }

/* Navigation links */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--dark-glass);
    padding: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: var(--r-card);
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,.04); /* subtle glass fill */
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, color .2s;
}

    .mobile-link:hover {
        background: rgba(25,194,154,.10);
        border-color: rgba(25,194,154,.28);
        color: #fff;
    }

/* Primary CTA button */
.mobile-primary {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 12px 14px;
    border-radius: var(--r-card);
    color: #0b0f0f;
    font-weight: 700;
    background: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(25,194,154,.7);
    box-shadow: 0 10px 30px rgba(25,194,154,.25);
    transition: filter .2s;
}

    .mobile-primary:hover {
        filter: brightness(1.08);
    }

/* Ensure sheet sits above sticky header */
.appbar {
    z-index: 2000;
}

.mobile-cta {
    border: 1px solid rgba(25,194,154,.5);
    border-radius: var(--r-pill);
    text-align: center;
    padding: .6rem .9rem;
    color: #e6fff7;
}


.brand .sub {
    color: var(--text-dim);
    font-weight: 400;
    margin-left: .25rem;
}

.nav-links a {
    margin-left: 1rem;
    color: var(--text-subtle);
    font-weight: 800;
}

.footer {
    border-top: 1px solid rgba(255,255,255,.08);
    color: var(--text-dim);
}

/* ---------- HERO (full-bleed) ---------- */
/* The hero is already a full-width child of .page-root, so it does not need
   the -50vw breakout trick. 100vw counts the vertical scrollbar, which made
   the document permanently ~5px wider than the viewport and put a horizontal
   scrollbar on every page load. */
.hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 700px at 10% 10%, rgba(25,194,154,0.034), transparent 60%), radial-gradient(900px 600px at 90% 20%, rgba(168,85,247,0.029), transparent 55%), linear-gradient(to top right, rgba(0,0,0,.85), rgba(0,0,0,.35));
}

/* Keep hero content aligned with site max-width */
.hero .mud-container,
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    margin-top: 0.75rem;
}

.hero-subtitle {
    margin: 0.25rem 0 1rem;
}

.hero-lead {
    max-width: 60ch;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: .75rem;
    margin-top: 1.1rem;
}

.hero-logo {
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(25,194,154,.35));
    width: 200px;
    height: auto;
    display: block;
}

.cta {
    color: #0b0f0f;
    font-weight: 600;
}

.cta-outline {
    border-color: var(--accent);
}

/* ---- ABOUT (match hero vibe) ---- */
.about-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255,255,255,.16);
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 600px at 8% 15%, rgba(25,194,154,0.034), transparent 60%), radial-gradient(700px 500px at 95% 10%, rgba(168,85,247,0.029), transparent 55%);
    pointer-events: none;
}

.about-grid {
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

/* Left column */
.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    text-align: center;
}

.avatar-ring {
    width: clamp(96px, 18vw, 140px);
    aspect-ratio: 1 / 1;
    border-radius: var(--r-pill);
    overflow: hidden;
    border: 2px solid rgba(25,194,154,.4);
    box-shadow: 0 4px 16px rgba(25,194,154,.08), inset 0 0 0 1px rgba(255,255,255,.04);
}

    .avatar-ring img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Right column */
.about-right {
    padding: clamp(.25rem, 1vw, .5rem) 0;
}

.about-title {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: .5rem;
}

.about-text {
    line-height: 1.7;
}

/* Chips to match accent/glass */
.about-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .25rem;
}

.about-chip.mud-chip {
    border-color: rgba(25,194,154,.65);
    background: rgba(25,194,154,.10);
    color: #e6fff7;
    border-radius: var(--r-pill);
    padding: .35rem .75rem;
}

.about-fieldnotes-cta {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}

/* Responsive polish */
@media (max-width: 640px) {
    .about-grid {
        padding: 1rem;
    }

    .about-right {
        text-align: left;
    }
}


/* Glass image panel in hero */
.glass-panel {
    position: relative;
    aspect-ratio: 5 / 3;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 0 1px rgba(255,255,255,.5), 0 20px 80px rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.05);
}

    .glass-panel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .85;
    }

/* ---------- Experience logos ---------- */
.exp-header {
    padding-bottom: .25rem;
}

.exp-left {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 72px;
}

.exp-title {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    flex-wrap: wrap;
}

.company-name {
    margin: 0;
    line-height: 1.2;
}

.role-period {
    margin: 0;
    line-height: 1.2;
}

/* Make sure the logo is a neat square and aligns nicely */
.logo-box {
    width: 72px;
    height: 72px;
    border-radius: var(--r-card);
    overflow: hidden;
}

    .logo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ---------- Tech marquee ---------- */
.marquee {
    position: relative;
    display: flex;
    gap: 4rem; /* spread more */
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    animation: marquee 28s linear infinite;
    opacity: .95;
}

    .marquee img {
        height: 40px;
        opacity: .95;
        filter: grayscale(5%);
    }

    /* soft edge fades */
    .marquee::before, .marquee::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 48px;
        pointer-events: none;
    }

    .marquee::before {
        left: 0;
        background: linear-gradient(to right, var(--bg), transparent);
    }

    .marquee::after {
        right: 0;
        background: linear-gradient(to left, var(--bg), transparent);
    }

@keyframes marquee {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 1024px) {
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3rem 0;
    }

    .hero {
        min-height: 72vh;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .marquee {
        gap: 2.5rem;
        animation-duration: 24s;
    }

        .marquee img {
            height: 34px;
        }

    .logo-box {
        width: 64px;
        height: 64px;
    }
}

/* Section header styling */
.section-header {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.section-header .section-title {
    font-size: 2rem;
    margin: 0;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    margin: 0;
    font-style: normal;
}

/* Experience cards */
.exp-item {
    display: flex;
}

.exp-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: var(--card-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Accent glow overlay */
.exp-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(520px 340px at 10% 0%, rgba(25,194,154,0.029), transparent 60%), radial-gradient(420px 300px at 100% 0%, rgba(168,85,247,0.023), transparent 55%);
}
/* ---- TECH (match Experience vibe) ---- */
.tech-item {
    display: flex;
}

.tech-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem 1.25rem 1.25rem;
    height: 100%;
}

/* soft accent glow like Experience */
.tech-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(520px 340px at 0% 0%, rgba(25,194,154,0.029), transparent 60%), radial-gradient(420px 300px at 100% 0%, rgba(168,85,247,0.023), transparent 55%);
}

.tech-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    position: relative;
    z-index: 1;
}

.tech-title {
    margin: 0;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tech-count {
    font-size: .8rem;
    padding: .2rem .6rem;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text-subtle);
    background: rgba(255,255,255,.05);
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    position: relative;
    z-index: 1;
}

.mud-chip.tech-chip {
    padding: .35rem .7rem;
    border-radius: var(--r-pill);
    border-color: rgba(25,194,154,.65);
    background: rgba(25,194,154,.10);
    color: #e6fff7;
}

/* glassy strip wrapper for marquee */
.tech-strip {
    overflow: hidden !important;
}


.tech-strip-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(600px 360px at 10% 50%, rgba(25,194,154,0.029), transparent 60%), radial-gradient(500px 320px at 90% 50%, rgba(168,85,247,0.023), transparent 55%);
}

/* --- Tech strip: plain (no glass), with cropping on the wrapper --- */
.tech-strip,
.tech-strip.glass {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

    .tech-strip .tech-strip-overlay {
        display: none !important;
    }

    .tech-strip .marquee {
        display: flex;
        gap: 3rem;
        align-items: center;
        width: max-content;
        animation: marquee-loop 90s linear infinite;
        will-change: transform;
        overflow: visible !important;
    }

@keyframes marquee-loop {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

        /* We can still remove the fade edges; just don't unclip the strip */
        .tech-strip .marquee::before,
        .tech-strip .marquee::after {
            display: none !important;
            width: 0 !important;
        }

        /* Don't let images shrink / collapse */
        .tech-strip .marquee img {
            flex: 0 0 auto; /* keep intrinsic width */
            display: block;
            height: 44px; /* your preferred size */
            width: auto;
            object-fit: contain;
        }
        .tech-strip .marquee img {
            flex: 0 0 auto;
            display: block;
            height: 44px;
            width: auto;
            max-width: 120px;
            object-fit: contain;
            filter: grayscale(1) brightness(1.4) opacity(.55);
            transition: filter .3s ease, opacity .3s ease;
        }

        .tech-strip .marquee img:hover {
            filter: grayscale(0) brightness(1) opacity(1);
        }


/* Optional smaller size on mobile */
@media (max-width: 640px) {
    .tech-strip .marquee {
        gap: 2rem;
        animation-duration: 30s;
    }

        .tech-strip .marquee img {
            height: 36px;
        }
}


/* marquee already defined; slightly bigger logos here */
/* Split layout spacing */
.tech-split .tech-item {
    display: flex;
}

/* Make the left cards a bit tighter for a 2-col grid */
.tech-card.compact {
    padding: .9rem 1rem 1.05rem;
    gap: .6rem;
}

/* -------- Right-side photo panel -------- */
.tech-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-photo {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    padding: 0; /* image fills, meta sits on top */
    min-height: 360px;
}

.tech-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .9;
    transform: scale(1.02);
}

.tech-photo-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 600px at 100% 0%, rgba(168,85,247,0.034), transparent 55%), linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.25));
    pointer-events: none;
}

.tech-photo-meta {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .9rem;
    border-radius: var(--r-card);
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
}

.tech-photo-title {
    color: #fff;
    font-weight: 800;
    letter-spacing: -.01em;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

    .tech-badges .kpi {
        font-size: .8rem;
        padding: .35rem .6rem;
        border-radius: var(--r-pill);
        color: #e6fff7;
        background: rgba(25,194,154,.12);
        border: 1px solid rgba(25,194,154,.45);
    }

/* small supporting card */
.tech-note {
    padding: .9rem 1rem;
    border-radius: var(--r-card);
}

.mini-chips {
    margin-top: .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

    .mini-chips span {
        font-size: .8rem;
        padding: .3rem .55rem;
        border-radius: var(--r-pill);
        border: 1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.06);
        color: #e7f7f2;
    }

/* Responsive polish */
@media (max-width: 960px) {
    .tech-photo {
        min-height: 300px;
    }

    .tech-photo-meta {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 640px) {
    .tech-photo {
        min-height: 240px;
    }
}
/* ---- HIGHLIGHTS (match Experience/Tech) ---- */



/* soft accent glow */

/* header */
.hl-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    position: relative;
    z-index: 1;
}

.hl-badge {
    width: 34px;
    height: 34px;
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(25,194,154,.12);
    border: 1px solid rgba(25,194,154,.45);
    color: #e6fff7;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(25,194,154,.25) inset;
}


/* body */
.hl-text {
    position: relative;
    z-index: 1;
    line-height: 1.65;
}

/* responsive */
@media (max-width:640px) {

    .hl-badge {
        width: 30px;
        height: 30px;
    }
}

/* Header */
.exp-header {
    padding: .85rem 1.25rem .25rem;
}

.exp-left {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 72px;
}

.exp-title {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    flex-wrap: wrap;
}

.company-name {
    margin: 0;
    line-height: 1.2;
}

/* Content */
.exp-content {
    padding: .5rem 1.25rem 1.25rem;
}

.bullets {
    margin-top: .5rem;
}

    .bullets li {
        margin: .35rem 0;
    }

.exp-toggle {
    margin-top: 0.75rem;
    cursor: pointer;
}

.exp-toggle-text {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.exp-toggle-text:hover {
    text-decoration: underline;
}

/* Logo boxes */
.logo-box {
    width: 72px;
    height: 72px;
    border-radius: var(--r-card);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Responsive */
@media (max-width: 640px) {
    .logo-box {
        width: 60px;
        height: 60px;
        border-radius: var(--r-card);
    }
}

/* Header alignment */
.exp-header {
    padding-bottom: .25rem;
}

.exp-left {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 72px;
}

.exp-title {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    flex-wrap: wrap;
}

.company-name, .role-period {
    margin: 0;
    line-height: 1.2;
}

/* ---- CONTACT (hero-style) ---- */
.contact {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 3rem;
}

.contact-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .28;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 700px at 10% 15%, rgba(25,194,154,0.034), transparent 60%), radial-gradient(900px 600px at 90% 20%, rgba(168,85,247,0.029), transparent 55%), linear-gradient(to top right, rgba(0,0,0,.85), rgba(0,0,0,.40));
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-eyebrow {
    color: var(--text-dim);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
}

.contact-title {
    margin: 0 0 0.75rem;
}

.contact-cta {
    display: flex;
    gap: .75rem;
    margin-top: 1.1rem;
}

.contact-meta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    color: var(--text-dim);
}

    .contact-meta a {
        color: var(--text-subtle);
        text-decoration: none;
    }

        .contact-meta a:hover {
            text-decoration: underline;
        }

/* Glass availability card (right) */
.avail-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 1.4rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    /* removed backdrop-filter */
    box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 12px 40px rgba(0,0,0,.55);
}

.avail-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(520px 340px at 0% 0%, rgba(25,194,154,0.029), transparent 60%), radial-gradient(420px 300px at 100% 0%, rgba(168,85,247,0.023), transparent 55%);
}

.avail-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.avail-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.avail-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.avail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: var(--text-subtle);
    font-size: 0.92rem;
    line-height: 1.55;
}

.avail-list li {
    position: relative;
    padding-left: 1rem;
}

.avail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: var(--r-pill);
    background: var(--accent);
    opacity: 0.6;
}

.avail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

/* Reuse your hero button styles */
.cta {
    color: #0b0f0f;
    font-weight: 600;
}

.cta-outline {
    border-color: var(--accent);
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .contact {
        min-height: 64vh;
    }

    .contact-title {
        font-size: 1.6rem;
    }
}

/* Card container: equal height in grid */
.exp-item {
    display: flex;
}

.exp-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: var(--card-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Soft accent glow (like hero/about) */
.exp-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(520px 340px at 10% 0%, rgba(25,194,154,0.029), transparent 60%), radial-gradient(420px 300px at 100% 0%, rgba(168,85,247,0.023), transparent 55%);
}

/* Header already aligns; tighten + badge vibe for role/period */
.exp-header {
    padding: .85rem 1.25rem .25rem;
}

.exp-left {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 72px;
}

.exp-title {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    flex-wrap: wrap;
}

.company-name {
    margin: 0;
    line-height: 1.2;
}

/* Content spacing */
.exp-content {
    padding: .5rem 1.25rem 1.25rem;
}

.bullets {
    margin-top: .5rem;
}

    .bullets li {
        margin: .35rem 0;
    }

/* Logo squares (keep square + no stretch) */
.logo-square, .logo-box {
    width: 72px;
    height: 72px;
    border-radius: var(--r-card);
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-square img, .logo-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Responsive polish */
@media (max-width: 640px) {
    .exp-header {
        padding: .75rem 1rem .25rem;
    }

    .exp-content {
        padding: .5rem 1rem 1rem;
    }

    .logo-square, .logo-box {
        width: 60px;
        height: 60px;
        border-radius: var(--r-card);
    }
}

/* Perfect square logos (SVG/PNG/JPG) */
.logo-square {
    width: 72px;
    height: 72px;
    border-radius: var(--r-card);
    overflow: hidden;
    flex-shrink: 0;
    background: #fff; /* neutral bg for transparent logos */
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-square img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* keep aspect ratio, no stretch */
        object-position: center;
        display: block;
    }

.logo-fallback {
    font-weight: 700;
    color: #111;
}

@media (max-width:640px) {
    .logo-square {
        width: 60px;
        height: 60px;
        border-radius: var(--r-card);
    }
}

header.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
}
/* === Tech Stack: aligned 70/30 grid (final overrides) === */

/* Make the outer MudGrid a clean 70/30 CSS Grid */
.tech-split.mud-grid-root { /* remove MudGrid negative margins */
    margin: 0 !important;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); /* 70 / 30 */
    gap: 24px;
    align-items: stretch;
}

    .tech-split.mud-grid-root > .mud-item { /* kill MudGrid item padding */
        padding: 0 !important;
    }

/* Left column: two equal columns of cards */
.tech-cards.mud-grid-root {
    margin: 0 !important; /* remove inner grid margin */
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

    .tech-cards.mud-grid-root > .mud-item {
        padding: 0 !important; /* ensure cards butt to the gap */
    }

/* Each card should fill its grid cell */
.tech-item {
    display: block; /* no display: contents (breaks height) */
}

    .tech-item .tech-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

/* Right column: photo panel fills the full column height */
.tech-side {
    display: flex;
}

    .tech-side .tech-photo {
        display: flex;
        flex: 1 1 auto;
        min-height: 0; /* prevents overflow in tall layouts */
    }

.tech-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive: stack on tablet/phone */
@media (max-width: 960px) {
    .tech-split.mud-grid-root {
        grid-template-columns: 1fr;
    }

    .tech-cards.mud-grid-root {
        grid-template-columns: 1fr;
    }
}
/* --- Richer tech cards --- */
.tech-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto; /* header / chips / footer */
    gap: .75rem;
    padding: 1rem 1.1rem 1rem;
}

    /* subtle inner gradient & edge highlight */
    .tech-card::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(600px 380px at 0% -10%, rgba(25,194,154,0.029), transparent 60%), radial-gradient(420px 260px at 100% 0%, rgba(168,85,247,0.023), transparent 55%);
    }

.tech-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.tech-head-left {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.tech-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--r-card);
    border: 1px solid rgba(25,194,154,.35);
    background: rgba(25,194,154,.08);
    box-shadow: inset 0 0 14px rgba(25,194,154,.18);
}

.tech-title {
    margin: 0;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tech-count {
    font-size: .8rem;
    padding: .2rem .6rem;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text-subtle);
    background: rgba(255,255,255,.05);
}

/* denser chips */
.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.mud-chip.tech-chip {
    padding: .33rem .65rem;
    border-radius: var(--r-pill);
    border-color: rgba(25,194,154,.55);
    background: rgba(25,194,154,.09);
    color: #e6fff7;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

    .mud-chip.tech-chip:hover {
        transform: translateY(-1px);
        background: rgba(25,194,154,.14);
        border-color: rgba(25,194,154,.75);
    }

/* tiny footer tag */
.tech-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

.tech-tag {
    font-size: .75rem;
    padding: .28rem .55rem;
    border-radius: var(--r-control);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: var(--text-subtle);
}


/* ---- HIGHLIGHTS split (70/30 like Tech) ---- */
.hl-split{
  display:grid;
  grid-template-columns:minmax(0,7fr) minmax(0,3fr);
  gap:24px;
  align-items:stretch;
}
.hl-split > .mud-item{ padding:0 !important; }

/* left cards grid */
.hl-cards{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
        /* let Paper fill cell */

/* right image panel */
.hl-side{ display:flex; }
.hl-photo{
  position:relative; overflow:hidden; border-radius: var(--r-card); padding:0; flex:1; height:100%;
}
.hl-photo-img{
  width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.02);
  opacity:.95;
}
.hl-photo-grad{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 600px at 90% 0%, rgba(168,85,247,0.034), transparent 55%),
    linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.25));
  pointer-events:none;
}
.hl-badges{ display:flex; flex-wrap:wrap; gap:.5rem; }
.hl-badges .kpi{
  font-size:.8rem; padding:.35rem .6rem; border-radius: var(--r-pill);
  color:#e6fff7; background:rgba(25,194,154,.12); border:1px solid rgba(25,194,154,.45);
}

/* responsive */
@media (max-width:960px){
  .hl-split{ grid-template-columns:1fr; }
  .hl-cards{ grid-template-columns:1fr; }
}
.mud-main-content {
    padding-top:0;
}

/* Highlights: make MudItems behave like plain grid children */
.hl-split.mud-grid {
    margin: 0 !important;
    display: grid;
    grid-template-columns: minmax(0,7fr) minmax(0,3fr);
    gap: 24px;
    align-items: start;
}

    /* kill MudItem padding + width constraints */
    .hl-split.mud-grid > .mud-grid-item {
        padding: 0 !important;
        width: auto !important;
        max-width: none !important;
        flex: initial !important;
    }

/* Left: 2-column card grid */
.hl-cards.mud-grid {
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

    .hl-cards.mud-grid > .mud-grid-item {
        padding: 0 !important;
    }

@media (max-width:960px) {
    .hl-split.mud-grid {
        grid-template-columns: 1fr;
    }

    .hl-cards.mud-grid {
        grid-template-columns: 1fr;
    }
}
/* === Highlights photo: brand tint + fit === */
.hl-photo {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    padding: 0;
    min-height: 420px; /* a bit taller = better balance with cards */
    max-height: 640px;
}

/* Re‑tint the blue base image to brand teal and deepen it a touch */
.hl-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    filter: hue-rotate(20deg) /* push blues toward teal */
    saturate(10%) brightness(0.88) /* darken slightly */
    contrast(1.06);
    transform: scale(1.015);
    opacity: .95;
    display: block;
}

/* Brand overlays (teal + subtle purple) and dark vignette for copy legibility */
.hl-photo-grad {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1100px 700px at 85% 10%, rgba(168,85,247,0.034), transparent 60%), /* your purple glow */
    linear-gradient(to top, rgba(0,0,0,.60), rgba(0,0,0,.22)), /* vignette for contrast */
    radial-gradient(900px 600px at 10% 90%, rgba(25,194,154,0.051), transparent 55%); /* brand teal wash */
    mix-blend-mode: screen; /* softly merges with the image colors */
}

/* Metadata pill stays readable */


/* Responsive */
@media (max-width: 960px) {
    .hl-photo {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .hl-photo {
        min-height: 300px;
    }
}
/* --- Highlights layout (no Mud gutters, solid alignment) --- */
.hl-top {
    display: grid;
    grid-template-columns: minmax(0,7fr) minmax(0,3fr); /* 70/30 like Tech */
    gap: 24px;
    align-items: stretch;
}

.hl-grid-2 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.hl-rest {
    margin-top: 16px;
}

/* Card header like Tech */
.hl-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    position: relative;
    z-index: 1;
}



/* Image panel sizing + brand tint (from previous step) */
.hl-photo {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    padding: 0;
    min-height: 420px;
}

.hl-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    transform: scale(1.015);
    opacity: .95;
    display: block;
}

.hl-photo-grad {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1100px 700px at 85% 10%, rgba(168,85,247,0.034), transparent 60%), linear-gradient(to top, rgba(0,0,0,.60), rgba(0,0,0,.22)), radial-gradient(900px 600px at 10% 90%, rgba(25,194,154,0.051), transparent 55%);
}

/* Responsive: stack neatly */
@media (max-width:960px) {
    .hl-top {
        grid-template-columns: 1fr;
    }
}

/* --- Hero Brand & Status Badge --- */
.hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 8px;
    border-radius: var(--r-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Uppercase caps sit optically high in their line box; nudge the dot up a hair to match. */
.status-badge.available::before,
.status-badge.engaged::before {
    position: relative;
    top: -0.5px;
}

.status-badge.engaged {
    background: rgba(25, 194, 154, 0.08);
    border: 1px solid rgba(25, 194, 154, 0.25);
    color: #cbd5e1;
    gap: 0.45rem;
}

.status-badge.engaged::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--r-pill);
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(25, 194, 154, 0.7);
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(25, 194, 154, 0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(25, 194, 154, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 194, 154, 0); }
}

.status-badge.available {
    background: rgba(25, 194, 154, 0.15);
    border: 1px solid rgba(25, 194, 154, 0.5);
    color: #19c29a;
    gap: 0.45rem;
}

.status-badge.available::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--r-pill);
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(25, 194, 154, 0.7);
    animation: status-pulse 2s ease-in-out infinite;
}

/* --- What I Bring Section --- */
.wib-grid {
    margin-top: 1rem;
}

.wib-item {
    display: flex;
    align-self: flex-start;
}

.wib-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: var(--card-shadow);
    transition: border-color .25s ease;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.25rem;
    width: 100%;
}


.wib-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(520px 340px at 0% 0%, rgba(25,194,154,0.029), transparent 60%),
                radial-gradient(420px 300px at 100% 0%, rgba(168,85,247,0.023), transparent 55%);
}

.wib-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    position: relative;
    z-index: 1;
}

.wib-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--r-card);
    border: 1px solid rgba(25,194,154,.35);
    background: rgba(25,194,154,.08);
    box-shadow: inset 0 0 14px rgba(25,194,154,.18);
    color: var(--accent);
}

.wib-title {
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.wib-text {
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.wib-card {
    cursor: pointer;
}

.wib-expand-icon {
    margin-left: auto;
    color: var(--text-subtle);
    transition: transform 0.2s ease;
}

.wib-expanded .wib-expand-icon {
    transform: rotate(180deg);
}

.wib-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

/* --- FAQ Section --- */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.faq-list {
    max-width: 700px;
}

.faq-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

.faq-item:last-child {
    border-bottom: none !important;
}

.faq-item .mud-expand-panel-header {
    padding: 1rem 0 !important;
}

.faq-item .mud-expand-panel-content {
    padding: 0 0 1rem 0 !important;
}

.faq-question {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.faq-answer {
    font-size: 0.875rem;
    line-height: 1.6;
}

.faq-sidebar {
    position: sticky;
    top: 100px;
    padding: 1.25rem 1.4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
}

.faq-sidebar-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-sidebar {
        position: static;
    }
}

.mud-expand-panel-header .mud-icon-root {
    color: var(--accent) !important;
}

/* --- Blog Pages --- */
.blog-hero {
    padding: 6rem 0 2rem;
}

.blog-eyebrow {
    color: var(--text-dim);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
}

.blog-hero-lead {
    color: var(--text-subtle);
    line-height: 1.7;
    max-width: 72ch;
    margin: 0;
}

.blog-list {
    padding: 2rem 0 5rem;
}

.blog-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    padding: 0;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: border-color 0.25s ease;
}

.blog-card:hover {
    border-color: rgba(25,194,154,.3);
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(600px 400px at 0% 0%, rgba(25,194,154,0.018), transparent 60%),
                radial-gradient(500px 350px at 100% 100%, rgba(168,85,247,0.012), transparent 55%);
}

.blog-card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.blog-tag {
    font-size: 0.7rem;
}

.blog-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-excerpt {
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    margin-top: 1rem;
}

.blog-read-more .mud-typography {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-read-more .mud-icon-root {
    font-size: 1rem;
    vertical-align: middle;
}

/* Blog TL;DR Toggle */
.blog-tldr-toggle {
    margin-top: 0.75rem;
}

.blog-tldr-chip {
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0 0.5rem;
}

.blog-tldr-chip .mud-icon-root {
    font-size: 1rem;
    margin-left: 0.25rem;
}

.blog-tldr-content {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--r-control);
}

.blog-tldr-content .mud-typography {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Blog Sidebar */
.blog-sidebar {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    padding: 0;
}

.blog-sidebar-content {
    position: relative;
    z-index: 1;
    padding: 1.25rem 1.4rem;
}

.blog-sidebar-title {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    display: block;
}

.blog-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-filter-chip {
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-filter-chip:hover {
    transform: translateY(-1px);
}

/* Blog Article Page */
.blog-article {
    padding: 5rem 0 5rem;
}

.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 2.5rem;
    transition: gap 0.2s ease;
}

.blog-back:hover {
    gap: 0.65rem;
}

.blog-article-header {
    margin-bottom: 2.5rem;
}

.blog-article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.blog-article-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 0.75rem;
}

.blog-article-excerpt {
    color: var(--text-subtle);
    font-size: 1.05rem;
    font-style: italic;
    margin: 0 0 1.5rem;
    line-height: 1.6;
    max-width: 72ch;
}

.blog-tldr {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    border-radius: var(--card-radius);
    color: var(--text-subtle);
    font-size: 0.95rem;
    line-height: 1.65;
}

.blog-tldr strong {
    display: block;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.blog-article-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-article-body p {
    margin-bottom: 1.5rem;
}

.blog-article-body h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.blog-article-body h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.blog-article-body h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.blog-article-body ol {
    list-style-type: decimal;
}

.blog-article-body ul {
    list-style-type: disc;
}

.blog-article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.blog-article-body li::marker {
    color: #19c29a;
}

/* Nested lists */
.blog-article-body ul ul,
.blog-article-body ol ol,
.blog-article-body ul ol,
.blog-article-body ol ul {
    margin: 0.5rem 0;
}

.blog-article-body pre {
    background: rgba(13, 17, 23, 0.95) !important;
    border: 1px solid rgba(25, 194, 154, 0.2);
    border-radius: var(--r-card);
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-article-body pre[class*="language-"] {
    background: rgba(13, 17, 23, 0.95) !important;
    border: 1px solid rgba(25, 194, 154, 0.2);
    border-radius: var(--r-card);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.blog-article-body code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: #e6fff7;
}

/* Inline code (not in pre blocks) */
.blog-article-body :not(pre) > code {
    background: rgba(25, 194, 154, 0.15);
    color: #19c29a;
    padding: 0.2em 0.4em;
    border-radius: var(--r-control);
    font-size: 0.875em;
}

/* Prism overrides for dark theme */
.blog-article-body code[class*="language-"],
.blog-article-body pre[class*="language-"] {
    text-shadow: none !important;
    font-family: var(--font-mono) !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

.blog-article-body .token.comment,
.blog-article-body .token.prolog,
.blog-article-body .token.doctype,
.blog-article-body .token.cdata {
    color: #6a9955;
}

.blog-article-body .token.punctuation {
    color: #808080;
}

.blog-article-body .token.property,
.blog-article-body .token.tag,
.blog-article-body .token.boolean,
.blog-article-body .token.number,
.blog-article-body .token.constant,
.blog-article-body .token.symbol {
    color: #b5cea8;
}

.blog-article-body .token.selector,
.blog-article-body .token.attr-name,
.blog-article-body .token.string,
.blog-article-body .token.char,
.blog-article-body .token.builtin {
    color: #ce9178;
}

.blog-article-body .token.operator,
.blog-article-body .token.entity,
.blog-article-body .token.url,
.blog-article-body .language-css .token.string,
.blog-article-body .style .token.string {
    color: #d4d4d4;
}

.blog-article-body .token.atrule,
.blog-article-body .token.attr-value,
.blog-article-body .token.keyword {
    color: #569cd6;
}

.blog-article-body .token.function {
    color: #dcdcaa;
}

.blog-article-body .token.class-name {
    color: #4ec9b0;
}

.blog-article-body .token.regex,
.blog-article-body .token.important,
.blog-article-body .token.variable {
    color: #d16969;
}

.blog-article-footer {
    margin-top: 3rem;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.blog-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--r-pill);
    overflow: hidden;
    border: 2px solid rgba(25,194,154,.4);
    flex-shrink: 0;
}

.blog-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-author-info .mud-typography-subtitle1 {
    color: #fff;
    font-weight: 600;
}

.blog-back-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-back-cta .mud-button-root {
    display: inline-flex;
    align-items: center;
}

.blog-back-cta .mud-icon-root {
    display: flex;
    align-items: center;
}

/* ===== STORY PAGE STYLES ===== */

/* Story Header - Full bleed like hero */
.story-header {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6rem 0 4rem;
    overflow: hidden;
}


.story-header .mud-container {
    position: relative;
    z-index: 1;
}

.story-header-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22;
}

.story-header-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 700px at 10% 10%, rgba(25,194,154,0.034), transparent 60%),
        radial-gradient(900px 600px at 90% 20%, rgba(168,85,247,0.029), transparent 55%),
        linear-gradient(to top right, rgba(0,0,0,.85), rgba(0,0,0,.35));
}

.story-back {
    position: absolute;
    top: 2rem;
    left: 0;
    text-transform: none;
    letter-spacing: 0;
}

.story-title {
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
}

.story-header .mud-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.story-intro {
    max-width: 600px;
    line-height: 1.8;
    position: relative;
}

/* Story Footer */
.story-footer {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.story-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 400px at 50% 100%, rgba(25,194,154,0.029), transparent 50%);
    pointer-events: none;
}

/* Section Navigation Dots */
.story-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.story-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.25);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.story-nav-dot::before {
    content: attr(data-label);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.story-nav-dot:hover::before {
    opacity: 1;
}

.story-nav-dot:hover,
.story-nav-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 16px rgba(25,194,154,.6);
}

/* Next Section Button */
.story-next {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.story-next-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-dim);
    cursor: pointer;
    padding: 1rem;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    transition: all 0.3s ease;
}

.story-next-btn:hover {
    color: var(--accent);
    border-color: rgba(25,194,154,.4);
    background: rgba(25,194,154,.1);
    transform: translateY(-4px);
}

.story-next-btn .mud-icon-root {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Section reveal on scroll */
.story-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Make inner Section component fill the space */
.story-section > .section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
}

/* Story page section dividers */
.story-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(25,194,154,.3), transparent);
    margin: 0 auto;
    max-width: 600px;
}

/* Story tagline */
.story-tagline {
    color: var(--text-subtle);
    font-weight: 400;
    margin-top: 1rem;
    position: relative;
}

/* Timeline */
.story-timeline {
    position: relative;
    max-width: 700px;
    margin: 2rem 0;
    padding-left: 3rem;
}

.story-timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(25,194,154,.5), rgba(25,194,154,.1));
}

.story-timeline-item {
    position: relative;
    padding-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
}

.story-timeline-item:last-child {
    padding-bottom: 0;
}

.story-timeline-marker {
    position: absolute;
    left: -3rem;
    width: 32px;
    height: 32px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 2px solid rgba(25,194,154,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    z-index: 1;
    transition: all 0.3s ease;
}

.story-timeline-marker.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0b0f0f;
    box-shadow: 0 0 20px rgba(25,194,154,.4);
}

.story-timeline-content {
    flex: 1;
    padding-top: 0.25rem;
}

.story-timeline-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.story-timeline-item:hover .story-timeline-marker {
    transform: scale(1.1);
    border-color: var(--accent);
}

/* Responsive */
@media (max-width: 640px) {
    .story-timeline {
        padding-left: 2.5rem;
    }

    .story-timeline::before {
        left: 12px;
    }

    .story-timeline-marker {
        left: -2.5rem;
        width: 28px;
        height: 28px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .story-nav {
        display: none;
    }

    .story-header {
        padding: 4rem 0 3rem;
    }

    .story-next-btn {
        padding: 0.75rem;
    }
}

/* ===== HOME V2 NARRATIVE STYLES ===== */

/* Section 2: Beliefs */
.v2-beliefs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.v2-belief-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: var(--r-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.v2-belief-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 60px rgba(0,0,0,.6);
    border-color: rgba(25,194,154,.35);
}

.v2-belief-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(500px 300px at 0% 0%, rgba(25,194,154,0.023), transparent 60%),
                radial-gradient(400px 250px at 100% 100%, rgba(168,85,247,0.017), transparent 55%);
}

.v2-belief-title {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.v2-belief-text {
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Section 3: How I Work */
.v2-work-grid {
    margin-top: 1rem;
}

.v2-work-item {
    display: flex;
}

.v2-work-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border-radius: var(--r-card);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.v2-work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 60px rgba(0,0,0,.6);
    border-color: rgba(25,194,154,.35);
}

.v2-work-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(500px 300px at 0% 0%, rgba(25,194,154,0.023), transparent 60%),
                radial-gradient(400px 250px at 100% 100%, rgba(168,85,247,0.017), transparent 55%);
}

.v2-work-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.v2-work-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--r-card);
    border: 1px solid rgba(25,194,154,.35);
    background: rgba(25,194,154,.08);
    box-shadow: inset 0 0 14px rgba(25,194,154,.18);
    color: var(--accent);
    flex-shrink: 0;
}

.v2-work-title {
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.v2-work-text {
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Section 4: Stories */
.v2-stories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.v2-story-card {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.5rem;
    border-radius: var(--r-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.v2-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 60px rgba(0,0,0,.6);
    border-color: rgba(25,194,154,.35);
}

.v2-story-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(600px 350px at 0% 0%, rgba(25,194,154,0.023), transparent 60%),
                radial-gradient(500px 300px at 100% 100%, rgba(168,85,247,0.017), transparent 55%);
}

.v2-story-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.v2-story-title {
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.v2-story-text {
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.v2-stories-cta {
    margin-top: 1.5rem;
}

/* Section 5: Curiosity */
.v2-curiosity-topics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.v2-curiosity-topic {
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.v2-curiosity-topic-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.v2-curiosity-panel {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: var(--r-card);
}

.v2-curiosity-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(500px 300px at 100% 0%, rgba(168,85,247,0.023), transparent 55%),
                radial-gradient(400px 250px at 0% 100%, rgba(25,194,154,0.017), transparent 60%);
}

.v2-curiosity-panel-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.v2-curiosity-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.v2-chip {
    border-radius: var(--r-pill);
    padding: 0.35rem 0.7rem;
}

.v2-chip.deepening {
    border-color: rgba(25,194,154,.55);
    background: rgba(25,194,154,.1);
    color: #e6fff7;
}

.v2-chip.tracking {
    border-color: rgba(148,163,184,.45);
    background: rgba(148,163,184,.1);
    color: var(--text-subtle);
}

.v2-chip.exploring {
    border-color: rgba(168,85,247,.45);
    background: rgba(168,85,247,.1);
    color: #e9d5ff;
}

/* Section 6: Field Notes */
.v2-article-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: var(--card-radius);
    cursor: pointer;
    height: 100%;
    transition: border-color 0.25s ease;
}

.v2-article-card:hover {
    border-color: rgba(25,194,154,.3);
}

.v2-article-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(500px 300px at 0% 0%, rgba(25,194,154,0.023), transparent 60%),
                radial-gradient(400px 250px at 100% 100%, rgba(168,85,247,0.017), transparent 55%);
}

.v2-article-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

.v2-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.v2-chip-small {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--r-pill);
    border-color: rgba(25,194,154,.55);
    background: rgba(25,194,154,.1);
    color: #e6fff7;
}

.v2-article-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.v2-article-excerpt {
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-fieldnotes-cta {
    margin-top: 1.5rem;
    text-align: right;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap .2s ease;
}

.inline-link:hover {
    gap: 0.65rem;
}

.inline-link-arrow {
    transition: transform .2s ease;
}

/* Personal section */
.v2-personal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.v2-personal {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.v2-personal-image {
    width: 280px;
    height: 280px;
    margin: 0 auto 2rem;
    border-radius: var(--r-pill);
    overflow: hidden;
    border: 4px solid rgba(25,194,154,.4);
    box-shadow:
        0 0 0 8px rgba(25,194,154,.1),
        0 20px 60px rgba(0,0,0,.4);
}

.v2-personal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.v2-personal-headline {
    color: var(--accent);
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .v2-personal-image {
        width: 200px;
        height: 200px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .v2-beliefs {
        grid-template-columns: 1fr;
    }

    .v2-story-card {
        padding: 1.25rem;
    }

    .v2-curiosity-panel {
        margin-top: 2rem;
    }
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 960px) {
    .blog-hero {
        padding: 4rem 0 2rem;
    }

    .blog-article {
        padding: 3rem 0 4rem;
    }
}

@media (max-width: 640px) {
    .blog-article-body {
        font-size: 1rem;
    }

    .blog-article-body h2 {
        font-size: 1.3rem;
    }
}

/* Blog Resources List */
.blog-resources {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-card);
    padding: 1.25rem 1.25rem 1.25rem 2.5rem;
    margin-top: 1rem;
}

.blog-resources li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.blog-resources li:last-child {
    margin-bottom: 0;
}

.blog-resources a {
    color: var(--text-subtle);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-resources a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== DEMO PAGE STYLES ===== */

/* Scroll Progress Bar */

/* Floating Accent Shapes */

.shape {
    position: absolute;
    border-radius: var(--r-pill);
    filter: blur(80px);
    opacity: 0.15;
    animation: float-shape 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 10%;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.8);
    top: 50%;
    right: -80px;
    animation-delay: -7s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Demo Page */
.demo-page {
    position: relative;
    z-index: 1;
}

.demo-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
}

.demo-hero-title {
    color: var(--accent);
    font-weight: 700;
    min-height: 3rem;
}

.typing-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.scroll-hint {
    margin-top: 3rem;
}



/* Demo Sections */
.demo-section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.demo-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-section-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.glow-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--r-pill);
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent); }
    50% { box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent); }
}

/* Demo Cards */
.demo-card {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--r-card);
    overflow: hidden;
}

.demo-card-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(400px at 50% 50%, rgba(25, 194, 154, 0.08), transparent 60%);
    pointer-events: none;
}

/* Glow Card */
.glow-card-wrapper {
    position: relative;
}

.glow-card {
    transition: all 0.3s ease;
}

.glow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(25, 194, 154, 0.2);
    border-color: rgba(25, 194, 154, 0.5);
}

/* Demo Badges */
.demo-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.demo-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--r-pill);
    background: rgba(25, 194, 154, 0.1);
    border: 1px solid rgba(25, 194, 154, 0.3);
    color: #e6fff7;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: default;
}

.demo-badge:hover {
    background: rgba(25, 194, 154, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(25, 194, 154, 0.3);
    transform: translateY(-2px);
}

/* Accent Elements */
.demo-accents {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 0;
}

.accent-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.accent-dots {
    display: flex;
    gap: 1rem;
}

.accent-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--r-pill);
    background: var(--accent);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.accent-dot:nth-child(2) { animation-delay: 0.3s; }
.accent-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

/* Parallax Section */
.demo-parallax {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.parallax-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 400px at 20% 30%, rgba(25, 194, 154, 0.15), transparent 50%),
        radial-gradient(500px 350px at 80% 70%, rgba(168, 85, 247, 0.1), transparent 50%);
    animation: parallax-drift 15s ease-in-out infinite;
}

@keyframes parallax-drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 10px); }
}

.parallax-content {
    position: relative;
    z-index: 1;
}

.demo-footer {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .demo-hero { min-height: 50vh; padding: 4rem 0 3rem; }
    .demo-section { padding: 3rem 0; }
}

/* ---- AI SECTION ---- */
.ai-section .ai-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
    color: #fff;
}

.ai-section .ai-title .accent {
    color: var(--accent);
}

.ai-section .ai-subtitle {
    color: var(--text-subtle);
    font-size: 1rem;
    margin: 0 0 2rem;
}

.ai-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-card);
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(16,19,20,.6);
}

.ai-shell .ai-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 420px at 100% -10%, rgba(25,194,154,0.029), transparent 60%),
                radial-gradient(500px 380px at -10% 110%, rgba(168,85,247,0.017), transparent 55%);
    pointer-events: none;
}

.ai-shell .ai-content {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.ai-lead {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-subtle);
    max-width: 78ch;
    margin: 0 0 1rem;
}

.ai-principles {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 0.5rem 0 1.5rem;
}

.ai-principle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ai-principle-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.ai-principle-title {
    color: #fff;
    font-weight: 700;
    margin-right: 0.4rem;
}

.ai-principle-text {
    color: var(--text-subtle);
    line-height: 1.55;
}

.ai-footer {
    margin-top: 1.5rem;
    text-align: right;
}

.ai-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.ai-pillar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.25rem 1.4rem;
}

.ai-pillar-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.ai-pillar-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.ai-pillar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.ai-pillar p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-subtle);
    margin: 0 0 0.75rem;
}

.ai-pillar p:last-child {
    margin-bottom: 0;
}

.ai-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 2rem 0 1.5rem;
}

.ai-guardrails-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.25rem;
}

.ai-guardrails-icon {
    color: var(--accent);
}

.ai-guardrails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ai-guardrail {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1rem 1.1rem;
}

.ai-guardrail-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ai-guardrail-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.ai-guardrail-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.ai-guardrail-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-subtle);
    margin: 0;
}

.ai-closer {
    text-align: center;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0;
}

@media (max-width: 900px) {
    .ai-pillars,
    .ai-guardrails {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   SHARPENED RESTRAINT — design system pass 1
   green = interaction only · mono kickers · AA CTA · reduced-motion
   (appended block; safe to review/revert as a unit)
   ============================================================ */

/* The green accent word stays, by design decision. */
.section-title .accent { color: var(--accent); }

/* Retire the dim italic subtitle treatment */
.section-subtitle,
.section-subtitle em { font-style: normal; }

/* Green is a signal, not decoration → neutral experience chips */
.mud-chip.chip {
    border-color: rgba(255, 255, 255, .16) !important;
    color: #cdd3d3 !important;
    background: rgba(255, 255, 255, .03) !important;
}

/* AA contrast fix: ink text on the vivid-green filled CTA.
   Was #fff on #19c29a = 2.28:1 (fails). Ink #04140f ≈ 7:1 (passes AA).
   Targets the MudBlazor label, which was overriding the .cta color. */
.mud-button-filled-primary,
.mud-button-filled-primary .mud-button-label,
.mud-button-filled-secondary,
.mud-button-filled-secondary .mud-button-label {
    color: #04140f !important;
}

/* Motion opt-out — the site shipped 46 keyframe animations with none */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   CORRECTNESS PASS — targets, focus, floating-button collision
   ============================================================ */

/* WCAG 2.2 target size. MudBlazor ships 37px buttons; the visual size
   stays the same, only the hit area grows. */
.mud-button-root,
.mud-icon-button {
    min-height: 44px;
}

.mud-button-root.mud-button-text,
.nav-links .mud-link,
.site-footer a,
footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* The floating back-to-top button used to sit on top of the footer links
   at the bottom of the page. It now yields once the contact section is in
   view; the footer already carries its own "Back to top" link. */
.back-to-top {
    opacity: 1;
    pointer-events: auto;
    transition: opacity .25s cubic-bezier(.16, 1, .3, 1);
}

.back-to-top.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Nav position indicator. The page scrolls ~9000px with no sense of place;
   the link for the section currently on screen marks itself. */
.nav-links a {
    position: relative;
    color: var(--text-subtle);
    transition: color .2s cubic-bezier(.16, 1, .3, 1);
}

.nav-links a.is-current {
    color: #fff;
}

.nav-links a.is-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--accent);
}

.nav-links a.nav-cta.is-current::after {
    display: none;
}

/* ============================================================
   DESIGN PASS 2 — heading treatment, ledger layout, hero density
   Values dialled in the Phase 2/3 preview rig.
   ============================================================ */

/* Section headings: small, dense, heavy caps. The weight and the case carry
   the emphasis, so the type no longer needs a large scale to feel like a
   headline. */
.section-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
    text-wrap: balance;
}

/* The page h1 keeps its own larger scale so it still outranks the section
   headings it now shares a class with. */
.hero-title.section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-wrap: pretty;
}

/* Hero: 95vh held about 330px of content, so the first fold was mostly empty. */
.hero {
    min-height: 70vh;
}

/* The nav already carries the wordmark at the same size a few hundred pixels
   above this one, and two marks of equal weight cancel each other out. */
.hero-brand .hero-logo {
    display: none;
}

/* ---------- What I Bring: ledger ---------- */
.wib-ledger {
    display: flex;
    flex-direction: column;
}

.wib-row {
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    gap: .5rem 2.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    /* Head aligns to the body's first line rather than centring against a
       variable-height paragraph, so the left column reads as an index. */
    align-items: start;
}

/* The shell already draws the group's edges. A leading rule under the top
   edge and a trailing rule above the bottom edge are lines inside a box that
   is already a box, with dead space either side of them. The separators
   between rows are the only ones doing work. */
.wib-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.wib-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

/* The title sits on the icon's optical centre rather than on the text
   baseline, so the left column reads as one unit. */
.wib-row-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    /* Optical nudge so the icon's centre sits on the first body line. */
    margin-top: -.35rem;
}

.wib-row-head .wib-title {
    margin: 0;
    line-height: 1.25;
}

.wib-row-body > * + * {
    margin-top: .75rem;
}

.wib-row-body .wib-text {
    margin: 0;
    max-width: 68ch;
    color: #fff;
}

.wib-row-body .wib-detail {
    margin: 0;
    max-width: 68ch;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .wib-row {
        grid-template-columns: 1fr;
        gap: .65rem;
    }
}

/* ============================================================
   EXPERIENCE — index and detail panel
   Every role stays on the page; the index carries the career at a
   glance, the panel carries one engagement in full.
   ============================================================ */

.exp-split {
    display: grid;
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
    gap: 0 2.5rem;
    align-items: start;
}

.exp-index {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    padding-right: 1.5rem;
}

.exp-tab {
    display: flex;
    align-items: center;
    /* A global button rule centres flex content; the index reads as a ragged
       mess without this because short company names drift right. */
    justify-content: flex-start;
    gap: .75rem;
    width: 100%;
    min-height: 44px;
    padding: .7rem .6rem .7rem 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
    text-align: left;
    cursor: pointer;
    color: var(--text-subtle);
    transition: color .2s cubic-bezier(.16, 1, .3, 1),
                background-color .2s cubic-bezier(.16, 1, .3, 1);
}

.exp-tab:last-child {
    border-bottom: 0;
}

.exp-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, .02);
}

.exp-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.exp-tab .logo-square {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    opacity: .55;
    transition: opacity .2s cubic-bezier(.16, 1, .3, 1);
}

.exp-tab.is-current .logo-square,
.exp-tab:hover .logo-square {
    opacity: 1;
}

.exp-tab-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.exp-tab-company {
    font-weight: 600;
    font-size: .93rem;
    line-height: 1.25;
    color: inherit;
}

.exp-tab-meta {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .02em;
    color: var(--text-dim);
    margin-top: .12rem;
}

.exp-tab.is-current {
    color: #fff;
}

.exp-tab.is-current .exp-tab-meta {
    color: var(--accent);
}

/* Panel */
.exp-panel:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
}

.exp-panel-company {
    margin: 0 0 .2rem;
    color: #fff;
    font-weight: 700;
}

.exp-panel-meta {
    color: var(--text-dim);
    font-size: .9rem;
    margin: 0 0 1.1rem;
}

.exp-panel-meta .sep {
    margin: 0 .5rem;
    opacity: .5;
}

.exp-panel-domain {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.exp-panel-bullets {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-subtle);
    font-size: .96rem;
    line-height: 1.7;
    max-width: 68ch;
}

.exp-panel-bullets li {
    margin-bottom: .35rem;
}

.exp-panel-chips {
    margin-top: 1.1rem;
}

.exp-panel-link {
    margin: 1.3rem 0 0;
    font-size: .88rem;
}

.exp-panel-link a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 44px;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(25, 194, 154, .35);
}

.exp-panel-link a:hover {
    border-bottom-color: var(--accent);
}

/* Narrow screens: the index becomes a horizontal strip above the panel.
   Same markup, same tab semantics, no second implementation to keep in sync. */
@media (max-width: 900px) {
    .exp-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .exp-index {
        flex-direction: row;
        overflow-x: auto;
        gap: .5rem;
        border-right: 0;
        border-bottom: 1px solid var(--glass-border);
        padding: 0 0 1rem;
        scrollbar-width: thin;
    }

    .exp-tab {
        flex: 0 0 auto;
        width: auto;
        border-bottom: 0;
        border: 1px solid var(--glass-border);
        border-radius: var(--r-card);
        padding: .55rem .8rem .55rem .55rem;
    }

    .exp-tab.is-current {
        border-color: rgba(25, 194, 154, .4);
        background: rgba(25, 194, 154, .06);
    }
}

/* ---------- Error / not-found surfaces ----------
   Both pages reuse .blog-article so they inherit the site's type system
   instead of falling back to Bootstrap defaults. */
.error-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.75rem 0 0;
}

.error-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.error-links a:hover,
.error-links a:focus-visible {
    text-decoration: underline;
}

.error-ref {
    margin-top: 2rem;
    font-size: 0.85rem;
}

.error-ref code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--text-dim);
}


/* ---------- Display face ----------
   Headlines get Archivo; body copy stays on IBM Plex Sans. This is the
   contrast axis the site was missing when Inter did every job. */
.section-title,
.hero-title,
.blog-article-title,
.blog-card-title,
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3 {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
}

.blog-eyebrow,
.contact-eyebrow {
    font-family: var(--font-mono);
}

/* ---------- Programmatic focus ----------
   <FocusOnNavigate Selector="h1" /> moves focus to the page heading on every
   navigation, which paints a focus ring around the h1. A tabindex="-1"
   element is never reachable by Tab, so a ring on it signals nothing to a
   keyboard user; suppress it in both focus states. Real interactive controls
   keep their :focus-visible styling untouched. */
h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible,
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
    outline: none;
}
