/* Saginaw CAP About: page styles, from reference/about.html. Shared components: cap-site.css. */
/* Hero photo: wide frame that opens to full bleed as you scroll */
.hero-photo{margin-top:clamp(40px,7vh,72px);height:min(72vh,640px);border-radius:0;overflow:hidden}
.hero-photo .graded{height:100%}
.hero-photo img{object-position:50% 38%}
.hero-photo-cap{display:flex;justify-content:space-between;gap:16px;margin-top:12px;font-size:.8125rem;color:var(--on-ink-muted)}
.hero-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}

/* BYQ "Stats and Statement Intro": facts left, statement scrubs in right */
.intro-grid{display:grid;gap:48px}
.facts-col{display:grid;gap:28px;align-content:start;border-top:3px solid var(--signal-deep);padding-top:24px}
.fact b{display:block;font-family:var(--f-display);font-size:clamp(1.8rem,3vw,2.6rem);line-height:1;font-variation-settings:"wdth" 78}
.fact span{display:block;color:var(--on-paper-muted);font-size:1rem;margin-top:6px;max-width:28ch}
.statement{display:grid;gap:clamp(28px,5vh,48px)}
.statement p{font-family:var(--f-display);font-weight:600;font-size:clamp(1.8rem,3.6vw,3.3rem);line-height:1.08;letter-spacing:-.01em;font-variation-settings:"wdth" 84}
.statement p+p{color:var(--on-paper-muted)}
.statement .slogan + p{color:var(--on-paper)}
.statement .slogan{font-family:var(--f-text);font-size:.8125rem;line-height:1.4;font-weight:700;letter-spacing:.14em;color:var(--signal-deep)}
.statement .vision-more{font-family:var(--f-text);font-weight:400;font-size:clamp(1.125rem,1.5vw,1.3rem);line-height:1.5;max-width:46ch;margin-top:-12px}
@media (min-width:900px){.intro-grid{grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(48px,7vw,120px)}}

/* Values: BYQ "Text Rotate" heading + "Numbered Process Steps" track */
.rot-h{font-size:clamp(2.3rem,5.4vw,4.6rem);line-height:1.02;letter-spacing:-.01em;max-width:none}
.rot-pill{display:inline-flex;vertical-align:bottom;position:relative;overflow:hidden;height:1.12em;background:var(--signal);color:var(--ink);border-radius:.18em;padding:0 .14em;margin-left:.08em;transition:width .6s var(--ease);box-sizing:content-box;white-space:nowrap}
.rot-word{position:absolute;left:.14em;top:0;display:inline-flex;white-space:nowrap}
.rot-measure{position:absolute;visibility:hidden}
.rot-ch{display:inline-block}
html.reduce .rot-pill{transition:none}
.track{position:relative;margin-top:clamp(40px,7vh,72px)}
.track-line{height:2px;background:var(--line-ink);position:relative}
.track-fill{position:absolute;inset:0;background:var(--signal);transform-origin:left}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:40px;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.step{position:relative;padding-top:36px;display:grid;gap:12px;align-content:start}
.step::before{content:"";position:absolute;left:0;top:-7px;width:12px;height:12px;border-radius:50%;background:var(--ink);border:2px solid var(--signal)}
.step .no{font-weight:700;font-size:.875rem;letter-spacing:.08em;color:var(--on-ink-muted)}
.step h3{font-size:clamp(1.7rem,2.4vw,2.2rem);line-height:1}
.step p{color:var(--on-ink-muted);font-size:1rem;max-width:32ch}
@media (min-width:1100px){.steps{grid-template-columns:repeat(5,minmax(0,1fr));gap:32px}}
.more-values{margin-top:clamp(48px,8vh,80px);padding-top:28px;border-top:1px solid var(--line-ink)}
.more-values ul{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:4px 40px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.more-values li{display:grid;gap:4px;padding:14px 0;border-bottom:1px solid var(--line-ink)}
.more-values b{font-family:var(--f-display);font-size:1.4rem;font-variation-settings:"wdth" 82}
.more-values span{color:var(--on-ink-muted);font-size:.9875rem}

/* Community photo marquee (BYQ marquee band) */
.community-strip{padding-block:clamp(72px,12vh,128px)}
.strip-head{display:grid;gap:14px;margin-bottom:clamp(32px,5vh,48px)}
.strip-head h2{font-size:clamp(2.2rem,4.8vw,4rem);line-height:.98;max-width:18ch}
.strip-head p{max-width:46ch}
.marquee{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.mq-track{list-style:none;margin:0;padding:0;display:flex;gap:16px;width:max-content;animation:mq 60s linear infinite}
.marquee:hover .mq-track,.mq-paused .mq-track{animation-play-state:paused}
.mq-track li{height:clamp(200px,30vw,340px);flex:none;border-radius:12px;overflow:hidden;background:var(--ink-raised)}
.mq-track img{height:100%;width:auto;filter:saturate(.92) contrast(1.04) sepia(.05)}
@keyframes mq{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 8px))}}
html.reduce .mq-track{animation:none}
html.reduce .marquee{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
html.reduce .mq-track li[aria-hidden]{display:none}
html.reduce .mq-toggle{display:none}
/* Tribute */
.tribute{display:grid;gap:40px;align-items:center}
.tribute figure{border-radius:14px;overflow:hidden;outline:2px solid var(--signal);outline-offset:6px}
.tribute figure img{width:100%;aspect-ratio:3/2;object-fit:cover;filter:grayscale(1) contrast(1.04)}
.tribute figcaption{font-size:.8125rem;color:var(--on-ink-muted);padding:10px 2px 0;background:var(--ink)}
.tribute h2{font-size:clamp(2.3rem,5vw,4.2rem);line-height:.98}
.tribute .lead{font-family:var(--f-voice);font-style:italic;font-size:clamp(1.3rem,2vw,1.7rem);line-height:1.3;max-width:30ch}
.tribute p{color:var(--on-ink-muted);max-width:52ch}
.full-tribute summary{cursor:pointer;font-weight:700;color:var(--signal);min-height:44px;display:inline-flex;align-items:center}
.full-tribute div{display:grid;gap:14px;margin-top:10px;padding-top:14px;border-top:1px solid var(--line-ink)}
@media (min-width:900px){.tribute{grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:clamp(48px,6vw,96px)}}

/* Story: sticky copy + BYQ "Curtain Image Reveal" gallery */
.story{display:grid;gap:48px}
.story-copy{display:grid;gap:18px;align-content:start}
.story-copy h2{font-size:clamp(2.3rem,5vw,4.2rem);line-height:.98}
.story-copy p{color:var(--on-paper-muted);max-width:40ch}
.story-copy .founders{color:var(--on-paper);font-family:var(--f-voice);font-style:italic;font-size:clamp(1.3rem,2vw,1.7rem);line-height:1.25;max-width:24ch}
.cir{display:flex;align-items:flex-start;gap:clamp(1.25rem,4vw,3.5rem)}
.cir-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:clamp(3.5rem,10vh,6.5rem)}
.cir-col.b{margin-top:clamp(5rem,24vh,11rem)}
.cir-item{margin:0}
.cir-item.narrow{width:84%}.cir-item.end{align-self:flex-end}
.cir-frame{position:relative;overflow:hidden;border-radius:.5rem;background:var(--paper-deep);transform:translateZ(0);transition:clip-path .9s cubic-bezier(.16,1,.3,1) var(--d,0s)}
.js .cir-frame img{transform:scale(1.25)}
.cir-frame img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 1.05s cubic-bezier(.16,1,.3,1) var(--d,0s);filter:saturate(.9) contrast(1.06) sepia(.07)}
.js .cir-frame.lr{clip-path:inset(0 100% 0 0)}.js .cir-frame.tb{clip-path:inset(0 0 100% 0)}.js .cir-frame.rl{clip-path:inset(0 0 0 100%)}
.js .cir-cap{opacity:0;transform:translateY(8px)}
.cir-cap{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-top:.7rem;font-size:.8125rem;line-height:1.2;transition:opacity .45s ease calc(var(--d,0s) + .7s),transform .55s cubic-bezier(.16,1,.3,1) calc(var(--d,0s) + .7s)}
.cir-cap b{color:var(--signal-deep);font-variant-numeric:tabular-nums;white-space:nowrap}
.cir-cap span{color:var(--on-paper-muted);text-align:right}
.cir-item[data-revealed="true"] .cir-frame{clip-path:inset(0 0 0 0)}
.cir-item[data-revealed="true"] .cir-frame img{transform:scale(1)}
.cir-item[data-revealed="true"] .cir-cap{opacity:1;transform:none}
html.reduce .cir-frame,html.reduce .cir-frame img,html.reduce .cir-cap{transition:none!important}
@media (min-width:900px){.story{grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(48px,6vw,96px)}.story-copy{position:sticky;top:calc(var(--header-h) + 40px)}}
@media (max-width:560px){.cir{flex-direction:column;gap:3.25rem}.cir-col.b{margin-top:0}.cir-item.narrow{width:100%}}

/* Leadership: BYQ "Team Grid with Member Drawer" */
.team-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:24px;padding-bottom:28px;border-bottom:1px solid var(--line-paper);margin-bottom:28px}
.team-head h2{font-size:clamp(2.3rem,5.2vw,4.4rem);line-height:.98}
.team{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 16px}
@media (min-width:900px){.team{grid-template-columns:repeat(3,minmax(0,1fr))}}
.member{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:14px;cursor:pointer;width:100%}
.member:focus-visible{outline:2px solid var(--on-paper);outline-offset:6px;border-radius:4px}
.m-img{position:relative;aspect-ratio:3/4;overflow:hidden;background:var(--paper-deep);border-radius:6px}
.m-img img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;transition:transform .5s var(--ease);filter:saturate(.92) contrast(1.04) sepia(.05)}
.member:hover .m-img img,.member:focus-visible .m-img img{transform:scale(1.03)}
.memorial{box-shadow:inset 0 0 0 2px var(--signal);outline:2px solid var(--signal);outline-offset:4px}
.memorial img,.d-img.memorial img{filter:grayscale(1) contrast(1.02) brightness(1.04)!important}
.memorial .m-flag{background:var(--signal);color:var(--ink)}
.m-mono{position:absolute;inset:0;display:grid;place-items:center;background:var(--ink);color:var(--signal);font-family:var(--f-display);font-weight:800;font-size:clamp(3rem,7vw,5.5rem);font-variation-settings:"wdth" 75}
.m-flag{position:absolute;left:10px;top:10px;font-size:.6875rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;background:var(--paper);color:var(--on-paper);padding:.3em .6em;border-radius:6px}
.m-info{position:relative;border-top:1px solid var(--line-paper);padding-top:12px;display:grid;gap:4px}
.m-info::before{content:"";position:absolute;top:-1px;left:0;right:0;height:1px;background:var(--on-paper);transform:scaleX(0);transform-origin:left;transition:transform .4s}
.member:hover .m-info::before,.member:focus-visible .m-info::before{transform:scaleX(1)}
.m-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.m-name{font-family:var(--f-display);font-weight:700;font-size:clamp(1.25rem,2vw,1.6rem);line-height:1.1;font-variation-settings:"wdth" 82}
.m-no{font-size:.75rem;font-weight:700;letter-spacing:.08em;color:var(--on-paper-muted);white-space:nowrap}
.m-role{font-size:.9375rem;color:var(--on-paper-muted)}
html.reduce .m-img img,html.reduce .m-info::before{transition:none}
.drawer{position:fixed;inset:0 0 0 auto;margin:0;height:100%;max-height:100%;width:min(480px,100vw);max-width:100vw;border:0;padding:24px 28px 28px;background:var(--paper);color:var(--on-paper);overflow-y:auto;transform:translateX(100%);transition:transform .4s var(--ease),display .4s allow-discrete,overlay .4s allow-discrete}
.drawer[open]{transform:none;display:flex;flex-direction:column;gap:20px}
@starting-style{.drawer[open]{transform:translateX(100%)}}
.drawer::backdrop{background:rgba(18,17,16,0);transition:background .25s,display .4s allow-discrete,overlay .4s allow-discrete}
.drawer[open]::backdrop{background:rgba(18,17,16,.4)}
@starting-style{.drawer[open]::backdrop{background:rgba(18,17,16,0)}}
html.reduce .drawer,html.reduce .drawer::backdrop{transition:none}
.d-head,.d-foot{display:flex;justify-content:space-between;align-items:center;gap:16px}
.d-count{font-size:.8125rem;font-weight:700;letter-spacing:.08em;color:var(--on-paper-muted)}
.icon-btn{width:44px;height:44px;display:grid;place-items:center;border:1.5px solid var(--line-paper);border-radius:10px;background:transparent;cursor:pointer;font-weight:700}
.icon-btn:hover{border-color:var(--on-paper)}
.d-img{aspect-ratio:6/5;border-radius:8px;overflow:hidden;background:var(--paper-deep);position:relative}
.d-img img{width:100%;height:100%;object-fit:cover;object-position:50% 18%}
.d-body{display:grid;gap:12px;flex:1;align-content:start}
.d-body h2{font-size:2rem;line-height:1.05}
.d-role{font-weight:700;color:var(--signal-deep);font-size:.9375rem;letter-spacing:.04em}
.d-bio{color:var(--on-paper-muted)}
.d-foot{border-top:1px solid var(--line-paper);padding-top:20px}
.d-nav{display:flex;gap:10px}

/* Partners and transparency */
.trust{display:grid;gap:24px}
.partner{display:grid;gap:14px;padding:28px;border-radius:16px;background:var(--ink-raised);border:1px solid var(--line-ink)}
.partner h3{font-size:clamp(1.6rem,2.6vw,2.2rem);line-height:1.05}
.partner p{color:var(--on-ink-muted)}
.ledger{list-style:none;margin:0;padding:0;border-top:1px solid var(--line-ink)}
.ledger li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:18px 0;border-bottom:1px solid var(--line-ink);align-items:baseline}
.ledger b{font-family:var(--f-display);font-size:1.35rem;font-variation-settings:"wdth" 82}
.ledger span{color:var(--on-ink-muted);font-size:.9375rem;text-align:right}
@media (min-width:900px){.trust{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px}}
/* Inline styles from the prototype markup, as classes */
.u-2be399{display:grid;gap:18px}
.u-3dee6e{display:grid;gap:12px}
.u-4c3ca0{--d:.12s}
.u-553a64{margin-top:14px}
.u-6bf470{font-size:.875rem}
.u-7db969{aspect-ratio:4/5}
.u-b0043e{margin-top:16px}
.u-bcb555{display:grid;gap:14px}
.u-e476ec{aspect-ratio:3/4}
.u-fa1beb{aspect-ratio:4/3}
/* Team grid from the CMS. The "In memoriam" flag is only rendered when the In memoriam switch is on
   (conditional visibility), so the memorial styling keys off its presence instead of the
   prototype's hand-placed .memorial class. Card numbers come from a counter. */
.team{counter-reset:member}
.team>*{counter-increment:member}
.team .m-no::before{content:counter(member,decimal-leading-zero)}
.member:has(.m-flag:not(.w-condition-invisible)) .m-img{box-shadow:inset 0 0 0 2px var(--signal);outline:2px solid var(--signal);outline-offset:4px}
.member:has(.m-flag:not(.w-condition-invisible)) .m-img img{filter:grayscale(1) contrast(1.02) brightness(1.04)!important}
.member .m-flag{background:var(--signal);color:var(--ink)}
