/* bob.xem.yt — global design system (auto-extracted + shared components) */
:root {
            --bg: #0a0c10;
            --bg-elev: #12161c;
            --ink: #eef1f4;
            --muted: #9aa3ad;
            --line: rgba(238, 241, 244, 0.1);
            --blue: #1a6dff;
            --lime: #3dff9a;
            --warm: #ffb454;
            --danger: #ff5a6a;
            --radius: 18px;
            --max: 1120px;
            color-scheme: dark;
        }
        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            margin: 0;
            min-height: 100%;
            color: var(--ink);
            font-family: Figtree, system-ui, sans-serif;
            background:
                radial-gradient(900px 480px at 85% -10%, rgba(26, 109, 255, 0.18), transparent 55%),
                radial-gradient(700px 420px at 0% 20%, rgba(61, 255, 154, 0.08), transparent 50%),
                linear-gradient(180deg, #0a0c10 0%, #0d1117 45%, #090b0f 100%);
            background-attachment: fixed;
        }
        a { color: var(--lime); text-decoration: none; }
        a:hover { color: #fff; }
        img { max-width: 100%; display: block; }
        code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

        /* Article banner */
        .bob-article-banner {
            display: none;
            background: #10151d;
            color: #fff;
            border-bottom: 1px solid var(--line);
            text-decoration: none;
            position: relative;
            z-index: 1200;
        }
        .bob-article-banner.is-visible { display: block; }
        .bob-article-banner:hover { background: #151b25; color: #fff; }
        .bob-article-banner__inner {
            max-width: var(--max); margin: 0 auto;
            padding: .75rem 1.15rem;
            display: flex; align-items: center; gap: .9rem;
        }
        .bob-article-banner__tag {
            flex-shrink: 0;
            background: var(--blue);
            color: #fff; font-size: .68rem; font-weight: 800;
            letter-spacing: .06em; text-transform: uppercase;
            padding: .32rem .55rem; border-radius: 6px;
        }
        .bob-article-banner__body { min-width: 0; flex: 1; }
        .bob-article-banner__title {
            display: block; font-weight: 700; font-size: .95rem;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff;
        }
        .bob-article-banner__meta {
            display: block; font-size: .78rem; color: var(--muted);
            margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .bob-article-banner__cta { flex-shrink: 0; font-weight: 700; font-size: .85rem; color: var(--lime); }
        @media (max-width: 720px) {
            .bob-article-banner__cta, .bob-article-banner__meta { display: none; }
        }

        /* Lang switch */
        .nav-lang { margin-left: .35rem; }
        .nav-lang .bob-lang-btn { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.04); }
        .nav-lang .bob-lang-btn.is-active { color: #fff; }
        /* Nav */
        .topnav {
            position: sticky; top: 0; z-index: 1100;
            backdrop-filter: blur(16px) saturate(1.2);
            background: rgba(10, 12, 16, 0.82);
            border-bottom: 1px solid var(--line);
        }
        .topnav-inner {
            max-width: var(--max); margin: 0 auto;
            display: flex; align-items: center; gap: 1rem;
            padding: .7rem 1.15rem;
        }
        .brand {
            display: flex; align-items: center; gap: .75rem;
            min-width: max-content; color: #fff;
        }
        .brand img {
            width: 40px; height: 40px; border-radius: 10px;
            border: 1px solid var(--line);
            object-fit: cover; background: #1a1f28;
        }
        .brand strong {
            display: block; font-family: Syne, sans-serif;
            font-size: 1.05rem; letter-spacing: -.01em;
        }
        .brand span { display: block; color: var(--muted); font-size: .74rem; }
        .nav-toggle {
            display: none; margin-left: auto;
            background: var(--blue); color: #fff; border: 0; border-radius: 999px;
            padding: .5rem .95rem; font-weight: 700; cursor: pointer; font-family: inherit;
        }
        .nav-menu {
            display: flex; align-items: center; gap: .2rem;
            list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap;
        }
        .nav-item { position: relative; }
        .nav-link, .nav-btn {
            display: inline-flex; align-items: center; gap: .3rem;
            padding: .5rem .75rem; border-radius: 999px;
            color: var(--ink); font-weight: 600; font-size: .9rem;
            border: 1px solid transparent; background: transparent; cursor: pointer;
            font-family: inherit;
        }
        .nav-link:hover, .nav-btn:hover, .nav-item.open > .nav-btn, .nav-link.active {
            background: rgba(255,255,255,0.05);
            border-color: var(--line);
            color: #fff;
        }
        .nav-btn::after { content: "▾"; font-size: .68rem; opacity: .7; }
        .dropdown {
            display: none; position: absolute; top: calc(100% + .4rem); left: 0;
            min-width: 236px; max-height: min(70vh, 520px); overflow-y: auto; padding: .45rem;
            background: #12161c; border: 1px solid var(--line);
            border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.45);
        }
        .nav-item.open > .dropdown { display: grid; gap: .12rem; }
        .dropdown a {
            display: flex; align-items: center; gap: .5rem;
            padding: .5rem .65rem; border-radius: 10px;
            color: var(--ink); font-weight: 600; font-size: .9rem;
        }
        .dropdown a:hover { background: rgba(26,109,255,.15); color: #fff; }
        .nav-cta {
            background: var(--lime) !important;
            border: 0 !important; color: #062214 !important;
            font-weight: 800 !important;
        }
        .nav-cta:hover { filter: brightness(1.06); color: #062214 !important; }
        @media (max-width: 980px) {
            .nav-toggle { display: inline-flex; }
            .nav-menu {
                display: none; width: 100%;
                flex-direction: column; align-items: stretch;
                padding: .35rem 0 .7rem;
            }
            .topnav.open .nav-menu { display: flex; }
            .topnav-inner { flex-wrap: wrap; }
            .dropdown { position: static; min-width: 0; margin-top: .3rem; box-shadow: none; }
        }

        /* Hero — one composition */
        .hero {
            position: relative;
            min-height: min(88vh, 760px);
            display: grid;
            align-items: end;
            overflow: hidden;
            border-bottom: 1px solid var(--line);
        }
        .hero-bg {
            position: absolute; inset: 0;
            background:
                linear-gradient(90deg, rgba(10,12,16,.94) 0%, rgba(10,12,16,.72) 42%, rgba(10,12,16,.35) 70%, rgba(10,12,16,.55) 100%),
                url('https://bob.kirbytrim.buzz/stockage/cdn/bob.png') right 12% center / auto 92% no-repeat,
                radial-gradient(600px 400px at 70% 40%, rgba(26,109,255,.25), transparent 70%);
        }
        @media (max-width: 760px) {
            .hero { min-height: 70vh; }
            .hero-bg {
                background:
                    linear-gradient(180deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,.92) 58%, #0a0c10 100%),
                    url('https://bob.kirbytrim.buzz/stockage/cdn/bob.png') center 18% / auto 58% no-repeat,
                    #0a0c10;
            }
        }
        .hero-inner {
            position: relative;
            z-index: 1;
            max-width: var(--max);
            width: 100%;
            margin: 0 auto;
            padding: 4.5rem 1.15rem 3.2rem;
            animation: rise .7s ease both;
        }
        @keyframes rise {
            from { opacity: 0; transform: translateY(18px); }
            to { opacity: 1; transform: none; }
        }
        .hero-kicker {
            display: inline-flex; align-items: center; gap: .55rem;
            margin-bottom: 1rem;
            color: var(--muted);
            font-size: .82rem; font-weight: 700;
            letter-spacing: .08em; text-transform: uppercase;
        }
        .hero-kicker .dot {
            width: 8px; height: 8px; border-radius: 50%;
            background: var(--lime); box-shadow: 0 0 0 4px rgba(61,255,154,.15);
        }
        .hero h1 {
            margin: 0 0 .85rem;
            max-width: 14ch;
            font-family: Syne, sans-serif;
            font-weight: 800;
            font-size: clamp(2.6rem, 7vw, 4.6rem);
            line-height: .95;
            letter-spacing: -.03em;
            color: #fff;
        }
        .hero-lead {
            margin: 0 0 1.6rem;
            max-width: 34rem;
            color: var(--muted);
            font-size: 1.08rem;
            line-height: 1.55;
        }
        .hero-lead strong { color: var(--lime); font-weight: 700; }
        .hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
            padding: .78rem 1.15rem; border-radius: 999px;
            font-weight: 700; font-size: .95rem; font-family: inherit;
            border: 1px solid transparent; cursor: pointer;
            transition: transform .15s ease, background .15s ease, border-color .15s ease;
        }
        .btn:hover { transform: translateY(-2px); }
        .btn-primary { background: var(--blue); color: #fff; }
        .btn-primary:hover { background: #3a82ff; color: #fff; }
        .btn-os { background: var(--lime); color: #062214; }
        .btn-os:hover { filter: brightness(1.05); color: #062214; }
        .btn-secondary {
            background: transparent; color: #fff;
            border-color: var(--line);
        }
        .btn-secondary:hover { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.04); }

        /* Status strip under hero */
        .status-strip {
            max-width: var(--max); margin: 0 auto;
            padding: 1rem 1.15rem 0;
            display: flex; flex-wrap: wrap; gap: .7rem 1.2rem;
            align-items: center;
            animation: rise .8s ease .1s both;
        }
        .bob-status {
            display: inline-flex; align-items: center; gap: .55rem;
            padding: .45rem .8rem;
            background: var(--bg-elev);
            border: 1px solid var(--line);
            border-radius: 999px;
            font-size: .88rem; font-weight: 600; color: var(--ink);
        }
        .bob-dot {
            width: 9px; height: 9px; border-radius: 50%;
            background: #6b7280; flex-shrink: 0;
        }
        .bob-dot.online { background: #3dff9a; }
        .bob-dot.idle { background: #ffb454; }
        .bob-dot.dnd { background: #ff5a6a; }
        .bob-dot.offline, .bob-dot.invisible { background: #6b7280; }
        .bob-dot.pulse { animation: pulse 1.8s ease infinite; }
        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(61,255,154,.45); }
            50% { box-shadow: 0 0 0 7px rgba(61,255,154,0); }
        }
        .status-note { color: var(--muted); font-size: .88rem; }

        /* BobOS featured */
        .bobos-featured {
            max-width: var(--max); margin: 0 auto;
            padding: 2.6rem 1.15rem 1.2rem;
        }
        .bobos-shell {
            border: 1px solid var(--line);
            border-radius: 24px;
            overflow: hidden;
            background:
                linear-gradient(135deg, rgba(61,255,154,.08), transparent 45%),
                var(--bg-elev);
            animation: rise .75s ease .15s both;
        }
        .bobos-grid {
            display: grid;
            grid-template-columns: 1.15fr .85fr;
            gap: 0;
        }
        @media (max-width: 900px) { .bobos-grid { grid-template-columns: 1fr; } }
        .bobos-copy { padding: 1.7rem 1.6rem 1.8rem; }
        .eyebrow {
            display: inline-block; margin-bottom: .85rem;
            padding: .22rem .65rem; border-radius: 6px;
            background: rgba(26,109,255,.15); color: #8eb6ff;
            font-size: .72rem; font-weight: 800; letter-spacing: .05em;
            text-transform: uppercase;
        }
        .eyebrow-green {
            background: rgba(61,255,154,.12); color: var(--lime);
        }
        .bobos-copy h2 {
            margin: 0 0 .75rem;
            font-family: Syne, sans-serif;
            font-size: clamp(1.55rem, 3vw, 2.1rem);
            letter-spacing: -.02em; color: #fff; line-height: 1.15;
        }
        .bobos-copy h2 span { color: var(--lime); }
        .bobos-copy > p {
            margin: 0 0 1rem; color: var(--muted); line-height: 1.55; max-width: 40rem;
        }
        .bobos-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.15rem; }
        .bobos-badges span {
            padding: .28rem .6rem; border-radius: 999px;
            border: 1px solid var(--line); color: var(--ink);
            font-size: .78rem; font-weight: 600;
        }
        .bobos-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.2rem; }
        .specs {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem;
            margin-bottom: 1rem;
        }
        @media (max-width: 700px) { .specs { grid-template-columns: 1fr 1fr; } }
        .spec {
            background: rgba(0,0,0,.22);
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: .7rem .8rem;
        }
        .spec .k {
            display: block; font-size: .68rem; font-weight: 800;
            letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
            margin-bottom: .25rem;
        }
        .spec .v { display: block; color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.3; }
        .spec small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; margin-top: .15rem; }
        .bobos-disclaimer {
            margin: 0; color: #aab2bb; font-size: .82rem; line-height: 1.5;
        }
        .bobos-shot {
            min-height: 280px;
            background: #080a0e;
            border-left: 1px solid var(--line);
            display: grid; place-items: center;
            padding: 1rem;
        }
        @media (max-width: 900px) { .bobos-shot { border-left: 0; border-top: 1px solid var(--line); } }
        .bobos-shot figure { margin: 0; width: 100%; }
        .bobos-shot img {
            width: 100%; border-radius: 12px;
            border: 1px solid var(--line);
            aspect-ratio: 16/10; object-fit: cover; background: #111;
        }
        .bobos-shot figcaption {
            margin-top: .55rem; color: var(--muted);
            font-size: .78rem; font-family: ui-monospace, monospace;
        }

        /* Spotlight */
        .spotlight {
            max-width: var(--max); margin: 0 auto;
            padding: 1.6rem 1.15rem 1.2rem;
            display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem;
        }
        @media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; } }
        .spot {
            display: block;
            padding: 1.2rem 1.2rem 1.25rem;
            min-height: 140px;
            border-radius: var(--radius);
            border: 1px solid var(--line);
            background: var(--bg-elev);
            transition: transform .15s ease, border-color .15s ease;
            color: inherit;
        }
        .spot:hover { transform: translateY(-3px); border-color: rgba(26,109,255,.45); color: #fff; }
        .spot .tag {
            display: inline-block; margin-bottom: .55rem;
            font-size: .7rem; font-weight: 800; letter-spacing: .06em;
            text-transform: uppercase; color: var(--warm);
        }
        .spot h3 {
            margin: 0 0 .4rem;
            font-family: Syne, sans-serif; font-size: 1.15rem; color: #fff;
        }
        .spot p { margin: 0; color: var(--muted); line-height: 1.45; font-size: .94rem; }

        /* Projects */
        .projects {
            max-width: var(--max); margin: 0 auto;
            padding: .8rem 1.15rem 3rem;
        }
        .projects-head {
            display: flex; flex-wrap: wrap; align-items: end;
            justify-content: space-between; gap: .8rem 1.2rem;
            margin-bottom: 1.15rem;
        }
        .projects-head h2 {
            margin: 0;
            font-family: Syne, sans-serif;
            font-size: clamp(1.45rem, 3vw, 2rem);
            color: #fff; letter-spacing: -.02em;
        }
        .projects-head p {
            margin: .35rem 0 0; color: var(--muted); max-width: 34rem; line-height: 1.5;
        }
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: .85rem;
        }
        @media (max-width: 980px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 560px) { .projects-grid { grid-template-columns: 1fr; } }
        .project-card {
            display: flex; flex-direction: column; gap: .65rem;
            background: var(--bg-elev);
            border: 1px solid var(--line);
            border-radius: 16px;
            padding: 1.05rem 1.05rem 1.1rem;
            min-height: 156px;
            transition: transform .15s ease, border-color .15s ease;
            color: var(--ink);
        }
        .project-card:hover {
            transform: translateY(-3px);
            border-color: rgba(61,255,154,.35);
            color: #fff;
        }
        .project-card.featured-mini {
            border-color: rgba(61,255,154,.35);
            background: linear-gradient(160deg, rgba(61,255,154,.08), var(--bg-elev));
        }
        .project-icon {
            width: 44px; height: 44px; border-radius: 12px;
            display: grid; place-items: center;
            font-size: 1.3rem; line-height: 1;
            background: rgba(255,255,255,.04);
            border: 1px solid var(--line);
            flex-shrink: 0;
        }
        .project-card h3 {
            margin: 0;
            font-family: Syne, sans-serif;
            font-size: 1.02rem; color: #fff;
        }
        .project-card p {
            margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; flex: 1;
        }
        .project-card .go {
            margin-top: .1rem; font-weight: 800; font-size: .82rem; color: var(--lime);
        }
        .project-card:hover .go { color: #fff; }

        /* Footer */
        .footer {
            border-top: 1px solid var(--line);
            background: rgba(0,0,0,.28);
            padding: 2rem 1.15rem 2.3rem;
        }
        .footer-inner {
            max-width: var(--max); margin: 0 auto;
            display: flex; flex-wrap: wrap; gap: 2rem;
            justify-content: space-between;
        }
        .footer ul { list-style: none; margin: 0; padding: 0; line-height: 1.85; columns: 2; column-gap: 2rem; }
        .footer h4 { margin: 0 0 .5rem; color: #fff; font-family: Syne, sans-serif; }

        /* Birthday modal */
        .bob-modal {
            position: fixed; inset: 0; z-index: 2000;
            background: rgba(5,7,10,.82); display: none;
            align-items: center; justify-content: center; padding: 1rem;
        }
        .bob-modal.open { display: flex; }
        .bob-modal__box {
            background: var(--bg-elev); border: 1px solid var(--line);
            border-radius: 18px; max-width: 26rem; width: 100%;
            padding: 1.5rem; position: relative; color: var(--ink);
            box-shadow: 0 24px 60px rgba(0,0,0,.5);
        }
        .bob-modal__box h2 { color: #fff; margin: 0 0 .5rem; font-family: Syne, sans-serif; }
        .bob-modal__close {
            position: absolute; top: .75rem; right: .75rem;
            background: transparent; border: 0; color: #fff;
            font-size: 1.2rem; cursor: pointer;
        }
        .bob-modal__actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
        .bob-cake { font-size: 2.5rem; margin-bottom: .5rem; }
        .bob-avatar.spin { animation: spin .2s linear; }
        @keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

        /* Hidden profile avatar still clickable via CSS? keep in DOM for fart easter egg */
        .sr-avatar {
            position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
        }

/* ===== Bob portal — shared components (global) ===== */
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.1rem; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.12));
  background: var(--bg-elev, #12161c); color: var(--ink, #eef1f4); text-decoration: none;
  font-weight: 600; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.22); }
.btn-primary, .btn.primary {
  background: linear-gradient(135deg, var(--blue, #1a6dff), #5b8cff);
  border-color: transparent; color: #fff;
}
.btn.ghost { background: transparent; }
.badge, .chip, .tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid var(--line, rgba(255,255,255,.1));
  color: var(--muted, #9aa3ad);
}
.card, .panel {
  background: var(--bg-elev, #12161c);
  border: 1px solid var(--line, rgba(255,255,255,.1));
  border-radius: var(--radius, 18px);
  padding: 1.1rem 1.25rem;
}
.hero { padding: 3.5rem 0 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--muted, #9aa3ad); font-weight: 700; }
.brand { font-family: Syne, Figtree, system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.lead, .subtitle, .sub { color: var(--muted, #9aa3ad); line-height: 1.55; }
.grid { display: grid; gap: 1rem; }
.meta { color: var(--muted, #9aa3ad); font-size: .9rem; }
.note, .hint, .disclaimer { color: var(--muted, #9aa3ad); font-size: .88rem; }
.ok { color: var(--lime, #3dff9a); }
.warn { color: var(--warm, #ffb454); }
.err { color: var(--danger, #ff5a6a); }
a { color: var(--blue, #1a6dff); }
