/* ==============================================================
   About page (about.html)
   Hero (.abh), Projects (.abp), Support (.abs), Team (.abt), FAQ (.abf).
   Content: about.<locale>.md, authors.json, faqs.<locale>.md (about-page.js).
   ============================================================== */

.about-page { background: #070d0c; }
.about-page .vs-page__main { overflow-x: clip; }

/* shared pieces (same as campaign.css) */
.cl-section { padding: clamp(64px, 8vw, 110px) 0; }
.cl-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 10px; font-family: var(--title-font); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--vs-theme-color2); }
.cl-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.cl-h2 { margin: 0 0 14px; font-family: var(--title-font); font-size: clamp(1.8rem, 1rem + 2.2vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--title-color); }
.cl-lead { max-width: 620px; margin: 0 0 24px; color: var(--text-color2); font-size: 1.02rem; line-height: 1.65; }
.cl-ghost { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; font-family: var(--title-font); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--title-color); border: 1px solid rgba(246, 245, 245, 0.35); background: rgba(10, 19, 17, 0.4); transition: border-color .2s, background-color .2s; }
.cl-ghost:hover { color: #fff; border-color: var(--vs-theme-color2); background: rgba(84, 184, 147, 0.12); }
.cl-link { font-family: var(--title-font); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vs-theme-color2); }
.cl-link i { margin-left: 6px; transition: transform .2s; }
.cl-link:hover i { transform: translateX(4px); }
.cl-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: cl-blink 1.4s steps(2) infinite; }
@keyframes cl-blink { 50% { opacity: .25; } }

.abh__title { margin: 0 0 18px; font-family: var(--title-font); font-size: clamp(2.8rem, 1rem + 5vw, 6rem); font-weight: 800; line-height: .95; letter-spacing: -0.04em; text-transform: uppercase; color: var(--title-color); }
.abh__mission { max-width: 720px; margin: 0 auto 36px; font-size: 1.08rem; line-height: 1.65; color: var(--text-color1); }
.abp { background: #070d0c; }
.abp__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(230px, auto)); gap: 14px; margin-top: 28px; }
.abp__tile { position: relative; display: flex; align-items: flex-end; overflow: hidden; border: 1px solid rgba(246, 245, 245, 0.12); grid-column: span 1; }
.abp__tile--lead { grid-column: span 2; grid-row: span 2; border-color: rgba(84, 184, 147, 0.4); }
.abp__tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.abp__tile:hover > img { transform: scale(1.05); }
.abp__tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 20%, rgba(5, 10, 9, 0.95) 80%); }
.abp__body { position: relative; z-index: 2; padding: 20px 22px; }
.abp__badge { display: inline-block; margin-bottom: 8px; padding: 4px 9px; font-family: var(--title-font); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vs-theme-color2); background: rgba(5, 10, 9, 0.7); border: 1px solid rgba(84, 184, 147, 0.4); }
.abp__body h3 { margin: 0 0 6px; font-family: var(--title-font); font-size: 1.2rem; font-weight: 800; text-transform: uppercase; color: var(--title-color); }
.abp__tile--lead h3 { font-size: 1.9rem; }
.abp__body p { margin: 0 0 10px; font-size: 0.86rem; line-height: 1.5; color: var(--text-color1); }
.abp__bullets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.abp__bullets li { padding: 4px 9px; font-size: 0.74rem; color: var(--title-color); background: rgba(84, 184, 147, 0.12); border: 1px solid rgba(84, 184, 147, 0.3); }
.abs { background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(249, 104, 84, 0.1), transparent 70%), #070d0c; }
.abs__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.abs__fine { margin: 14px 0 0; font-weight: 700; color: var(--title-color); }
.abs__cards { display: grid; gap: 10px; }
.abs__main { display: flex; align-items: center; gap: 18px; padding: 24px; color: #fff; background: linear-gradient(120deg, #f96854, #c8473a); transition: transform .2s, box-shadow .2s; }
.abs__main:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(249, 104, 84, 0.3); }
.abs__main img { width: 44px; height: 44px; }
.abs__main b { display: block; font-family: var(--title-font); font-size: 1.2rem; text-transform: uppercase; }
.abs__main small { font-size: 0.86rem; opacity: .9; }
.abs__main i { margin-left: auto; font-size: 1.2rem; }
.abs__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.abs__alt { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; color: var(--title-color); background: rgba(8, 17, 15, 0.9); border: 1px solid rgba(246, 245, 245, 0.14); transition: border-color .2s; }
.abs__alt:hover { color: #fff; border-color: rgba(246, 245, 245, 0.4); }
.abs__alt img { width: 24px; height: 24px; }
.abt { background: linear-gradient(180deg, #070d0c, #0b1715); }
.abt__leads { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 26px 0 30px; }
.abt__lead { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; text-align: center; background: rgba(8, 17, 15, 0.9); border: 1px solid rgba(84, 184, 147, 0.3); }
.abt__lead img { width: 84px; height: 84px; margin-bottom: 8px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(84, 184, 147, 0.3); }
.abt__lead b { font-family: var(--title-font); font-size: 0.86rem; color: var(--title-color); }
.abt__lead span { font-size: 0.72rem; line-height: 1.35; color: var(--text-color4); }
.abt__row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid rgba(246, 245, 245, 0.08); }
.abt__row h3 { margin: 8px 0 0; font-family: var(--title-font); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vs-theme-color2); }
.abt__row ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.abt__row li { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: rgba(8, 17, 15, 0.8); border: 1px solid rgba(246, 245, 245, 0.1); border-radius: 999px; }
.abt__row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.abt__row b { display: block; font-size: 0.82rem; color: var(--title-color); }
.abt__row small { display: block; font-size: 0.68rem; color: var(--text-color4); }
.abf { background: #070d0c; }
.abf__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.abf__head .cl-h2 { margin: 0; }
.abf__head .cl-h2 span { color: var(--vs-theme-color2); }
.abf__updated { margin: 0; font-size: 0.8rem; color: var(--text-color4); }
.abf__panel { font-size: 0.9rem; line-height: 1.65; color: var(--text-color2); }
.abf__panel { padding: 0 16px 14px; }
.abf__panel p,
.abf__panel p { margin: 0 0 10px; }
.abf__panel ul,
.abf__panel ul { padding-left: 18px; }
.abf__panel .vs-btn,
.abf__panel .vs-btn { margin: 6px 6px 0 0; padding: 12px 18px; height: auto; line-height: 1.2; }
.abf__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.abf__list { display: grid; gap: 4px; }
.abf__q { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 14px; text-align: left; font-family: var(--title-font); font-size: 0.8rem; font-weight: 700; line-height: 1.4; color: var(--text-color1); background: rgba(8, 17, 15, 0.7); border: 1px solid transparent; border-left: 3px solid transparent; transition: background-color .2s, color .2s; }
.abf__q:hover { color: var(--title-color); background: rgba(84, 184, 147, 0.06); }
.abf__q.is-on { color: var(--title-color); border-color: rgba(84, 184, 147, 0.3); border-left-color: var(--vs-theme-color2); background: rgba(84, 184, 147, 0.1); }
.abf__q:focus-visible { outline: 2px solid #8affd4; outline-offset: 2px; }
.abf__n { flex: none; color: var(--vs-theme-color2); font-weight: 300; }
.abf__panel { position: sticky; top: 110px; min-height: 280px; padding: 26px 28px; background: rgba(8, 17, 15, 0.9); border: 1px solid rgba(84, 184, 147, 0.35); }
.abf__panel h3 { margin: 0 0 14px; font-family: var(--title-font); font-size: 1.2rem; font-weight: 800; color: var(--title-color); }
@media (max-width: 1199px) {
  .abt__leads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .abs__grid,
  .abf__grid { grid-template-columns: 1fr; }
  .abp__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .abp__tile { grid-column: span 1; min-height: 240px; }
  .abp__tile--lead { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
  .abf__panel { position: static; }
}
@media (max-width: 767px) {
  .abp__grid { grid-template-columns: 1fr; }
  .abt__leads { grid-template-columns: 1fr 1fr; }
  .abt__row { grid-template-columns: 1fr; }
  .abs__row { grid-template-columns: 1fr; }
}
.abp__grid { grid-auto-flow: dense; }
.abh { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: max(640px, 92svh); padding-top: 150px; overflow: hidden; background: #050a09; }
.abh__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .6; }
.abh::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 10, 9, 0.7), transparent 35%, transparent 55%, #070d0c 96%); }
.abh__inner { position: relative; z-index: 3; text-align: center; }
.abh__inner .cl-eyebrow::before { display: none; }
.abh .abh__mission { margin-bottom: 18px; }
.abh__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-family: var(--title-font); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.abh__links a { color: var(--vs-theme-color2); }
.abh__links a:hover { color: #8affd4; }
.abh__links span { color: var(--text-color3); }
.abp__grid { grid-template-rows: repeat(2, minmax(250px, auto)); }
.abt__row { grid-template-columns: 1fr; gap: 10px; padding: 16px 0 6px; }
.abt__row h3 { margin: 0; }
.abt__row ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.abt__row li { gap: 12px; min-height: 58px; padding: 9px 12px; border-radius: 0; background: rgba(8, 17, 15, 0.85); border: 1px solid rgba(246, 245, 245, 0.08); border-left: 2px solid rgba(84, 184, 147, 0.5); }
.abt__row li:hover { border-color: rgba(84, 184, 147, 0.45); }
.abt__row img { flex: none; width: 38px; height: 38px; }
.abt__row b { font-size: 0.86rem; line-height: 1.25; }
.abt__row small { font-size: 0.72rem; line-height: 1.35; }
.abt__lead b { line-height: 1.3; }
.abt__row li { min-height: 64px; }

/* ---- hero: condensed, no unit renders ---- */
.abh { min-height: 0; padding: 140px 0 56px; justify-content: center; }
.abh::before { background: radial-gradient(ellipse 70% 90% at 50% 40%, transparent, rgba(5, 10, 9, 0.85) 80%), linear-gradient(180deg, rgba(5, 10, 9, 0.6), transparent 40%, #070d0c); }
.abh__inner .cl-eyebrow::before { display: none; }
.abh__title { margin: 0 0 16px; font-family: var(--title-font); font-size: clamp(2.6rem, 1rem + 4.4vw, 5.4rem); font-weight: 800; line-height: .95; letter-spacing: -0.04em; text-transform: uppercase; color: var(--title-color); }
.abh__mission { max-width: 720px; margin: 0 auto 18px; font-size: 1.06rem; line-height: 1.65; color: var(--text-color1); }
/* tighter section rhythm */
.about-page .cl-section { padding: clamp(48px, 6vw, 80px) 0; }
.about-toc-mobile { margin: 0; }
/* projects: first tile large on the left, the rest stacked on the right */
.abp__grid { grid-template-rows: none; grid-auto-rows: minmax(250px, auto); }
.abp__tile:not(.abp__tile--lead) { grid-column: 3 / span 2; }
@media (max-width: 991px) { .abp__tile:not(.abp__tile--lead) { grid-column: auto; } }

/* Retired developers: a quieter row after the current team */
.abt__row--retired h3 small { display: block; margin-top: 6px; font-family: var(--body-font); font-size: 0.7rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-color4); }
.abt__row--retired li { background: rgba(8, 17, 15, 0.55); border-left-color: rgba(246, 245, 245, 0.18); }
.abt__row--retired img { filter: grayscale(0.85); opacity: 0.8; }
.abt__row--retired b { color: var(--text-color2); }

/* Additional credits (# Credits in about.<locale>.md) */
.abc { background: #070d0c; }
.abc[hidden] { display: none; }
.abc .cl-lead { max-width: 760px; }
.abc__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 28px; }
.abc__cat { padding: 18px 20px; background: rgba(8, 17, 15, 0.85); border: 1px solid rgba(246, 245, 245, 0.08); border-top: 2px solid rgba(84, 184, 147, 0.5); }
.abc__cat h3 { margin: 0 0 12px; font-family: var(--title-font); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vs-theme-color2); }
.abc__cat ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.abc__cat li { font-size: 0.86rem; line-height: 1.45; color: var(--text-color2); }
.abc__cat li strong { color: var(--title-color); }
.abc__cat a { color: inherit; text-decoration: none; }
.abc__cat a:hover { color: var(--vs-theme-color2); }
.abc__cat .abc__ext { margin-left: 2px; font-size: 0.8em; opacity: 0.6; }

/* team avatars with an optional flag badge ("flag" in authors.json) */
.abt__row .abt__av { position: relative; flex: none; display: block; line-height: 0; }
.abt__row .abt__av .abt__flag { position: absolute; right: -4px; bottom: -3px; width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 2px #0b1513, 0 2px 4px rgba(0, 0, 0, 0.5); filter: none; opacity: 1; }
