/* fedsupplier.css: the Federal supplier page's own placing and sizing. Components and tokens come from design\.
   The Capitol photo has no people: the capability card lands over its sky and trees at the left of the dome (from
   1100 px) or across its steps (narrower), and its CC BY-SA credit stays on it at the foot. */

/* ---------- 1. the header ---------- */
.fedhead { display: grid; }
.fedhead__media { position: relative; height: 560px; overflow: hidden; background: var(--c-night-3); }
.fedhead__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 0%; }
.fedhead__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 15, 0) 76%, var(--c-night) 100%); pointer-events: none; }
.fedhead__stage { position: absolute; inset: 0; z-index: 2; }
.fedhead__stage > .stop { top: 14px; right: 14px; bottom: auto; }
.fc { position: absolute; left: 14px; right: 14px; bottom: 46px; max-width: 360px; }
.fedhead__credit { position: absolute; left: 14px; bottom: 12px; z-index: 3; margin: 0; padding: 4px 10px; border-radius: 99px; background: rgba(13, 13, 15, 0.62); color: rgba(255, 255, 255, 0.86); font: 500 12px/1.3 var(--font-ui); }
.fedhead__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fedhead__in { position: relative; z-index: 3; width: 100%; box-sizing: border-box; padding-block: 8px 48px; }
.fedhead__copy { display: grid; gap: 16px; max-width: 560px; }
.fedhead .phead__line { margin-top: 0; }
@media (min-width: 760px) and (max-width: 1099px) { .fedhead__media { height: 600px; } .fedhead__photo { object-position: 50% 20%; } .fc { left: auto; right: max(24px, calc((100% - var(--max-w)) / 2)); width: 340px; } }
@media (min-width: 1100px) {
  .fedhead { min-height: calc(100svh - var(--header-h)); grid-template-columns: calc(max(var(--gutter), (100vw - var(--max-w)) / 2) + 540px) minmax(0, 1fr); }
  .fedhead__media { grid-column: 2; grid-row: 1; height: auto; }
  .fedhead__media::after { background: linear-gradient(90deg, var(--c-night) 0%, rgba(13, 13, 15, 0) 14%); }
  .fedhead__photo { object-position: 38% 30%; }
  /* over the sky and the trees left of the dome, inside the photo */
  .fc { left: 20px; right: auto; top: 9%; bottom: auto; width: 272px; }
  .fedhead__credit { left: auto; right: 64px; }
  .fedhead__in { grid-column: 1; grid-row: 1; display: grid; align-content: center; padding: clamp(16px, 3vh, 40px) 48px clamp(16px, 3vh, 40px) max(var(--gutter), calc((100vw - var(--max-w)) / 2)); }
  .fedhead .phead__title { font-size: min(clamp(2.5rem, 1.4rem + 2.6vw, 4rem), 6.4vh); }
}
/* the capability card */
.fc-card { position: relative; display: grid; gap: 12px; padding: 16px 18px 18px; border-radius: 20px; background: #fff; color: var(--c-ink); box-shadow: var(--shadow-night); opacity: var(--fc, 1); transform: translateY(calc(18px - 18px * var(--fc, 1))); }
.fc-seal { position: absolute; right: 10px; top: 8px; width: 62px; height: auto; max-width: none; filter: drop-shadow(0 6px 10px rgba(13, 13, 15, 0.35)); opacity: var(--fc-seal, 1); transform: scale(calc(1.6 - 0.6 * var(--fc-seal, 1))) rotate(calc(-18deg + 10deg * var(--fc-seal, 1))); }
.fc-top { display: grid; gap: 2px; margin: 0; padding-right: 64px; }
.fc-top b { font: 800 1.0625rem/1.2 var(--font-ui); }
.fc-top small { font: 600 13px/1.25 var(--font-ui); color: var(--c-ink-soft); }
.fc-rows { display: grid; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid rgba(26, 26, 30, 0.1); }
.fc-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; }
.fc-row dt { font: 700 13px/1 var(--font-ui); letter-spacing: 0.06em; color: var(--c-ink-soft); }
.fc-row dd { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 1rem/1.25 var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.fc-row dd .x { width: 14px; height: 14px; border-radius: 4px; transform: scale(calc(0.3 + 0.7 * var(--fc-i, 1))); }
.fc-row dd > span { opacity: calc(0.15 + 0.85 * var(--fc-i, 1)); transform: translateX(calc(-6px + 6px * var(--fc-i, 1))); }
.fc-row--naics { align-items: start; }
.fc-row--naics dt { padding-top: 7px; }
.fc-codes { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-code { display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; border-radius: 8px; background: var(--c-paper-alt); font: 700 13px/1 var(--font-ui); letter-spacing: 0.02em; opacity: calc(0.2 + 0.8 * var(--fc-c, 1)); transform: scale(calc(0.8 + 0.2 * var(--fc-c, 1))); box-shadow: inset 0 0 0 1.5px rgba(241, 128, 46, calc(0.9 * var(--fc-h, 0))); }

/* ---------- 2. what we build ---------- */
.fcap__stage { position: relative; padding-top: 48px; }
.fcap__stage > .stop { top: 0; right: 0; bottom: auto; }
.cg { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
/* a phone: the six cards as a sideways row, one in view and the next peeking */
@media (max-width: 639px) {
  .cg { grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -6px calc(var(--gutter) * -1) -22px; padding: 6px var(--gutter) 22px; scroll-padding-inline: var(--gutter); }
  .cg::-webkit-scrollbar { display: none; }
  .cg-card { scroll-snap-align: start; }
}
.cg-card { display: grid; grid-template-rows: auto auto auto 1fr; gap: 10px; padding: 14px 14px 22px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-m), 0 0 0 calc(2px * var(--cg-on, 0)) rgba(241, 128, 46, 0.7); transform: translateY(calc(-6px * var(--cg-on, 0))); }
.cg-art { display: grid; place-items: center; height: 156px; margin-bottom: 8px; border-radius: 16px; background: radial-gradient(80% 90% at 50% 100%, rgba(241, 128, 46, 0.16), rgba(241, 128, 46, 0) 70%), var(--c-night); }
.cg-art svg { display: block; width: 210px; height: 126px; overflow: visible; }
.cg-line { fill: none; stroke: rgba(255, 255, 255, 0.42); stroke-width: 2; }
.cg-soft { fill: rgba(255, 255, 255, 0.2); }
.cg-hot { fill: var(--c-brand); }
.cg-hot-s { fill: none; stroke: var(--c-brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cg-tick { fill: none; stroke: var(--c-brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cg-shackle { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 4; stroke-linecap: round; transform: translateY(calc(-8px + 8px * clamp(0, calc((var(--cg, 1) - 0.6) * 3), 1))); }
/* what each picture's turn draws (--cg runs 0 to 1 in the card's turn, and rests at 1) */
.cg-g { transform-box: fill-box; transform-origin: 0 50%; }
.cg-g1 { transform: scaleX(clamp(0, calc(var(--cg, 1) * 3), 1)); }
.cg-g2 { transform: scaleX(clamp(0, calc((var(--cg, 1) - 0.25) * 3), 1)); }
.cg-g3 { transform: scaleX(clamp(0, calc((var(--cg, 1) - 0.45) * 3), 1)); }
.cg-pop { transform-box: fill-box; transform-origin: 50% 50%; opacity: clamp(0, calc((var(--cg, 1) - 0.7) * 4), 1); transform: scale(clamp(0.5, calc(0.5 + (var(--cg, 1) - 0.7) * 2), 1)); }
.cg-draw { stroke-dasharray: 100; stroke-dashoffset: calc(100 - 100 * clamp(0, calc((var(--cg, 1) - 0.1) * 1.6), 1)); }
.cg-l1 { opacity: clamp(0.2, calc(var(--cg, 1) * 3), 1); }
.cg-l2 { opacity: clamp(0.2, calc((var(--cg, 1) - 0.25) * 3), 1); }
.cg-l3 { opacity: clamp(0.2, calc((var(--cg, 1) - 0.5) * 3), 1); }
.cg-t1 { opacity: clamp(0, calc((var(--cg, 1) - 0.1) * 4), 1); }
.cg-t2 { opacity: clamp(0, calc((var(--cg, 1) - 0.4) * 4), 1); }
.cg-t3 { opacity: clamp(0, calc((var(--cg, 1) - 0.7) * 4), 1); }
.cg-name { display: flex; align-items: center; gap: 10px; margin: 0 6px; font: 800 1.25rem/1.2 var(--font-display); }
.cg-name .x { width: 16px; height: 16px; border-radius: 5px; }
.cg-line-text { margin: 0 6px; font-size: 1rem; line-height: 1.45; color: var(--c-ink-soft); }
.cg-list { display: grid; gap: 6px; align-content: start; margin: 4px 6px 0; padding: 12px 0 0; border-top: 1px solid rgba(26, 26, 30, 0.1); list-style: none; }
.cg-list li { position: relative; padding-left: 16px; font: 600 0.9375rem/1.35 var(--font-ui); }
.cg-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 2px; background: var(--c-brand); }

/* ---------- 3. the capability statement ---------- */
.fst { --ground-x: 15%; --ground-y: 100%; }
.fst__stage { position: relative; }
.fst__stage > .stop { top: 14px; left: 14px; right: auto; bottom: auto; }
.fst__in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .fst__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }
.fst__doc { padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.fst__sheet { position: relative; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: var(--shadow-night); }
.fst__img { display: block; width: 100%; height: auto; max-width: none; }
.fst-ring { position: absolute; border: 2.5px solid var(--c-brand); border-radius: 10px; box-shadow: 0 0 0 5px rgba(241, 128, 46, 0.18); opacity: var(--st-r, 1); transform: scale(calc(1.25 - 0.25 * var(--st-r, 1))); }
.fst-ring--codes { left: 9.5%; top: 0.4%; width: 41.5%; height: 12.8%; }
.fst-ring--dep { left: 23.8%; top: 92%; width: 8.6%; height: 7.6%; }
.fst-ring--sbdc { left: 64.6%; top: 92%; width: 10.6%; height: 7.6%; }
.fst-ring--toyota { left: 80.9%; top: 92%; width: 9.2%; height: 7.6%; }
.fst-ring--custard { left: 9.9%; top: 92%; width: 9.4%; height: 7.6%; }
.fst__side { display: grid; gap: 22px; align-content: center; }
.fst__clients { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fst-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, calc(0.14 + 0.5 * var(--st-h, 0))); color: #fff; font: 700 1rem/1.2 var(--font-ui); opacity: calc(0.25 + 0.75 * var(--st-c, 1)); transform: translateY(calc(10px - 10px * var(--st-c, 1))); }
.fst-chip .x { width: 18px; height: 18px; border-radius: 5px; transform: scale(calc(0.3 + 0.7 * var(--st-c, 1))) rotate(calc(-24deg + 24deg * var(--st-c, 1))); }
.fst__count { display: flex; align-items: baseline; gap: 14px; margin: 0; color: #fff; opacity: calc(0.25 + 0.75 * var(--st-n, 1)); transform: translateY(calc(10px - 10px * var(--st-n, 1))); }
.fst__count b { font: 800 clamp(2.75rem, 2rem + 2vw, 3.75rem)/1 var(--font-display); letter-spacing: -0.02em; background: var(--grad-x); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fst__count span { font: 700 1.0625rem/1.3 var(--font-ui); color: var(--c-on-night-soft); }
.fst__pdf { justify-self: start; }

/* ---------- 4. the close ---------- */
.fedclose__in { display: grid; gap: 32px; align-items: center; }
.fedclose__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-xl); background: var(--c-night-3); box-shadow: var(--shadow-night); }
.fedclose__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 40%; }
.fedclose__box { display: grid; gap: 16px; }
@media (min-width: 1000px) {
  .fedclose__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .fedclose__frame { aspect-ratio: auto; height: 640px; }
}
