@layer pages {
  [data-page="agency"] {
    --ag-rw: clamp(160px, 15vw, 220px);
    .ag-hero {
      background-color: var(--bb-white);
      background-image:
        radial-gradient(48% 64% at 76% 48%, color-mix(in srgb, var(--purple-100) 85%, transparent) 0%, transparent 72%),
        radial-gradient(36% 46% at 4% 0%, color-mix(in srgb, var(--purple-50) 90%, transparent) 0%, transparent 80%),
        var(--fill-wash);
    }
    .ag-hero .split-hero__lede { max-width: 36ch; }
    .ag-hero .split-hero__fig img { width: 100%; height: auto; aspect-ratio: 768 / 727; }
    .ag-why .section-head .lede { max-width: 60ch; margin-inline: auto; }
    .ag-svc__in { align-items: start; }
    .ag-svc__side { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + var(--s6)); padding-right: var(--inset-text); }
    .ag-svc__head { margin-bottom: 0; }
    .ag-svc__head .lede { max-width: 34ch; }
    .ag-svc__main { grid-column: 5 / span 8; }
    .ag-svc__feature {
      display: grid; justify-items: start; padding: clamp(24px, 8px + 2.4vw, 40px); margin-bottom: clamp(32px, 16px + 2vw, 48px);
      border-radius: var(--radius-3); background: var(--purple-50) linear-gradient(135deg, var(--purple-100) 0%, var(--purple-50) 55%, var(--bb-white) 100%);
      box-shadow: inset 0 0 0 1px var(--bb-line), var(--shadow-card);
    }
    .ag-svc__feature-top { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
    .ag-svc__mark {
      display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-2);
      background: var(--bb-white); box-shadow: inset 0 0 0 1px var(--bb-line);
    }
    .ag-svc__mark img { width: 26px; height: 26px; }
    .ag-svc__list {
      display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: clamp(24px, 3vw, 48px); row-gap: clamp(28px, 12px + 2vw, 40px);
    }
    .ag-svc__item { display: flex; flex-direction: column; align-items: flex-start; padding-top: var(--s5); border-top: 1px solid var(--line); }
    .ag-svc__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); align-self: stretch; }
    .ag-svc__t {
      display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3);
      font-size: var(--fs-20); line-height: 1.3; font-weight: var(--fw-display); color: var(--ink);
    }
    .ag-svc__t--lead { font-size: var(--fs-32); line-height: 1.2; }
    .ag-svc__t a { color: var(--accent-text); text-decoration: none; }
    .ag-svc__t a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
    .ag-svc__p { margin-top: var(--s3); max-width: 46ch; font-size: var(--fs-16); line-height: 1.55; color: var(--text); text-wrap: pretty; }
    .ag-svc__feature .ag-svc__p { max-width: 56ch; font-size: var(--fs-18); line-height: 1.5; }
    .ag-svc__go { margin-top: var(--s4); min-height: 24px; }
    .ag-chans { display: flex; gap: 6px; flex: none; }
    .ag-chans li {
      display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-2);
      background: var(--bb-white); box-shadow: inset 0 0 0 1px var(--bb-line);
    }
    .ag-chans img { width: auto; height: 16px; max-width: 20px; }
    .ag-new {
      display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: var(--radius-2);
      background: var(--bb-green-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bb-success) 28%, transparent);
      color: var(--bb-green-text); font-size: var(--fs-12); line-height: 1.3; font-weight: var(--fw-display);
      letter-spacing: .08em; text-transform: uppercase;
    }
    .ag-new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bb-success); }
    .ag-why > .wrap { width: min(calc(100% - var(--gutter) * 2), 1040px); }
    .ag-why__list {
      display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
      column-gap: clamp(24px, 3vw, 48px); row-gap: clamp(48px, 24px + 3vw, 72px);
    }
    .ag-why__item { display: grid; justify-items: center; align-content: start; text-align: center; }
    .ag-why__icon { display: block; width: auto; height: clamp(112px, 64px + 5vw, 144px); margin-bottom: var(--s5); }
    .ag-why__t { font-size: var(--fs-24); line-height: 1.2; font-weight: var(--fw-display); color: var(--ink); text-wrap: balance; }
    .ag-why__p { margin-top: var(--s3); max-width: 36ch; font-size: var(--fs-18); line-height: 1.5; color: var(--text); text-wrap: pretty; }
    .close-band { --close-rw: var(--ag-rw); }
    .close-band__in { justify-items: center; text-align: center; }
    .close-band__h { max-width: 16em; }
    @media (width < 1120px) {
      .close-band { padding-bottom: calc(var(--ag-rw) * 1.25 + var(--s6)); }
    }
    @media (width < 900px) {
      .ag-svc__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--s6); }
      .ag-svc__side, .ag-svc__main { grid-column: 1; position: static; padding-right: 0; }
      .ag-hero .split-hero__lede { max-width: 40ch; }
      .ag-hero .split-hero__fig { width: min(100%, 520px); margin-inline: auto; }
      .ag-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (width < 640px) {
      .ag-why .section-head .lede, .cases-head .lede { font-size: var(--fs-18); }
      .ag-svc__list { grid-template-columns: minmax(0, 1fr); row-gap: var(--s6); }
      .ag-svc__feature .ag-svc__p { font-size: var(--fs-16); line-height: 1.55; }
      .ag-svc__go { min-height: 44px; margin-top: calc(var(--s4) - 10px); margin-bottom: -10px; }
      .ag-new { font-size: var(--fs-14); }
      .ag-svc__t--lead { font-size: var(--fs-24); }
      .ag-why__list { grid-template-columns: minmax(0, 1fr); row-gap: var(--s7); }
    }
  }
}
@layer sections {
  .split-hero {
    padding: clamp(24px, 4px + 4.4vw, 72px) 0 var(--section-pad);
    background: var(--bg) radial-gradient(40% 56% at 2% 0%, color-mix(in srgb, var(--purple-100) 90%, transparent) 0%, transparent 80%);
  }
  .split-hero__row { width: min(calc(100% - var(--gutter) * 2), 1320px); align-items: center; }
  .split-hero__copy { grid-column: 1 / span 6; padding-right: var(--inset-text-l); }
  .split-hero__lede { margin-top: var(--s5); max-width: 40ch; color: var(--ink); }
  .split-hero__lede strong { font-weight: var(--fw-display); }
  .split-hero__copy .actions { margin-top: var(--s6); }
  .split-hero__fig { grid-column: 7 / span 6; min-width: 0; }
  @media (width < 900px) {
    .split-hero__row { grid-template-columns: minmax(0, 1fr); row-gap: var(--s7); }
    .split-hero__copy, .split-hero__fig { grid-column: 1; padding-right: 0; }
  }
  @media (width < 640px) {
    .split-hero { padding-top: var(--s5); }
    .split-hero__lede { font-size: var(--fs-18); }
    .split-hero__copy .actions { margin-top: var(--s5); }
    .split-hero__row { row-gap: var(--s6); }
  }
}
@layer sections {
  .review-band { overflow: clip; }
  .review__label { margin-bottom: var(--s5); font-size: var(--fs-16); line-height: 1.3; font-weight: var(--fw-strong); color: var(--ink); }
  .review__quote {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--gap-fluid); row-gap: var(--s4);
    align-items: center;
  }
  .review .face { --f: clamp(88px, 56px + 4vw, 128px); --d: 16px; grid-row: 1 / 3; }
  .review__text p {
    max-width: 34ch; font-size: var(--fs-32); line-height: 1.3; font-weight: var(--fw-medium); color: var(--ink);
    text-indent: -.4em; text-wrap: pretty;
  }
  .review__who { align-self: start; display: grid; gap: 2px; font-size: var(--fs-14); line-height: 1.35; color: var(--text); }
  .review__who b { font-size: var(--fs-16); color: var(--ink); }
  .review-band--card { width: min(calc(100% - var(--gutter) * 2), 1280px); margin-inline: auto; border-radius: var(--radius-3); }
  .review-band--card .review { padding-block: clamp(40px, 16px + 4vw, 80px); }
  .review-band--card .review > .wrap { width: auto; padding-inline: clamp(24px, 4px + 5.6vw, 96px); }
  .review-straddle { background: linear-gradient(180deg, var(--purple-100) 50%, var(--bb-white) 50%); }
  @media (width < 640px) {
    .review__quote { grid-template-columns: minmax(0, 1fr); }
    .review .face { grid-row: auto; --f: 80px; --d: 12px; }
  }
}
@layer sections {
  .face {
    --f: 64px; --d: 10px; --rw: 2px;
    position: relative; display: block; flex: none; width: var(--f); height: var(--f);
    border: var(--rw) solid var(--bb-white); border-radius: 50%;
  }
  .face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
  .face::after {
    content: ""; position: absolute; width: var(--d); height: var(--d); border-radius: 50%; background: var(--bb-green);
    left: calc(var(--f) * .828 - var(--d) / 2 - var(--rw)); top: calc(var(--f) * .123 - var(--d) / 2 - var(--rw));
  }
}
@layer sections {
  .cases-head { margin-bottom: clamp(36px, 12px + 3vw, 56px); }
  .cases-head .lede, .cases-head__intro { margin-inline: auto; }
  .cases-head__intro { display: grid; gap: var(--s4); max-width: 60ch; font-size: var(--fs-18); line-height: 1.5; color: var(--text); }
  .cases-head > .btn { margin-top: var(--s2); }
  .cases-head--plain { margin-bottom: clamp(28px, 10px + 2.4vw, 48px); }
  .cases-head--plain .lede { max-width: 60ch; }
  .cases-head--plain .kicker { margin-bottom: calc(var(--s2) - var(--s5)); color: var(--ink); }
  @media (width < 640px) {
    .cases-head__intro { font-size: var(--fs-16); }
  }
}
@layer sections {
  bb-case-slider { display: block; }
  .site-slides {
    --site-edge: max(var(--gutter), (100% - var(--wrap-width)) / 2);
    display: flex; gap: clamp(16px, 1.6vw, 24px); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--site-edge); padding: 8px var(--site-edge) 28px;
    scrollbar-width: none; contain: paint;
  }
  .site-slides::-webkit-scrollbar { display: none; }
  .site-slides:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
  .site-slide {
    flex: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); width: min(760px, 78vw);
    overflow: hidden; scroll-snap-align: start; border-radius: var(--radius-3); background: var(--bb-white);
    box-shadow: inset 0 0 0 1px var(--bb-line), var(--shadow-picture);
  }
  .site-slide__media { position: relative; min-height: 280px; }
  .site-slide__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .site-slide__media .site-logo { position: absolute; left: var(--s4); bottom: var(--s4); box-shadow: var(--shadow-tile); }
  .site-slide__fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .site-slide__media--fill .site-slide__photo {
    inset: 50% 0 auto; height: auto; translate: 0 -50%; aspect-ratio: 640 / 422;
    -webkit-mask-image: linear-gradient(180deg, transparent, var(--opaque) 18%, var(--opaque) 82%, transparent);
            mask-image: linear-gradient(180deg, transparent, var(--opaque) 18%, var(--opaque) 82%, transparent);
  }
  .site-slide__media .site-logo--wide { width: 156px; }
  .site-slide__body { display: grid; align-content: start; justify-items: start; padding: var(--card-pad); }
  .site-slide__who { font-size: var(--fs-24); line-height: 1.25; font-weight: var(--fw-strong); color: var(--ink); }
  .site-slide__nums {
    display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: var(--s5) clamp(24px, 3vw, 40px);
    margin-top: var(--s4);
  }
  .site-slide__line { margin-top: var(--s5); max-width: 40ch; font-size: var(--fs-14); line-height: 1.5; color: var(--text); text-wrap: pretty; }
  .site-slider__nav { display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr); align-items: center; gap: 12px; }
  .site-slider__more { grid-column: 1; justify-self: start; }
  .site-slider__btn[data-step="-1"] { grid-column: 2; }
  .site-slider__btn[data-step="1"] { grid-column: 3; }
  .site-slider__btn[data-step="1"] svg { scale: -1 1; }
  .site-slider__btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--bb-line);
    border-radius: 50%; background: var(--bb-white); color: var(--ink); cursor: pointer; transition: border-color .2s;
  }
  .site-slider__btn:hover:not(:disabled) { border-color: var(--ink); }
  .site-slider__btn:disabled { opacity: .35; cursor: default; }
  .site-slider__btn svg { width: 20px; height: 20px; }
  @media (width < 640px) {
    .site-slider__nav:has(.site-slider__more) { grid-template-columns: minmax(0, 1fr) auto auto; }
    .site-slide { grid-template-columns: minmax(0, 1fr); width: 86vw; }
    .site-slide__media { min-height: 0; aspect-ratio: 16 / 9; }
    .site-slide__who { font-size: var(--fs-20); }
    .site-slide__fill { display: none; }
    .site-slide__media--fill .site-slide__photo { inset: 0; height: 100%; aspect-ratio: auto; translate: none; -webkit-mask-image: none; mask-image: none; }
  }
}
@layer sections {
  bb-numbers { display: block; }
  .site-logo {
    display: flex; align-items: center; justify-content: center; flex: none; width: 104px; height: 52px; padding: 8px 12px;
    border-radius: var(--radius-2); background: var(--bb-white);
  }
  .site-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
  .site-num {
    padding-top: .04em; font-size: clamp(44px, 24px + 2.2vw, 60px); line-height: var(--lh-giant);
    font-weight: var(--fw-medium); letter-spacing: var(--tr-giant); color: var(--ink); white-space: nowrap;
    font-variant-numeric: lining-nums;
  }
  .site-num .sign { margin-right: .02em; }
  .site-num__s, .site-num__f { display: inline-block; }
  .site-fig__l { margin-top: var(--s2); font-size: var(--fs-16); line-height: 1.3; color: var(--ink); }
  @keyframes site-slide-in {
    from { translate: 40px 0; opacity: 0; }
    to   { translate: 0 0;    opacity: 1; }
  }
  @keyframes site-rise {
    from { translate: 0 calc(100% + .2em); clip-path: inset(-.3em -1em 100% -1em); }
    to   { translate: 0 0;                 clip-path: inset(-.3em -1em -.25em -1em); }
  }
  @media screen and (prefers-reduced-motion: no-preference) {
    html:not(.rm) bb-numbers:not([rise]).is-armed .site-fig:not(.is-in) :is(.site-num__s, .site-num__f) { opacity: 0; }
    html:not(.rm) bb-numbers:not([rise]).is-armed .site-fig.is-in :is(.site-num__s, .site-num__f) { animation: site-slide-in .7s var(--ease) var(--site-d, 0s) backwards; }
    html:not(.rm) bb-numbers:not([rise]).is-armed .site-fig.is-in .site-num__f { animation-delay: calc(var(--site-d, 0s) + .08s); }
    html:not(.rm) bb-numbers[rise].is-armed .site-fig:not(.is-in) :is(.site-num__s, .site-num__f) { clip-path: inset(0 0 100% 0); }
    html:not(.rm) bb-numbers[rise].is-armed .site-fig.is-in :is(.site-num__s, .site-num__f) { animation: site-rise 1.1s var(--ease) var(--site-d, 0s) backwards; }
    html:not(.rm) bb-numbers[rise].is-armed .site-fig.is-in .site-num__f { animation-delay: calc(var(--site-d, 0s) + .14s); }
    html:not(.rm) bb-numbers.is-armed .site-fig.site-now :is(.site-num__s, .site-num__f) { animation: none; }
  }
}
@layer sections {
  .faq__in { align-items: start; }
  .faq__in > h2 { grid-column: 1 / span 4; }
  .faq__list { grid-column: 5 / span 8; border-bottom: 1px solid var(--line); }
  .qa { border-top: 1px solid var(--line); }
  .qa summary {
    --c: var(--accent-text);
    display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
    min-height: 64px; padding-block: 18px; cursor: pointer; list-style: none;
  }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary::after {
    content: ""; flex: none; width: 18px; height: 18px;
    background:
      linear-gradient(var(--c), var(--c)) 50% 50% / 100% 2px no-repeat,
      linear-gradient(var(--c), var(--c)) 50% 50% / 2px 100% no-repeat;
  }
  .qa[open] summary::after { background-size: 100% 2px, 2px 0; }
  .qa__q { font-size: var(--fs-20); line-height: 1.35; font-weight: var(--fw-strong); color: var(--ink); }
  .qa summary:hover .qa__q { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
  .qa__a { max-width: 62ch; padding: 0 44px 24px 0; font-size: var(--fs-18); line-height: 1.55; color: var(--text); text-wrap: pretty; }
  .qa__a--parts > :is(p, ul) + :is(p, ul) { margin-top: var(--s4); }
  .qa__ul { display: grid; gap: var(--s3); }
  .qa__ul li { position: relative; padding-left: 22px; }
  .qa__ul li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); }
  .qa__ul strong { font-weight: var(--fw-strong); color: var(--ink); }
  .faq--center .faq__in > h2 { margin-bottom: var(--head-gap); text-align: center; }
  @media (width >= 900px) {
    .faq--center .faq__in > h2 { grid-column: 1 / -1; }
    .faq--center .faq__list { grid-column: 3 / span 8; }
  }
  .faq--center .qa__a strong { color: var(--ink); }
  .faq--center .qa__a a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .faq--center .qa__a a:hover { text-decoration-thickness: 2px; }
  @media (width < 900px) {
    .faq__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--s5); }
    .faq__in > h2, .faq__list { grid-column: 1; }
    .faq--center .faq__in { row-gap: 0; }
  }
  @media (width < 640px) {
    .qa summary { min-height: 56px; padding-block: 14px; gap: var(--s4); }
    .qa__q { font-size: var(--fs-18); }
    .qa__a { padding-right: 0; font-size: var(--fs-16); }
  }
}
@layer sections {
  .close-band {
    --close-rw: clamp(160px, 15vw, 220px);
    position: relative; isolation: isolate; overflow: clip; padding-block: var(--section-pad);
    background: var(--purple-900) linear-gradient(180deg, var(--purple-600) 0%, var(--purple-800) 56%, var(--purple-900) 100%);
    box-shadow: var(--edge-light);
  }
  .close-band__in { position: relative; z-index: 1; display: grid; justify-items: start; gap: var(--s6); }
  .close-band__h { max-width: 16em; }
  .close-band__rings, .close-band__slats { position: absolute; z-index: 0; bottom: 0; pointer-events: none; }
  .close-band__slats {
    right: calc(max(var(--gutter), (100% - var(--wrap-width)) / 2) - 8px + var(--close-rw) * .5); width: calc(var(--close-rw) * 1.096); aspect-ratio: 320 / 403;
    background: url("/assets/img/illustrations/app-ribbon.svg?v=d5fdda35") no-repeat center bottom / contain;
    translate: -12px 12px;
  }
  .close-band__rings {
    right: calc(max(var(--gutter), (100% - var(--wrap-width)) / 2) - 8px);
    width: var(--close-rw); height: auto; aspect-ratio: 292 / 364; overflow: visible; color: var(--bb-white);
  }
  @media (width < 640px) {
    .close-band { padding-bottom: calc(var(--section-pad) + var(--close-rw) * .9); }
  }
  .close-band--center { --close-aw: clamp(280px, 26vw, 400px); }
  .close-band--center .close-band__in { justify-items: center; text-align: center; }
  .close-band__art {
    position: absolute; z-index: 0; right: 0; bottom: calc(var(--close-aw) * -.04); width: var(--close-aw); height: auto;
    aspect-ratio: 440 / 300; overflow: visible; pointer-events: none; color: var(--bb-white);
  }
  @media (width < 1280px) {
    .close-band--center { padding-bottom: calc(var(--section-pad) + var(--close-aw) * .62); }
    .close-band__art { right: 50%; translate: 50% 0; bottom: calc(var(--close-aw) * -.05); }
  }
  @media print { .close-band__rings, .close-band__slats, .close-band__art { display: none; } }
}
