/* Base theme, shared UI, homepage, directories, and Venomous styles.
   Modules load in this order; see the root README for the stylesheet map. */

:root {
  --bg: #07090d;
  --bg-2: #0a0d13;
  --surface: rgba(20, 25, 35, .62);
  --surface-strong: rgba(18, 23, 32, .86);
  --surface-soft: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f4f7f5;
  --muted: #929b96;
  --faint: #626a66;
  --blue: #5a9bf2;
  --blue-soft: rgba(90, 155, 242, .15);
  --green: #8cf77a;
  --green-soft: rgba(140, 247, 122, .14);
  --violet: #a78bfa;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1240px;
  --pad: clamp(1.15rem, 4vw, 3.75rem);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--text); background: linear-gradient(180deg, #07090d 0%, #080b10 58%, #07090d 100%); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { color: inherit; }
svg { display: block; width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { color: #061006; background: var(--green); }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 1000; padding: .75rem 1rem; color: var(--bg); background: var(--green); border-radius: 10px; font-weight: 750; transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: none; }
.shell { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--pad); }
.site-glow { position: fixed; z-index: -1; width: min(70vw, 900px); aspect-ratio: 1; top: -35vw; right: -20vw; border-radius: 50%; filter: blur(80px); opacity: .18; pointer-events: none; }
.site-glow-blue { background: radial-gradient(circle, rgba(74, 137, 231, .65), transparent 66%); }
.site-glow-green { background: radial-gradient(circle, rgba(93, 223, 89, .5), transparent 66%); }

.glass-card { background: linear-gradient(145deg, rgba(28, 35, 47, .72), rgba(14, 18, 25, .66)); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .04); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }

.topbar { position: fixed; inset: 0 0 auto; z-index: 100; height: 78px; border-bottom: 1px solid transparent; transition: height .2s ease, background .2s ease, border-color .2s ease; }
.topbar.scrolled { height: 68px; background: rgba(7, 9, 13, .74); border-color: var(--line); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.topbar-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; min-width: 0; gap: .75rem; align-items: center; }
.brand > img { width: 40px; height: 40px; flex: 0 0 auto; object-fit: cover; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.brand > span { display: flex; min-width: 0; flex-direction: column; gap: .25rem; }
.brand b { overflow: hidden; font-size: .78rem; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.brand small { color: #747d78; font-family: var(--mono); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase; }
.main-nav { display: flex; gap: .35rem; align-items: center; padding: .3rem; background: rgba(17, 21, 29, .5); border: 1px solid rgba(255,255,255,.055); border-radius: 16px; backdrop-filter: blur(18px); }
.main-nav > a { display: inline-flex; min-height: 38px; padding: .65rem .8rem; gap: .45rem; align-items: center; justify-content: center; color: #9ba39e; border-radius: 11px; font-size: .7rem; font-weight: 650; transition: color .16s ease, background .16s ease; }
.main-nav > a:hover { color: var(--text); background: rgba(255,255,255,.055); }
.main-nav > a.active { color: var(--text); background: rgba(90,155,242,.12); box-shadow: inset 0 0 0 1px rgba(90,155,242,.1); }
.main-nav .project-link { color: #dbe0dc; }
.main-nav .project-link.active { background: rgba(140,247,122,.1); box-shadow: inset 0 0 0 1px rgba(140,247,122,.1); }
.project-link > span { display: grid; width: 25px; height: 25px; place-items: center; overflow: hidden; background: var(--green); border-radius: 7px; }
.project-link img { width: 23px; height: 23px; object-fit: contain; }
.main-nav .icon-link { width: 38px; padding: 0; color: #d9deda; background: rgba(255,255,255,.045); }
.menu-button { display: none; }

.status-pill { display: inline-flex; min-height: 31px; padding: .45rem .65rem; gap: .5rem; align-items: center; color: #a5ada8; background: rgba(20,25,34,.58); border: 1px solid var(--line); border-radius: 999px; font-size: .63rem; }
.status-pill i, .live-label i, .project-status i, .source-chip i, .sync-state i { display: block; width: 6px; height: 6px; flex: 0 0 auto; background: var(--blue); border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.status-pill.green i, .live-label i, .project-status i, .source-chip i, .sync-state i { background: var(--green); }
.status-pill b { color: var(--text); font-family: var(--mono); font-size: .58rem; font-weight: 500; }
.button { display: inline-flex; min-height: 50px; padding: .85rem 1.15rem; gap: .65rem; align-items: center; justify-content: center; border: 1px solid; border-radius: 14px; font-size: .72rem; font-weight: 750; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: .95rem; height: .95rem; }
.button-blue { color: white; background: var(--blue); border-color: var(--blue); box-shadow: 0 10px 30px rgba(90,155,242,.16); }
.button-blue:hover { background: #70aaf5; box-shadow: 0 14px 34px rgba(90,155,242,.22); }
.button-green { color: #061006; background: var(--green); border-color: var(--green); box-shadow: 0 10px 30px rgba(140,247,122,.15); }
.button-green:hover { background: #a3fb94; box-shadow: 0 14px 34px rgba(140,247,122,.2); }
.button-glass { color: #d9dedb; background: rgba(24,29,39,.65); border-color: var(--line); }
.button-glass:hover { border-color: var(--line-strong); background: rgba(31,37,48,.78); }
.action-row { display: flex; margin-top: 2rem; flex-wrap: wrap; gap: .7rem; }

.org-hero { display: grid; min-height: 800px; padding-top: 125px; padding-bottom: 70px; grid-template-columns: minmax(0,1.05fr) minmax(430px,.95fr); gap: clamp(3rem,7vw,7rem); align-items: center; }
.org-hero-copy h1 { max-width: 720px; margin: 1.35rem 0 1.5rem; font-size: clamp(4rem,7.2vw,7rem); line-height: .9; letter-spacing: -.065em; }
.org-hero-copy h1 span { display: block; color: #aeb8b2; font-weight: 520; }
.org-hero-copy > p { max-width: 550px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.org-profile { padding: 1rem; overflow: hidden; border-radius: var(--radius-xl); }
.profile-topline, .visual-topline { display: flex; padding: .2rem .25rem 1rem; align-items: center; justify-content: space-between; color: #69716c; font-family: var(--mono); font-size: .5rem; letter-spacing: .1em; }
.live-label { display: inline-flex; gap: .4rem; align-items: center; }
.profile-identity { display: grid; min-height: 260px; padding: 1.5rem; grid-template-columns: 136px 1fr; gap: 1.5rem; align-items: center; background: linear-gradient(145deg, rgba(59,112,188,.14), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; }
.profile-identity > img { width: 136px; height: 136px; object-fit: cover; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 18px 50px rgba(0,0,0,.36); }
.profile-identity small { color: #6f7872; font-family: var(--mono); font-size: .54rem; }
.profile-identity h2 { margin: .55rem 0 .8rem; font-size: clamp(1.4rem,2.2vw,2rem); line-height: 1.05; letter-spacing: -.04em; }
.profile-identity a { display: inline-flex; gap: .4rem; align-items: center; color: #8f9993; font-size: .6rem; }
.profile-identity a svg { width: .7rem; height: .7rem; }
.profile-stats { display: grid; margin-top: .65rem; grid-template-columns: repeat(3,1fr); gap: .65rem; }
.profile-stats > div { display: grid; min-height: 96px; padding: .9rem; grid-template-columns: auto 1fr; gap: .35rem .6rem; align-content: center; background: rgba(255,255,255,.028); border: 1px solid rgba(255,255,255,.055); border-radius: 16px; }
.profile-stats svg { grid-row: 1 / 3; width: .95rem; height: .95rem; align-self: center; color: var(--blue); }
.profile-stats span { color: #737c77; font-size: .57rem; }
.profile-stats b { font-size: .9rem; }
.profile-foot { display: flex; min-height: 48px; margin-top: .65rem; padding: 0 .85rem; align-items: center; justify-content: space-between; color: #838c87; background: rgba(255,255,255,.02); border-radius: 13px; font-size: .62rem; }
.profile-foot:hover { color: var(--text); }
.profile-foot svg { width: .75rem; height: .75rem; }

.metric-dock { display: grid; padding-bottom: clamp(5rem,8vw,7rem); grid-template-columns: repeat(3,1fr); gap: .8rem; }
.metric-dock > div { display: flex; min-height: 96px; padding: 1rem 1.1rem; gap: .9rem; align-items: center; border-radius: var(--radius-md); }
.metric-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; }
.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.violet { color: var(--violet); background: rgba(167,139,250,.14); }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-icon svg { width: 1.1rem; height: 1.1rem; }
.metric-dock > div > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: .35rem; }
.metric-dock small { color: #68716c; font-family: var(--mono); font-size: .49rem; letter-spacing: .08em; }
.metric-dock b { overflow: hidden; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }

.content-section { padding-top: clamp(5rem,8vw,7.5rem); padding-bottom: clamp(5rem,8vw,7.5rem); scroll-margin-top: 70px; }
.section-heading { display: flex; margin-bottom: clamp(2.5rem,4vw,3.5rem); gap: 3rem; align-items: end; justify-content: space-between; }
.eyebrow { display: block; margin-bottom: .75rem; color: var(--blue); font-family: var(--mono); font-size: .58rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow.green { color: var(--green); }
.section-heading h2, .install-panel h2 { margin: 0; font-size: clamp(2.7rem,5vw,4.7rem); line-height: .95; letter-spacing: -.055em; }
.section-heading > p { max-width: 360px; margin: 0 0 .25rem; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.project-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 1rem; }
.project-card { display: flex; min-height: 340px; padding: 1.6rem; flex-direction: column; border-radius: var(--radius-lg); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(90,155,242,.28); background: linear-gradient(145deg,rgba(35,43,57,.82),rgba(17,21,29,.76)); }
.project-card.featured:hover { border-color: rgba(140,247,122,.28); }
.project-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.project-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 18px; }
.project-icon.venom { overflow: hidden; background: var(--green); box-shadow: 0 10px 30px rgba(140,247,122,.13); }
.project-icon.venom img { width: 59px; height: 59px; object-fit: contain; }
.project-icon.web { color: var(--blue); background: var(--blue-soft); }
.project-icon svg { width: 1.35rem; height: 1.35rem; }
.project-card-top > .external { color: #68716c; }
.project-status { display: inline-flex; padding: .45rem .6rem; gap: .42rem; align-items: center; color: #9aa49e; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 999px; font-size: .54rem; }
.card-label { color: #6d7670; font-family: var(--mono); font-size: .52rem; letter-spacing: .09em; text-transform: uppercase; }
.project-card > div:nth-child(2) { margin-top: auto; }
.project-card h3 { margin: .7rem 0 .65rem; overflow-wrap: anywhere; font-size: clamp(1.35rem,2.5vw,2rem); letter-spacing: -.04em; }
.project-card p { max-width: 490px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.project-card footer { display: flex; margin-top: 2.2rem; padding-top: 1rem; align-items: center; justify-content: space-between; color: #737c77; border-top: 1px solid rgba(255,255,255,.055); font-size: .58rem; }
.project-card footer span { display: inline-flex; gap: .45rem; align-items: center; }
.project-card footer svg { width: .75rem; height: .75rem; transition: transform .16s ease; }
.project-card:hover footer span:last-child svg { transform: translateX(3px); }
.language-dot { width: 6px; height: 6px; border-radius: 50%; }
.language-dot.java { background: #b07219; }
.language-dot.css { background: #563d7c; }
.language-dot.html { background: #e34c26; }
.project-icon.privacy img, .project-icon.champion img { width: 59px; height: 59px; object-fit: contain; }
.people-section, .activity-section, .module-section { background: rgba(12,15,21,.54); border-block: 1px solid rgba(255,255,255,.045); }
.subpage-main { min-height: calc(100svh - 155px); padding: 150px 0 clamp(6rem,10vw,9rem); }
.subpage-heading { max-width: 790px; margin-bottom: clamp(3rem,6vw,5rem); }
.subpage-heading .breadcrumbs { margin-bottom: 2rem; }
.subpage-heading h1 { margin: 0; font-size: clamp(4.5rem,9vw,8rem); line-height: .88; letter-spacing: -.07em; }
.subpage-heading > p { max-width: 650px; margin: 1.4rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.75; }
.directory-status { display: flex; margin-top: 2rem; flex-wrap: wrap; gap: .65rem; align-items: center; }
.directory-status .status-pill i { background: var(--blue); }
.directory-grid { min-height: 340px; }
.people-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.person-card { display: grid; min-height: 190px; padding: 1.5rem; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; border-radius: var(--radius-lg); transition: transform .18s ease, border-color .18s ease; }
.person-card:hover { transform: translateY(-3px); border-color: rgba(90,155,242,.26); }
.person-card > img { width: 84px; height: 84px; object-fit: cover; border: 3px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.person-card > div > span { color: var(--blue); font-family: var(--mono); font-size: .5rem; letter-spacing: .09em; text-transform: uppercase; }
.person-card h3 { margin: .5rem 0 .35rem; font-size: 1.3rem; letter-spacing: -.03em; }
.person-card p { margin: 0; color: #727b76; font-size: .68rem; }
.person-card > svg { color: #626b66; }

/* Venomous project */
.venom-hero { display: grid; min-height: 850px; padding-top: 130px; padding-bottom: 70px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2.5rem,4vw,4rem); align-items: center; }
.venom-copy, .venom-visual { min-width: 0; }
.breadcrumbs { display: flex; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; color: #657069; font-family: var(--mono); font-size: .54rem; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs b { color: #9ca69f; font-weight: 500; }
.venom-copy h1 { max-width: 100%; margin: 1.2rem 0 .6rem; font-size: clamp(4.6rem,6.5vw,6.75rem); line-height: .88; letter-spacing: -.075em; overflow-wrap: anywhere; }
.venom-tagline { margin: 0; color: #dce2dd; font-size: clamp(1.45rem,2.4vw,2.2rem); font-weight: 550; line-height: 1.18; letter-spacing: -.04em; }
.venom-description { max-width: 540px; margin: 1.4rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.requirement-row { display: flex; margin-top: 1.7rem; flex-wrap: wrap; gap: .5rem 1.25rem; color: #69726d; font-family: var(--mono); font-size: .57rem; }
.requirement-row span { position: relative; }
.requirement-row span:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -.7rem; width: 3px; height: 3px; background: #424a45; border-radius: 50%; }
.requirement-row b { color: #99a29c; font-weight: 500; }
.venom-visual { position: relative; isolation: isolate; min-height: 590px; overflow: hidden; border-radius: var(--radius-xl); }
.visual-topline { position: absolute; inset: 1.25rem 1.3rem auto; z-index: 3; padding: 0; }
.venom-logo-stage { position: absolute; top: 47%; left: 50%; z-index: 2; display: grid; width: min(72%,390px); aspect-ratio: 1; place-items: center; transform: translate(-50%,-50%); }
.venom-logo-stage::before { content: ""; position: absolute; inset: 11%; z-index: -1; background: url("../assets/venomous-icon.png") center/contain no-repeat; opacity: .42; filter: brightness(0) saturate(100%) invert(78%) sepia(52%) saturate(600%) hue-rotate(57deg) brightness(105%); transform: translate(15px,18px); }
.venom-logo-stage img { width: 78%; filter: invert(1) grayscale(1) brightness(.96) contrast(.92) drop-shadow(0 24px 34px rgba(0,0,0,.48)); }
.visual-metrics { position: absolute; inset: auto 1rem 1rem; z-index: 3; display: grid; overflow: hidden; grid-template-columns: repeat(3,1fr); background: rgba(7,10,9,.7); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; backdrop-filter: blur(18px); }
.visual-metrics > div { display: flex; min-height: 82px; padding: .9rem 1.05rem; flex-direction: column; gap: .45rem; justify-content: center; border-right: 1px solid rgba(255,255,255,.07); }
.visual-metrics > div:last-child { border: 0; }
.visual-metrics small { color: #5f6962; font-family: var(--mono); font-size: .47rem; letter-spacing: .1em; }
.visual-metrics b { font-size: .78rem; }
.venom-metrics { padding-bottom: clamp(5rem,8vw,7rem); }

.capability-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
.capability-card { position: relative; display: flex; min-height: 225px; padding: 1.4rem; gap: 1rem; border-radius: var(--radius-lg); transition: transform .18s ease,border-color .18s ease; }
.capability-card:hover { transform: translateY(-3px); border-color: rgba(140,247,122,.22); }
.capability-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 13px; }
.capability-icon svg { width: 1.1rem; height: 1.1rem; }
.capability-card h3 { margin: .25rem 0 .65rem; font-size: 1rem; }
.capability-card p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.65; }
.capability-card > b { position: absolute; right: 1.25rem; bottom: 1.1rem; color: #555f58; font-family: var(--mono); font-size: .55rem; font-weight: 500; }
.source-chip { display: inline-flex; padding: .55rem .7rem; gap: .5rem; align-items: center; color: #79837c; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: .52rem; }
.module-browser { padding: 1rem; border-radius: var(--radius-lg); }
.module-toolbar { display: flex; padding-bottom: 1rem; gap: 1rem; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.06); }
.module-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.module-filters button { min-height: 36px; padding: .55rem .7rem; color: #858f88; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; cursor: pointer; font-size: .62rem; font-weight: 650; transition: color .15s ease,background .15s ease,border-color .15s ease; }
.module-filters button b { margin-left: .3rem; color: #59635c; font-family: var(--mono); font-size: .5rem; font-weight: 500; }
.module-filters button:hover { color: var(--text); }
.module-filters button.active { color: #071006; background: var(--green); border-color: var(--green); }
.module-filters button.active b { color: #2d5729; }
.module-search { display: flex; width: 200px; height: 38px; padding: 0 .75rem; flex: 0 0 auto; gap: .5rem; align-items: center; background: rgba(8,11,14,.55); border: 1px solid var(--line); border-radius: 10px; }
.module-search:focus-within { border-color: rgba(140,247,122,.38); }
.module-search svg { width: .85rem; height: .85rem; color: #5f6962; }
.module-search input { width: 100%; min-width: 0; padding: 0; color: var(--text); background: transparent; border: 0; outline: 0; font-size: .66rem; }
.module-search input::placeholder { color: #505951; }
.module-result-head { display: flex; min-height: 50px; padding: 1rem .25rem 0; align-items: center; justify-content: space-between; color: #68736b; font-family: var(--mono); font-size: .51rem; letter-spacing: .06em; text-transform: uppercase; }
.module-result-head b { font-weight: 500; }
.module-grid { display: grid; padding-top: .8rem; grid-template-columns: repeat(4,1fr); gap: .5rem; }
.module-grid > span { display: flex; min-width: 0; min-height: 62px; padding: .75rem .8rem; flex-direction: column; gap: .4rem; justify-content: center; background: rgba(255,255,255,.027); border: 1px solid rgba(255,255,255,.052); border-radius: 11px; font-family: var(--mono); font-size: .65rem; animation: module-in .24s both; transition: border-color .15s ease,background .15s ease; }
.module-grid > span:hover { background: rgba(255,255,255,.04); border-color: rgba(140,247,122,.2); }
.module-grid small { color: #5e6861; font-family: var(--sans); font-size: .5rem; text-transform: capitalize; }
@keyframes module-in { from { opacity: 0; transform: translateY(5px); } }
.empty-state { padding: 7rem 1rem; color: #68726b; text-align: center; font-size: .75rem; }
.show-all { display: flex; width: 100%; margin-top: .8rem; padding: .8rem; gap: .5rem; align-items: center; justify-content: center; color: #89938c; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.055); border-radius: 11px; cursor: pointer; font-size: .62rem; font-weight: 700; }
.show-all:hover { color: var(--text); border-color: rgba(140,247,122,.2); }
.show-all svg { width: .75rem; height: .75rem; transform: rotate(90deg); }
.show-all[hidden] { display: none; }

.release-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; }
.release-card { position: relative; display: grid; min-height: 230px; padding: 1.5rem; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 1rem; border-radius: var(--radius-lg); }
.release-card.featured { background: linear-gradient(145deg,rgba(61,107,66,.2),rgba(15,20,18,.72)); border-color: rgba(140,247,122,.18); }
.release-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 13px; }
.release-card h3 { margin: .5rem 0; overflow-wrap: anywhere; font-size: 1.45rem; letter-spacing: -.035em; }
.release-card p { margin: 0; color: var(--muted); font-size: .74rem; }
.release-info { display: flex; grid-column: 1 / -1; gap: 1rem; color: #616b64; font-family: var(--mono); font-size: .5rem; }
.release-card > a { position: absolute; right: 1.25rem; bottom: 1.25rem; display: grid; width: 40px; height: 40px; place-items: center; color: #061006; background: var(--green); border-radius: 12px; transition: transform .16s ease; }
.release-card > a:hover { transform: translateY(-2px); }
.release-card > a svg { width: .9rem; height: .9rem; }
.install-panel { display: grid; margin-top: clamp(4rem,7vw,6rem); padding: clamp(1.5rem,3.5vw,3rem); grid-template-columns: .55fr 1.45fr; gap: 3rem; border-radius: var(--radius-xl); }
.install-panel > div { align-self: center; }
.install-panel ol { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(3,1fr); list-style: none; }
.install-panel li { min-height: 230px; padding: 1.1rem; border-left: 1px solid rgba(255,255,255,.065); }
.install-panel li > span { display: grid; width: 40px; height: 40px; margin-bottom: 2.5rem; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 12px; }
.install-panel li > span svg { width: 1rem; height: 1rem; }
.install-panel li b { color: #5e6861; font-family: var(--mono); font-size: .5rem; font-weight: 500; }
.install-panel li h3 { margin: .6rem 0; font-size: .9rem; }
.install-panel li p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.install-panel code { padding: .1rem .25rem; color: #bec7c0; background: rgba(255,255,255,.05); border-radius: 4px; font-family: var(--mono); }
.activity-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: .8rem; }
.activity-card { min-width: 0; padding: 1.15rem; border-radius: var(--radius-lg); }
.activity-card > header { display: flex; min-height: 43px; padding: .1rem .1rem .9rem; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.06); }
.activity-card > header > span { display: inline-flex; gap: .55rem; align-items: center; font-size: .78rem; font-weight: 700; }
.activity-card > header > span svg { width: .9rem; height: .9rem; color: var(--green); }
.activity-card > header > a { display: inline-flex; gap: .35rem; align-items: center; color: #727c75; font-size: .55rem; }
.activity-card > header > a:hover { color: var(--text); }
.activity-card > header > a svg { width: .65rem; height: .65rem; }
.commit-list > a, .contributor-list > a { display: flex; min-height: 72px; padding: .9rem .1rem; gap: .75rem; align-items: center; border-bottom: 1px solid rgba(255,255,255,.045); }
.commit-list > a:last-child, .contributor-list > a:last-child { border: 0; }
.commit-list i { width: 6px; height: 6px; flex: 0 0 auto; background: var(--green); border-radius: 50%; box-shadow: 0 0 9px rgba(140,247,122,.3); }
.commit-list span, .contributor-list span { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: .3rem; }
.commit-list b, .contributor-list b { overflow: hidden; font-size: .68rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.commit-list small, .contributor-list small { color: #626c65; font-size: .54rem; }
.commit-list code { color: #68726b; font-size: .52rem; }
.contributor-list img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.contributor-list strong { color: #69736c; font-family: var(--mono); font-size: .5rem; font-weight: 500; }

.site-footer { border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { display: grid; min-height: 155px; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.footer-inner nav { display: flex; gap: 1.4rem; }
.footer-inner nav a { color: #77817a; font-size: .62rem; font-weight: 600; }
.footer-inner nav a:hover { color: var(--text); }
.sync-state { display: inline-flex; gap: .5rem; align-items: center; justify-self: end; color: #59635c; font-family: var(--mono); font-size: .5rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
body[data-page="venomous"] :focus-visible { outline-color: var(--green); }

@media (max-width: 1040px) {
  .org-hero, .venom-hero { min-height: auto; padding-top: 130px; grid-template-columns: 1fr; }
  .org-hero-copy, .venom-copy { max-width: 760px; }
  .org-profile, .venom-visual { min-height: 590px; }
  .project-grid { grid-template-columns: 1fr; }
  body[data-page="projects"] .project-grid { grid-template-columns: repeat(2,1fr); }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .module-toolbar { align-items: stretch; flex-direction: column; }
  .module-search { width: 100%; }
  .module-grid { grid-template-columns: repeat(3,1fr); }
  .install-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --pad: 1rem; --radius-xl: 22px; --radius-lg: 18px; }
  .topbar { height: 68px; }
  .brand > span { display: none; }
  .main-nav { position: fixed; inset: 0; z-index: -1; display: flex; padding: 6.5rem 1.2rem 2rem; flex-direction: column; align-items: stretch; justify-content: center; gap: .5rem; background: rgba(7,9,13,.96); border: 0; border-radius: 0; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .main-nav > a { min-height: 56px; padding: .9rem 1rem; justify-content: flex-start; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.055); border-radius: 16px; font-size: 1rem; }
  .main-nav .icon-link { width: auto; }
  .menu-button { position: relative; z-index: 2; display: grid; width: 42px; height: 42px; padding: 0; place-items: center; color: var(--text); background: rgba(24,29,39,.72); border: 1px solid var(--line); border-radius: 13px; }
  .menu-button svg { grid-area: 1/1; }
  .menu-close { opacity: 0; }
  .menu-button[aria-expanded="true"] .menu-open { opacity: 0; }
  .menu-button[aria-expanded="true"] .menu-close { opacity: 1; }
  .org-hero, .venom-hero { padding-top: 112px; padding-bottom: 52px; gap: 3.5rem; }
  .org-hero-copy h1 { font-size: clamp(3.65rem,17vw,5.8rem); }
  .venom-copy h1 { font-size: clamp(4.2rem,19vw,6rem); }
  .org-profile, .venom-visual { min-height: 500px; }
  .profile-identity { min-height: 245px; padding: 1.15rem; grid-template-columns: 105px 1fr; gap: 1rem; }
  .profile-identity > img { width: 105px; height: 105px; }
  .profile-identity h2 { font-size: 1.35rem; }
  .profile-identity a { overflow: hidden; max-width: 180px; text-overflow: ellipsis; white-space: nowrap; }
  .metric-dock { grid-template-columns: 1fr; gap: .6rem; }
  .metric-dock > div { min-height: 82px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .section-heading > p { max-width: 100%; }
  .people-grid, .release-grid, .activity-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 190px; }
  .module-filters { flex-wrap: nowrap; margin-inline: -.1rem; padding-bottom: .3rem; overflow-x: auto; scrollbar-width: none; }
  .module-filters::-webkit-scrollbar { display: none; }
  .module-filters button { flex: 0 0 auto; }
  .module-grid { grid-template-columns: repeat(2,1fr); }
  .install-panel ol { grid-template-columns: 1fr; }
  .install-panel li { min-height: 185px; border-top: 1px solid rgba(255,255,255,.06); border-left: 0; }
  .install-panel li > span { margin-bottom: 1.5rem; }
  .footer-inner { padding-block: 3rem; grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner .brand > span { display: flex; }
  .footer-inner nav { flex-wrap: wrap; }
  .sync-state { justify-self: start; }
}

@media (max-width: 460px) {
  .org-hero-copy h1 { font-size: 3.55rem; }
  .action-row { flex-direction: column; }
  .button { width: 100%; }
  .org-profile, .venom-visual { min-height: 445px; }
  .profile-identity { grid-template-columns: 82px 1fr; }
  .profile-identity > img { width: 82px; height: 82px; }
  .profile-identity h2 { font-size: 1.05rem; }
  .profile-stats > div { min-height: 80px; padding: .6rem; }
  .profile-stats svg { display: none; }
  .profile-stats span { font-size: .48rem; }
  .venom-logo-stage { width: 80%; }
  .visual-metrics { inset: auto .65rem .65rem; }
  .visual-metrics > div { min-height: 72px; padding: .65rem; }
  .visual-metrics small { font-size: .42rem; }
  .module-grid { grid-template-columns: 1fr; }
  .person-card { grid-template-columns: auto 1fr; }
  .person-card > img { width: 68px; height: 68px; }
  .person-card > svg, .commit-list code, .contributor-list strong { display: none; }
}

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