/* Shared by the interactive views (A "Orbit", B "System"): section bar + case-study panel. Dark theme. */
:root { --f-display: 'Inter Tight', Inter, sans-serif; --f-mono: 'JetBrains Mono', ui-monospace, monospace; --f-body: Inter, system-ui, sans-serif; --k-work: #ff4b1f; --k-project: #8aa4ff; --k-skills: #e9ff3a; --k-school: #f2f0ea; --k-contact: #f2f0ea; --c-ink: var(--on-deep, #efe8dc); --c-muted: var(--on-deep-muted, #c9c5bc); --c-line: rgba(239,232,220,.16); --c-glass: rgba(19,18,23,.9); }
.cbar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 12; max-width: calc(100vw - 2rem); }
.cbar ul { list-style: none; margin: 0; padding: .3rem; display: flex; gap: .25rem; overflow-x: auto; background: var(--c-glass); border: 1px solid var(--c-line); border-radius: 999px; backdrop-filter: blur(12px); scrollbar-width: none; }
.cbar.inline { position: static; transform: none; max-width: 100%; margin: 1rem 0 0; }
.cbar.inline ul { display: inline-flex; max-width: 100%; }
.cbar button { min-height: 44px; display: inline-flex; align-items: center; gap: .45rem; padding: 0 .9rem; border: 0; border-radius: 999px; background: transparent; color: var(--c-ink); font: 600 .88rem var(--f-body); cursor: pointer; white-space: nowrap; transition: background-color 150ms; }
.cbar button i { width: 8px; height: 8px; border-radius: 50%; background: var(--k, #fff); flex: none; }
.cbar button:hover { background: rgba(236,234,228,.1); }
.cbar button[aria-current='true'] { background: var(--c-ink); color: var(--deep, #131217); }

.cscrim { position: fixed; inset: 0; z-index: 13; background: rgba(19,18,23,.45); opacity: 0; pointer-events: none; transition: opacity 260ms; }
.cscrim.on { opacity: 1; pointer-events: auto; cursor: pointer; }
html.cpanel-open { overflow: hidden; }
/* floating panel: inset from the edges, about 40% of a laptop screen */
.cpanel { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(520px, 40vw); min-width: min(420px, 92vw); z-index: 14; background: #131217; border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 80px -20px rgba(0,0,0,.6); display: flex; flex-direction: column; transform: translateX(calc(100% + 24px)); transition: transform 320ms cubic-bezier(.2,.8,.2,1); color: var(--c-ink); font-family: var(--f-body); }
.cpanel.on { transform: none; }
/* closed: hidden (no shadow strip at the right edge); visibility waits for the slide-out to finish */
.cpanel:not(.on) { visibility: hidden; box-shadow: none; transition: transform 320ms cubic-bezier(.2,.8,.2,1), visibility 0s linear 320ms, box-shadow 0s linear 320ms; }
.cpanel.on { visibility: visible; transition: transform 320ms cubic-bezier(.2,.8,.2,1), visibility 0s; }
.cpanel header { padding: 1rem 1.4rem .9rem; border-bottom: 1px solid var(--c-line); position: relative; }
.cpanel .kind { display: inline-block; border: 1px solid var(--k); color: var(--k); border-radius: 999px; padding: .05rem .55rem; font: 500 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.cpanel h2 { margin: .5rem 0 .2rem; font: 900 clamp(2rem, 4.4vw, 2.9rem)/1 var(--f-display); letter-spacing: -.04em; outline: none; }
.cpanel .sub { margin: 0; color: var(--c-muted); font: 500 .78rem var(--f-mono); letter-spacing: .04em; }
.cpanel .x { position: absolute; top: .9rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line); background: transparent; color: var(--c-ink); font-size: 1rem; cursor: pointer; }
.cpanel .x:hover { border-color: var(--k-work); }
.cpanel .body { overflow-y: auto; padding: 1.1rem 1.4rem 1.4rem; flex: 1; }
.cpanel canvas { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 6px; margin-bottom: 1rem; }
.cpanel p.outcome { font-size: 1.12rem; line-height: 1.5; margin: 0 0 1.1rem; font-weight: 500; }
.cpanel .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; margin: 0 0 1.3rem; }
.cpanel .stats div { border-top: 2px solid var(--k); padding-top: .45rem; }
.cpanel .stats b { display: block; font: 800 clamp(1.5rem, 3vw, 2rem)/1 var(--f-display); letter-spacing: -.03em; }
.cpanel .stats span { display: block; margin-top: .3rem; color: var(--c-muted); font-size: .8rem; line-height: 1.3; }
.cpanel h3 { margin: 1.1rem 0 .45rem; font: 500 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.cpanel ul.did { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.cpanel ul.did li { padding-left: .9rem; border-left: 2px solid var(--k); line-height: 1.5; }
.cpanel p.result { margin: 0; line-height: 1.55; }
.cpanel ul.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.cpanel ul.chips li { border: 1px solid rgba(236,234,228,.3); border-radius: 999px; padding: .2rem .6rem; font: 500 .8rem Inter, sans-serif; }
.cpanel dl.groups { margin: 0; display: grid; gap: .75rem; } .cpanel dl.groups dt { color: var(--c-muted); font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; } .cpanel dl.groups dd { margin: .2rem 0 0; line-height: 1.45; }
.cpanel p.limits { margin: 0; color: var(--c-muted); font-style: italic; line-height: 1.5; }
.cpanel .links { display: flex; flex-wrap: wrap; gap: .5rem; }
.cpanel .links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border: 1px solid rgba(236,234,228,.35); border-radius: 999px; color: var(--c-ink); text-decoration: none; font-weight: 600; }
.cpanel .links a:hover { border-color: var(--k-work); }
.cpanel footer[hidden] { display: none; }
.cpanel footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 1.4rem; border-top: 1px solid var(--c-line); }
.cpanel footer button { min-height: 44px; padding: 0 .9rem; border: 1px solid var(--c-line); border-radius: 999px; background: transparent; color: var(--c-ink); font: 600 .85rem Inter, sans-serif; cursor: pointer; }
.cpanel footer button:hover { border-color: var(--c-ink); }
.cpanel .dots { display: flex; gap: 5px; } .cpanel .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(236,234,228,.25); } .cpanel .dots i.on { background: var(--c-ink); }

@media (max-width: 720px) {
  .cpanel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; min-width: 0; height: auto; max-height: 85vh; border: 0; border-top: 1px solid var(--c-line); border-radius: 16px 16px 0 0; transform: translateY(104%); }
  .cbar { bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .cpanel, .cpanel:not(.on), .cpanel.on { transition: none; } }

/* pipeline evidence shown in the panel */
.cpanel p.what { margin: 0 0 1.1rem; font-size: 1.05rem; line-height: 1.5; }
.cpanel ul.ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cpanel ul.ev li { border-left: 3px solid var(--k2, var(--c-ink)); padding-left: .9rem; }
.cpanel ul.ev b { display: block; font-weight: 700; margin-bottom: .2rem; } .cpanel ul.ev span { display: block; color: var(--c-muted); line-height: 1.5; }
.cpanel ul.ev button { margin-top: .55rem; min-height: 44px; padding: 0 .95rem; border: 1px solid rgba(239,232,220,.35); border-radius: 999px; background: transparent; color: var(--c-ink); font: 600 .85rem var(--f-body); cursor: pointer; }
.cpanel ul.ev button:hover { border-color: var(--c-ink); }

/* case bar under Projects: light style on the cream page */
.cbar.inline ul { background: transparent; border: 1px solid var(--rule, var(--rule, rgba(57,56,55,.18))); backdrop-filter: none; }
.cbar.inline button { color: var(--ink, #393837); }
.cbar.inline button:hover { background: var(--rule-faint, rgba(57,56,55,.08)); }
.cbar.inline button[aria-current='true'] { background: var(--ink, #393837); color: var(--paper, #efe8dc); }
.cbar.inline { --ring: var(--ink, #393837); }
.cbar.inline button i { box-shadow: 0 0 0 1px var(--rule-strong, rgba(57,56,55,.4)); }   /* pale dots (school, contact) stay visible on cream */

/* MPAC group: one button that slides open to the right to show Co-op and Contract */
.cbar li.grp { display: inline-flex; align-items: center; }
.cbar .grp-btn .chev { display: inline-block; margin-left: .1rem; transition: transform 220ms; }
.cbar li.grp.open .grp-btn .chev { transform: rotate(180deg); }
.cbar .grp-sub { display: inline-flex; gap: .25rem; max-width: 0; overflow: hidden; opacity: 0; visibility: hidden;
  transition: max-width 280ms cubic-bezier(.2,.8,.2,1), opacity 200ms, visibility 0s 280ms; }
.cbar li.grp.open .grp-sub { max-width: 16rem; opacity: 1; visibility: visible; transition: max-width 280ms cubic-bezier(.2,.8,.2,1), opacity 200ms; }
.cbar .grp-sub button { padding: 0 .8rem; }
.cbar .grp-btn.has-current { box-shadow: inset 0 0 0 1.5px currentColor; }
@media (prefers-reduced-motion: reduce) { .cbar .grp-sub, .cbar .grp-btn .chev { transition: none; } }
.cbar li.grp { border-radius: 999px; transition: background-color 200ms; }
.cbar li.grp.open { background: rgba(255,75,31,.10); }
.cbar .grp-sub button::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--k-work); margin-right: .4rem; flex: none; }
