/* Past projects (Nov 15): the same rows as the active projects, smaller and quieter. Loaded after styles.css. */
.feats--past { gap: 1rem; }
.feats--past .feat { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); background: var(--paper); border-color: var(--rule); }
.feats--past .feat__media { min-height: 13rem; }
.feats--past .feat__b { padding: clamp(1.25rem, 2.5vw, 1.75rem); gap: .55rem; }
.feats--past .feat__b h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.feats--past .feat__b p:not(.proj__tag) { font-size: .98rem; }
.feats--past .proj__tag { color: var(--ink-3) !important; }
.feats--past.is-collapsed > :nth-child(n+4) { display: none; }
@media (max-width: 820px) {
  .feats--past .feat { grid-template-columns: 1fr; }
  .feats--past .feat__media { min-height: 0; aspect-ratio: 16 / 9; }
}
.evts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.ct-way__note { display: block; margin-top: .35rem; font-weight: 600; color: var(--blue-d); }
.phero__fig img[src*="consulting-meeting"] { aspect-ratio: 16 / 10; object-position: 62% 40%; }
/* Reviews: Serge's video sits right under the intro text it was written for */
.rv-feature { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.vid--feature { max-width: 56rem; }
.quote__vary { display: block; width: 100%; margin-top: .35rem; font-style: italic; }
.rv-feature__lead { font-weight: 650; font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin-bottom: 1rem; }
.plan__lead { font-weight: 650; margin: 0 0 .5rem; color: var(--ink); }
.crp-cta { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
/* Contact: the new office building photo (Serge, Nov 15) runs full width, map and details sit side by side below */
.ct-office:has(.ct-office__photo--wide) { grid-template-columns: 1fr; }
.ct-office .ct-office__photo--wide { min-height: 0; height: auto; }
.ct-office .ct-office__photo--wide img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 1600 / 728; object-fit: cover; object-position: 50% 50%; }
.ct-office:has(.ct-office__photo--wide) .ct-office__info { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) {
  .ct-office .ct-office__photo--wide { aspect-ratio: auto; }
  .ct-office .ct-office__photo--wide img { aspect-ratio: 4 / 3; object-position: 38% 50%; }
  .ct-office:has(.ct-office__photo--wide) .ct-office__info { grid-template-columns: 1fr; }
}
.fee-fine { margin-top: .85rem; font-size: .85rem; color: var(--ink-3); max-width: 52rem; }
/* Business Funding: longer values ("Under 30%", "2 or fewer") stay on one line */
.ready__n { white-space: nowrap; font-size: clamp(1.6rem, 3vw, 2.4rem); }
@media (min-width: 821px) { .ready__row { grid-template-columns: minmax(7rem, 13rem) minmax(0, 1fr) 2.75rem; } }
/* Business Consulting, Buying and Selling: two cards instead of a repeated photo */
.bs-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-content: start; }
.bs-side { display: grid; gap: .6rem; align-content: start; padding: clamp(1.25rem, 2.5vw, 1.75rem); border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); }
.band--sheet .bs-side { background: var(--paper); }
.bs-side__ic { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue-d); }
.bs-side__ic .ic { width: 1.25rem; height: 1.25rem; }
.bs-side__k { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-d); }
.bs-side .big { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.bs-note { grid-column: 1 / -1; display: flex; gap: .6rem; align-items: center; margin: .25rem 0 0; color: var(--ink-2); font-weight: 560; }
.bs-note .ic { flex: none; width: 1.2rem; height: 1.2rem; color: var(--blue-d); }
@media (max-width: 640px) { .bs-sides { grid-template-columns: 1fr; } }
/* Business Consulting stages (Nov 15): tiles under the hero jump to three numbered sections */
.stages { margin-top: calc(-1 * clamp(1.5rem, 4vw, 3rem)); margin-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; z-index: 2; }
.stages__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.stage-tile { height: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.stage-tile:hover, .stage-tile:focus-visible { border-color: var(--blue); transform: translateY(-2px); }
.stage-tile__n { font-size: 1.6rem; font-weight: 750; color: var(--blue); font-stretch: 125%; font-variation-settings: "wdth" 125; }
.stage-tile__b { display: grid; gap: .15rem; }
.stage-tile__k { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stage-tile b { font-weight: 650; line-height: 1.3; }
.stage-tile > .ic { width: 1.15rem; height: 1.15rem; color: var(--blue-d); }

.stage { scroll-margin-top: 5rem; }
.stage__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.stage__head { position: sticky; top: 6rem; display: grid; gap: .7rem; }
.stage__n { margin: 0; font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 780; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--blue); font-stretch: 125%; font-variation-settings: "wdth" 125; }
.stage__k { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-d); }
.stage__lead { margin: .25rem 0 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.stage__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stage__cards li { display: grid; gap: .85rem; align-content: start; padding: clamp(1.2rem, 2.2vw, 1.6rem); border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); font-size: 1.05rem; font-weight: 560; line-height: 1.45; color: var(--ink); }
.stage__ck { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue-d); }
.stage__ck .ic { width: 1.15rem; height: 1.15rem; }
/* under pressure: dark band so it reads as urgent */
.stage--dark .stage__n { -webkit-text-stroke-color: #7ea2ff; }
.stage--dark .stage__k { color: #9db8ff; }
.stage--dark .stage__lead { color: #c6cedd; }
.stage--dark .display { color: #fff; }
.stage--dark .stage__cards li { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); color: #eef1f7; }
.stage--dark .stage__ck { background: var(--blue); color: #fff; }
@media (max-width: 900px) {
  .stages__list { grid-template-columns: 1fr; gap: .6rem; }
  .stages { margin-top: 0; }
  .stage__grid { grid-template-columns: 1fr; }
  .stage__head { position: static; }
}
@media (max-width: 560px) { .stage__cards { grid-template-columns: 1fr; } .stage__n { font-size: 3rem; } }
@media (max-width: 560px) { .stage__cards li { grid-template-columns: 2.4rem 1fr; align-items: center; gap: .85rem; } }
/* Nov 16 (Serge): buttons never touch the divider line of the list above them */
:is(ul, ol, dl) + .btn, :is(ul, ol, dl) + .row { margin-top: clamp(1.5rem, 3vw, 2rem); }
/* Credit Rebuilding Plan hero: more room between the intro and the buttons */
.crp-tagline ~ .row { margin-top: clamp(1.75rem, 4vw, 2.25rem); }
/* footer logo a little bigger */
.foot__brand img { height: 40px; }
@media (max-width: 640px) { .foot__brand img { height: 36px; } }
/* Community video rows: the player takes the video's own shape, no black bars above and below */
.feat__media:has(> .yt-live) { min-height: 0; aspect-ratio: auto; background: transparent; }
@media (min-width: 821px) {
  .feat__media:has(> .yt), .feat__media:has(> .yt-live) { align-self: center; min-height: 0; background: transparent; padding: clamp(1rem, 2vw, 1.5rem); }
  .feat__media > .yt, .feat__media > .yt-live { border-radius: var(--r); }
}
/* Pricing: inquiry removal packages (Serge, Nov 16), same card style as the main plans */
.inq { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--rule-2); }
.inq__k { margin: 0 0 .5rem; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-d); }
.inq__pack { padding-block: clamp(1.5rem, 2.5vw, 2rem); }
.inq__pack .plan__note { margin: 0; }
.inq__t { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.inq__intro { max-width: 46em; color: var(--ink-2); margin: .8rem 0 1.75rem; }
.inq__packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.inq__pack h3 { margin-bottom: .9rem; }
.inq__checks { margin-top: 1.75rem; max-width: 46em; }
.inq__fine { margin-top: 1rem; }
@media (max-width: 760px) {
  .inq__packs { grid-template-columns: 1fr; gap: .75rem; }
  .inq__pack { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; padding: 1.1rem 1.25rem; }
  .inq__pack h3 { margin: 0; font-size: 1rem; }
  .inq__pack .plan__price { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 2.4rem; text-align: right; }
  .inq__pack .plan__price small { display: block; margin: .3rem 0 0; font-size: .8rem; }
}
/* Nov 16 (CJ): a pair of buttons (Book + Call, Trial + Call) is one balanced unit: both the same width, centered
   text; under the wide 3-step "How it works" the pair is centered on the page instead of hugging the left */
.row:has(> .btn:nth-child(2):last-child), .steps3__cta { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: fit-content; max-width: 100%; gap: .75rem; }
.row:has(> .btn:nth-child(2):last-child) > .btn, .steps3__cta > .btn { justify-content: center; }
.steps3__cta { margin-inline: auto; }
@media (max-width: 560px) {
  .row:has(> .btn:nth-child(2):last-child), .steps3__cta { grid-auto-flow: row; width: 100%; }
  .row:has(> .btn:nth-child(2):last-child) > .btn { width: 100%; }
}
