/* ==========================================================================
   Home page sections below Inspired Financing
   ========================================================================== */

/* Loaded after styles.css and built on its tokens. Measurements are from
   the 150dpi render of 36Street_WebDesignsv2-extra-pages.pdf, page 1, where
   1 image px is 1 CSS px at a 1350px viewport. Each clamp() reaches its PDF
   value at 1350px and holds it above; the vw factor is the PDF px value
   divided by 13.5, rounded up, as in styles.css. */

/* ==========================================================================
   Carousel (js/carousel.js)
   ========================================================================== */

/* Generic: any [data-carousel] uses these. Items stack in one grid cell,
   so the track is as tall as its tallest item and never changes height as
   they change. The active item fades in over 600ms while the previous one
   fades out; inactive items are also visibility: hidden once faded, so
   nothing inside them can be clicked or reached with Tab. */
.carousel__track {
  display: grid;
}

.carousel__item {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease, visibility 0s linear 600ms;
}

.carousel__item.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 600ms ease, visibility 0s linear 0s;
}

/* js/carousel.js does not auto-advance under reduced motion; items the
   visitor steps to switch without the fade. */
@media (prefers-reduced-motion: reduce) {
  .carousel__item,
  .carousel__item.is-active {
    transition: none;
  }
}

/* The PDF shows no controls; these follow the site's buttons: a 1.5px
   outline in the text color, a fill tint on hover, a 2px ring on focus.
   Everything is drawn in currentColor, so a section sets the color once
   (white on the navy testimonial band). Order: previous, next, dots. */
.carousel__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel__prev,
.carousel__next {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

/* The chevron: two borders of a small square turned 45deg, which also
   survive forced-colors mode. Nudged off center toward its open side so
   it looks centered in the circle. */
.carousel__prev::before,
.carousel__next::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.carousel__prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.carousel__next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.carousel__prev:hover,
.carousel__next:hover {
  background-color: color-mix(in srgb, currentColor 18%, transparent);
}

.carousel__dots {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
}

/* A 10px circle inside a 24px target (WCAG 2.5.8). The active dot fills
   by thickening its border to the radius, so it stays filled in
   forced-colors mode, where backgrounds are dropped. */
.carousel__dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}

.carousel__dot::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.carousel__dot[aria-current="true"]::before {
  border-width: 5px;
}

.carousel__dot:hover::before {
  border-width: 3px;
}

.carousel__dot[aria-current="true"]:hover::before {
  border-width: 5px;
}

.carousel__prev:focus-visible,
.carousel__next:focus-visible,
.carousel__dot:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ==========================================================================
   Stats band
   ========================================================================== */

/* Flat band slate, no texture: the PDF's rectangle runs from y 1771.4 to
   1984.0. That top edge is 99px below the Inspired image, where the
   shipped Inspired section's 120px bottom padding would put the band 23px
   lower; the band overlaps that white padding instead of changing the
   section above. */
.stats {
  --inset-left: clamp(20px, 4.45vw, 60px);
  --inset-right: clamp(20px, 6.52vw, 88px);
  margin-top: clamp(-23px, -1.71vw, -13px);
  padding: clamp(32px, 3.86vw, 52px) 0 clamp(40px, 4.78vw, 64.4px);
  background: var(--slate-dark);
  color: var(--white);
}

/* The five stats are centered text frames at x = 239.2, 541.4, 768.9,
   992.0 and 1186.3 in the PDF, which neither equal columns nor equal gaps
   reproduce. These tracks put each column's center on its PDF center at
   1350px (content box 60 to 1262) and scale together below it. The items
   are top aligned: both figure sizes have their cap tops near y 1830. */
.stats__list {
  display: grid;
  grid-template-columns: minmax(0, 358.4fr) minmax(0, 246fr) minmax(0, 209fr) minmax(0, 237.2fr) minmax(0, 151.4fr);
  align-items: start;
  margin-block: 0;
  list-style: none;
}

.stats__item {
  text-align: center;
}

.stats__value,
.stats__label {
  display: block;
}

/* PDF: Open Sans ExtraBold 33.81px, baseline at y 1853.9. Weight 800 is
   requested in the Google Fonts link in src/partials/head.html. */
.stats__value {
  font-size: clamp(22px, 2.51vw, 33.81px);
  font-weight: 800;
  line-height: 1;
}

/* PDF: Open Sans 22.80px on 26.3px baselines (y 1889.0 and 1915.3). */
.stats__label {
  margin-top: clamp(5px, 0.71vw, 9.5px);
  font-size: clamp(15px, 1.69vw, 22.8px);
  line-height: 1.154;
}

/* PDF: "$2,000,000,000+" ExtraBold 36.83px (baseline y 1856.2), "Total
   funded" Regular 33.81px (baseline y 1902.4). */
.stats__item--lead .stats__value {
  font-size: clamp(24px, 2.73vw, 36.83px);
}

.stats__item--lead .stats__label {
  font-size: clamp(20px, 2.51vw, 33.81px);
  line-height: 1.139;
}

/* ==========================================================================
   Customer testimonial
   ========================================================================== */

/* Navy with the footer's texture, PDF y 2017.1 to 2392.5, 33px of white
   page above it. The PDF draws the band as a rounded rectangle (44.7px
   radius) from x -47.8 to 1380.4, past both page edges, so only a 2px
   trace of its right corners shows at 1350px; the band here is square
   and full-bleed. Height: 62 + 237 (photo) + 12 + 36 (controls) + 28.5. */
.testimonials {
  --inset-left: clamp(20px, 10.75vw, 145px);
  --inset-right: clamp(20px, 7.78vw, 105px);
  --photo-width: clamp(200px, 24.6vw, 332px);
  --column-gap: clamp(12px, 1.19vw, 16px);
  margin-top: clamp(20px, 2.45vw, 33px);
  padding: clamp(36px, 4.6vw, 62px) 0 clamp(20px, 2.12vw, 28.5px);
  background: var(--navy) url(../assets/texture-footer.png) center / cover;
  color: var(--white);
}

/* The label is the section heading and stays put while the items change,
   so it sits in the track's grid cell, over the top of the quote column,
   rather than in every item. */
.testimonials__inner {
  display: grid;
}

/* PDF: Open Sans 22.92px (11pt) in the nav slate, x 145.1, baseline at
   y 2104.4; its 33px line box starts level with the photo (y 2079). */
.testimonials__label {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  margin: 0;
  color: var(--slate);
  font-size: clamp(15px, 1.7vw, 22.92px);
  font-weight: 400;
  line-height: 1.44;
  text-transform: uppercase;
}

.testimonials .carousel__track {
  grid-area: 1 / 1;
}

/* Quote left, photo right. The photo shows in a 332 x 237 frame at
   x 913, y 2079 in all three PDF states (Chicago's crane frame is 334
   wide; one size is used so the band holds still). The 16px gap leaves
   the quote a 752px measure, which breaks its lines where the PDF does. */
.testimonial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--photo-width);
  column-gap: var(--column-gap);
  align-items: start;
}

/* Room for the label above the quote: the quote's first line box starts
   61.85px below the photo's top edge (first baseline at y 2166.5). */
.testimonial__figure {
  margin: 0;
  padding-top: clamp(40px, 4.59vw, 61.85px);
}

/* PDF: Open Sans 25.05px (12pt) white on 31.87px baselines, no tracking. */
.testimonial__quote {
  margin: 0;
  font-size: clamp(18px, 1.86vw, 25.05px);
  line-height: 1.272;
}

.testimonial__quote p {
  margin: 0;
}

/* PDF: "– " in regular weight, the name in Open Sans Bold, baseline at
   y 2302.4 (40.3px under the last quote baseline). Four tabs put the dash
   300px in from the quote's left edge. Below 1350px the indent scales,
   and it gives way (100% less 15.5em; the longest placeholder line,
   Chicago's, is 15.1em) where the narrow quote column would otherwise
   wrap the name, near 760px. */
.testimonial__attribution {
  margin-top: 0.336em;
  padding-left: max(0px, min(300px, 22.23vw, 100% - 15.5em));
  font-size: clamp(18px, 1.86vw, 25.05px);
  line-height: 1.272;
}

.testimonial__attribution cite {
  font-style: normal;
  font-weight: 700;
}

.testimonial__photo {
  width: 100%;
  aspect-ratio: 332 / 237;
  object-fit: cover;
}

.testimonials .carousel__controls {
  margin-top: 12px;
}

/* ==========================================================================
   Financing products
   ========================================================================== */

/* The intro shares Inspired's pattern (a 2px slate rule beside the title
   and body, a dotted line and arrowhead running in to the button) but
   sets the button on the left, under the copy. The band below it is the
   PDF's light grey (#E4E5EC, the one color here that is not a site
   token), y 2805 to 3042, with a white fade over its upper part. */
.products {
  --products-fade: #E4E5EC;
}

/* PDF: white down to y 2830, a linear fade to #E4E5EC by y 3002, flat to
   the band's bottom edge at y 3042 (sampled from the render). Stops are
   measured from the bottom so the fade keeps its place as the copy above
   reflows. Top padding puts the label's line box at y 2510 (testimonial
   band ends at 2392.5); bottom padding is button bottom 2980.3 to 3042. */
.products__intro {
  padding: clamp(56px, 8.72vw, 117.7px) 0 clamp(40px, 4.58vw, 61.7px);
  background: linear-gradient(to top, var(--products-fade) clamp(24px, 2.97vw, 40px), var(--white) clamp(120px, 15.71vw, 212px));
}

/* Rule at x 119.8 (the 120px page inset), text at x 158.6, photo frame
   x 913.1 to 1246.75 (right inset 103.25). The 50px gap leaves the body a
   704px measure, which breaks its six lines where the PDF does. Label in
   row 1; copy and photo share row 2. */
.products__inner {
  --inset-right: clamp(20px, 7.65vw, 103.25px);
  --rule-gap: clamp(24px, 2.86vw, 38.6px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 24.72vw, 333.6px);
  column-gap: clamp(24px, 3.71vw, 50px);
}

/* PDF: Open Sans 22.92px in the nav slate, baseline y 2535.6, as the
   testimonial label. The margin brings the title's line box to y 2574.6. */
.products__label {
  grid-column: 1;
  margin: 0 0 clamp(20px, 2.32vw, 31.3px);
  padding-left: var(--rule-gap);
  color: var(--slate);
  font-size: clamp(15px, 1.7vw, 22.92px);
  line-height: 1.44;
  text-transform: uppercase;
}

.products__content {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.copy-rule--products {
  --copy-rule-top: clamp(3px, 0.31vw, 4.2px);
}

.products__title,
.products__body {
  margin: 0;
  padding-left: var(--rule-gap);
}

/* PDF: Minion Pro Bold 41.67px navy, baseline y 2609.1, 48.8px above the
   body's first baseline. */
.products__title {
  padding-bottom: 11.6px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.09vw, 41.67px);
  font-weight: 700;
  line-height: 1;
  text-wrap: balance;
}

/* PDF: Open Sans 27.83px in the band slate on 39.44px baselines, first at
   y 2657.9. */
.products__body {
  padding-bottom: 2.3px;
  color: var(--slate-dark);
  font-size: clamp(19px, 2.07vw, 27.83px);
  line-height: 1.417;
}

/* "Learn more": PDF pill x 158.6 to 526.4, y 2921.1 to 2980.3 (367.8 x
   59.2 with its 1.9px white stroke), RF Rufo 33.33px, so the
   .btn--condensed size. Sits on the text edge, not the rule. */
.products__cta {
  position: relative;
  min-width: min(367.8px, 100%);
  margin-top: clamp(36px, 4.03vw, 54.4px);
  margin-left: var(--rule-gap);
  padding-block: 10px;
  border: 2px solid var(--white);
}

.products__cta::before,
.products__cta::after {
  content: '';
  position: absolute;
  top: 50%;
}

/* PDF: 4.2px round dots every 8.5px on y 2950.7 (the pill's center), from
   the page edge to a last dot at x 129.15, half under the arrowhead. The
   offsets are from the padding box, 2px inside the border: the dots end
   25.2px short of the pill. The line is 50vw wide and hangs off to the
   left, which never scrolls. --dots-offset is shared with the mobile
   rule, which runs the line in from the copy's left edge instead. */
.products__cta {
  --dots-offset: 27.2px;
}

.products__cta::before {
  right: calc(100% + var(--dots-offset));
  width: 50vw;
  height: 5px;
  margin-top: -2.5px;
  --arrow-mask: radial-gradient(circle, #000 1.8px, transparent 2.3px) right center / 8.5px 5px repeat-x;
  background: radial-gradient(circle, var(--slate-dark) 1.8px, transparent 2.3px) right center / 8.5px 5px repeat-x;
}

/* PDF: the same notched arrowhead as Inspired's, 22.3 x 16.3, tip at
   x 152.1, 6.5px short of the pill. */
.products__cta::after {
  right: calc(100% + 8.5px);
  width: 22.3px;
  height: 16.3px;
  margin-top: -8.15px;
  background: var(--slate-dark);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 13.3% 50%);
}

/* PDF: meeting.webp in a 333.6 x 315.4 frame, top at y 2578.8, level with
   the top of the rule. */
.products__image {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  width: 100%;
  aspect-ratio: 333.6 / 315.4;
  margin-top: clamp(3px, 0.32vw, 4.2px);
  object-fit: cover;
}

/* ==========================================================================
   Tiles
   ========================================================================== */

/* Full-bleed 3 + 2 grid with both rows centered. PDF: tiles 441.2 x 457.9,
   13.3px apart across and 13.9px down, first row at y 3055.2 (13.2px of
   white under the grey band), second row ending at y 3985. Above 1350px
   the grid holds its 1350px width, centered, like the page's content. */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.03vw, 13.9px) clamp(8px, 0.99vw, 13.3px);
  max-width: var(--container);
  margin: clamp(8px, 0.98vw, 13.2px) auto 0;
}

.tiles > .tile {
  grid-column: span 2;
}

@media (min-width: 1000px) {
  .tiles > .tile:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

/* One rule set styles all five tiles; each modifier sets its color. The
   PDF mirrors the engine photo, so that tile flips it. */
.tile--buyout {
  --tile-color: #5A5F77;
}

.tile--fmv-capital {
  --tile-color: #B17921;
  --photo-flip: -1;
}

.tile--fmv-operating {
  --tile-color: #627148;
}

.tile--sale-leaseback {
  --tile-color: #6A4970;
}

.tile--structured {
  --tile-color: #416B88;
}

/* PDF text column x 43.7 to 392.3 in the tile (columns 2 and 3; column 1
   sits 2.4px further left). Front and back are rows of the tile's grid,
   so by default the tile is one stacked card: title, photo, description,
   button. The hover query below stacks them in one cell instead. */
.tile {
  --pad-left: clamp(16px, 3.24vw, 43.7px);
  --pad-right: clamp(16px, 3.63vw, 48.9px);
  display: grid;
  color: var(--white);
}

/* Both faces carry the tile color and the mesh overlay (a placed image
   with its fade and alpha baked in, PDF y 3142.8 to the tile bottom).
   Anchored bottom-left at full width, it lines up exactly on the two
   faces when they share a cell. */
.tile__front,
.tile__back {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgb(9 42 61 / 0.1), rgb(9 42 61 / 0.1)),
    color-mix(in srgb, var(--tile-color) 77%, var(--navy))
    url(../assets/tile-mesh.png) left bottom / 100% auto no-repeat;
}

/* PDF: Minion Pro Bold 54.48px white, centered, baselines 74.2 and 125.8px
   below the tile top (51.6px apart); the title block ends where the photo
   starts, 161.7px down. The duplicate title reserves the same space on
   the back while the front title stays visible in both states. */
.tile__title {
  margin: 0;
  padding: clamp(16px, 2.24vw, 30.2px) 4px clamp(16px, 2.1vw, 28.3px);
  font-family: var(--font-display);
  font-size: clamp(28px, 4.04vw, 54.48px);
  font-weight: 700;
  line-height: 0.947;
  text-align: center;
}

.tile__title--back {
  display: none;
}

/* The photo is tinted over the tile
   color and mesh, under a mask that fades it in over its top 61.2px.
   Frame 441.2 x 296.2 to the tile bottom; it grows (cropping) when the
   back's copy makes the tile taller than the PDF's. */
.tile__photo {
  flex: 1 0 auto;
  width: 100%;
  aspect-ratio: 441.2 / 296.2;
  object-fit: cover;
  opacity: 0.44;
  transform: scaleX(var(--photo-flip, 1));
  -webkit-mask-image: linear-gradient(transparent, #000 clamp(24px, 4.54vw, 61.2px));
  mask-image: linear-gradient(transparent, #000 clamp(24px, 4.54vw, 61.2px));
}

/* PDF: button bottom 28.6px above the tile bottom (first row). */
.tile__back {
  padding-bottom: clamp(16px, 2.12vw, 28.6px);
}

/* PDF: Open Sans 25.05px white on 31.87px baselines (the testimonial
   quote's size). The PDF puts the first baseline 219px down in the first
   row and 198.9px in the second; one rule cannot do both, so it sits
   between, at 208.9px, which also keeps the six-line descriptions clear
   of the button. */
.tile__text {
  margin: clamp(16px, 1.6vw, 21.6px) var(--pad-right) 0 var(--pad-left);
  font-size: clamp(16px, 1.86vw, 25.05px);
  line-height: 1.272;
}

/* "Read more": PDF navy pill 189.7 x 53.2 with a white stroke, right edge
   on the text column, RF Rufo 30px; Korolev at 26.7px on a 30px line
   matches it. */
.tile__cta {
  align-self: flex-end;
  margin: clamp(16px, 1.6vw, 21.6px) var(--pad-right) 0 0;
  padding: clamp(6px, 0.75vw, 10px) clamp(24px, 3.26vw, 43.9px);
  font-size: clamp(18px, 1.98vw, 26.7px);
  line-height: clamp(24px, 2.23vw, 30px);
}

/* The flip, only for a fine pointer that can hover, from 760px: front and
   back share one grid cell (the tile is as tall as the taller face, so
   nothing moves), and the back fades in over 400ms while the tile is
   hovered or holds focus. Touch screens and narrow windows keep the
   stacked card, with nothing hidden. The back is lifted above the photo,
   whose opacity gives it a stacking context of its own. */
@media (hover: hover) and (pointer: fine) and (min-width: 760px) {
  .tile {
    isolation: isolate;
  }

  .tile__front,
  .tile__back {
    grid-area: 1 / 1;
  }

  .tile__back {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 400ms ease;
  }

  .tile:hover .tile__back,
  .tile:focus-within .tile__back {
    background-color: color-mix(in srgb, var(--tile-color) 58%, var(--navy));
    opacity: 1;
  }

  .tile__front .tile__title {
    position: relative;
    z-index: 2;
  }

  .tile__title--back {
    display: block;
    visibility: hidden;
  }

  .tile__cta {
    margin-top: auto;
  }
}

/* Reduced motion: the back switches without the fade. */
@media (prefers-reduced-motion: reduce) {
  .tile__back {
    transition: none;
  }
}

/* ==========================================================================
   Industry
   ========================================================================== */

/* Navy with the footer's texture, as the testimonial band: the PDF's
   rounded rectangle again runs past both page edges (x -47.8 to 1380.4),
   so the band is square and full-bleed. Its top is at y 4056.6, 71.6px of
   white under the tiles (bottom 3985.0); the photo strip covers its lower
   edge from y 4413.3, so the band shows 356.7px. */
.industry {
  margin-top: clamp(24px, 5.31vw, 71.6px);
}

/* The copy is centered on x 671, 4px left of the page center (the text
   frame's own offset in the PDF); a 1030px frame breaks every line where
   the PDF does. Top padding puts the heading's first baseline at
   y 4128.3; bottom padding ends the band at the strip, 47.5px under the
   last baseline (y 4365.8). */
.industry__band {
  padding: clamp(28px, 2.88vw, 38.8px) 0 clamp(28px, 3.18vw, 42.9px);
  --industry-scrim: linear-gradient(rgb(9 42 61 / 0.78), rgb(9 42 61 / 0) 150px);
  background: var(--industry-scrim), var(--navy) url(../assets/texture-footer.png) center / cover;
  color: var(--white);
  text-align: center;
}

.industry__inner {
  --inset-left: clamp(20px, 11.56vw, 156px);
  --inset-right: clamp(20px, 12.15vw, 164px);
}

/* Light slate keeps the heading readable over the patterned band. */
.industry__title {
  margin: 0;
  color: #d2e2f2;
  text-shadow: 0 2px 5px rgb(9 42 61 / 0.85);
  font-size: clamp(22px, 2.47vw, 33.33px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
}

/* PDF: Open Sans 22.92px white on 27.1px baselines; the first paragraph's
   first baseline is 64.5px under the heading's, the second paragraph's
   64.6px under the first's last. */
.industry__text {
  margin: clamp(20px, 2.59vw, 34.96px) 0 0;
  font-size: clamp(16px, 1.7vw, 22.92px);
  line-height: 1.182;
}

.industry__text + .industry__text {
  margin-top: clamp(20px, 2.78vw, 37.5px);
}

/* The partial next image signals that the strip can scroll. */
.industry__gallery {
  position: relative;
}

.industry__strip {
  --photos-visible: 3.5;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / var(--photos-visible));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.industry__strip:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -3px;
}

.industry__photo {
  width: 100%;
  height: clamp(160px, 16vw, 255px);
  object-fit: cover;
  scroll-snap-align: start;
}

.industry__strip.is-looping {
  scroll-snap-type: none;
  scrollbar-width: none;
}

@media (prefers-reduced-motion: no-preference) {
  .industry__strip {
    scroll-behavior: smooth;
  }
}

@media (max-width: 999.98px) {
  .industry__strip {
    --photos-visible: 2.5;
  }
}

/* ==========================================================================
   Case studies
   ========================================================================== */

/* The intro follows the products intro (label, a 2px slate rule beside
   the title and body, a dotted arrow running in to the button); the
   carousel of case cards sits to its right and runs to the page's right
   edge. The PDF colors here that are not site tokens: the card's lower
   block (#DFDFE9, from Task 2), the industry line's blue (#2470A2), the
   rule under it (#004994), and the black of the other details. The wide
   cards on Our Approach use the same four. */
.cases,
.case-card--wide {
  --case-block: #DFDFE9;
  --case-blue: #2470A2;
  --case-rule: #004994;
  --case-ink: #000000;
}

.cases {
  /* Shared by the card's lower block and the left button, so the two
     buttons sit on one line (PDF y 5283.8 to 5341.0) at every width. */
  --case-pad-bottom: clamp(24px, 3.18vw, 42.8px);
  /* Bottom: the card's bottom (y 5384.8) to the footer's top (5492.7). */
  padding: clamp(40px, 5.66vw, 76.4px) 0 clamp(64px, 8vw, 107.9px);
}

/* Rule at x 119.8 (the page inset), text at x 167.6, card x 713.8 to the
   page edge (636.2px wide). The 46px gap gives the body a 500px measure,
   which breaks its nine lines where the PDF does. The carousel spans all
   three rows, so the button row stretches and the button can sit at the
   bottom, level with the card's own. */
.cases__inner {
  --inset-right: 0px;
  --rule-gap: clamp(24px, 3.55vw, 47.8px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 47.13vw, 636.2px);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(24px, 3.41vw, 46px);
}

/* PDF: Open Sans 22.92px in the nav slate, x 167.6, baseline y 4711.1
   (section top padding: 76.4px under the strip). The margin brings the
   rule's top to y 4742.8. */
.cases__label {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 clamp(16px, 1.8vw, 24.3px);
  padding-left: var(--rule-gap);
  color: var(--slate);
  font-size: clamp(15px, 1.7vw, 22.92px);
  line-height: 1.44;
  text-transform: uppercase;
}

.cases__content {
  --copy-rule-bottom: 12.4px;
  grid-column: 1;
  grid-row: 2;
  padding: 7.3px 0 0 var(--rule-gap);
}

/* PDF: Minion Pro Bold 41.67px navy, baseline y 4784.6, 48.8px above the
   body's first baseline (as the products title). */
.cases__title {
  margin: 0;
  padding-bottom: 11.6px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.09vw, 41.67px);
  font-weight: 700;
  line-height: 1;
  text-wrap: balance;
}

/* PDF: Open Sans 27.83px in the band slate on 39.44px baselines, first at
   y 4833.4. */
.cases__body {
  margin: 0;
  color: var(--slate-dark);
  font-size: clamp(19px, 2.07vw, 27.83px);
  line-height: 1.417;
}

/* "Read more case studies": PDF pill x 167.6 to 535.4, y 5282.8 to 5342.0
   with its 1.93px white stroke (the products button's size), on the text
   edge, its bottom 42.8px above the card's. Never wider than its column
   less the margin, so it keeps the gap to the card at narrow widths. */
.cases__cta {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  justify-self: start;
  position: relative;
  min-width: min(367.8px, 100% - var(--rule-gap));
  margin: clamp(32px, 4.03vw, 54.4px) 0 var(--case-pad-bottom) var(--rule-gap);
  padding-block: 10px;
  border: 2px solid var(--white);
}

.cases__cta::before,
.cases__cta::after {
  content: '';
  position: absolute;
  top: 50%;
}

/* PDF: 4.2px round dots every 8.5px on y 5312.4 (the pill's center), from
   the page edge (x 2.1) to x 146.7, under the arrowhead's notch. Offsets
   are from the padding box, 2px inside the border. The line is 50vw wide
   and hangs off to the left, which never scrolls; --dots-offset is shared
   with the one-column rule below 900px. */
.cases__cta {
  --dots-offset: 18.65px;
}

.cases__cta::before {
  right: calc(100% + var(--dots-offset));
  width: 50vw;
  height: 5px;
  margin-top: -2.5px;
  --arrow-mask: radial-gradient(circle, #000 1.8px, transparent 2.3px) right center / 8.5px 5px repeat-x;
  background: radial-gradient(circle, var(--slate-dark) 1.8px, transparent 2.3px) right center / 8.5px 5px repeat-x;
}

/* PDF: the notched arrowhead, 22.3 x 16.3, tip at x 161.1, 6.5px short of
   the pill (as the products button's). */
.cases__cta::after {
  right: calc(100% + 8.5px);
  width: 22.3px;
  height: 16.3px;
  margin-top: -8.15px;
  background: var(--slate-dark);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 13.3% 50%);
}

/* The carousel's top is the card's: PDF y 4753.9, 68.4px under the top of
   the label's line box. Controls (the PDF shows none) hang below the
   card in the band slate, out of flow so the card alone sets the row
   heights; the section's bottom padding holds them. Start-aligned, so
   the controls stay under the card when the intro is the taller column. */
.cases__carousel {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: start;
  position: relative;
  margin-top: clamp(40px, 5.07vw, 68.4px);
  color: var(--slate-dark);
}

.cases .carousel__controls {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
}

/* One card: the photo, then the lower block. The card's geometry (the
   ribbon, shadow, mesh and pattern, the amount block's width, the
   details' inset and rule, the Read on pill) is in cqw of the card's
   width, 636.2px at 1350px, so it keeps the PDF's proportions at any
   width; type sizes use vw clamps like the rest of the page. */
.case-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
}

/* The frame follows the original photo proportions at every width. */
.case-card__media {
  position: relative;
  overflow: hidden;
}

.case-card__photo {
  width: 100%;
  height: auto;
}

/* The PDF's inner shadow along the photo's top edge: black at 73% on the
   first row, gone 11px down (sampled from the render against the bare
   photo). The left, right and bottom edges have none. */
.case-card__media::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 1.73cqw;
  background: linear-gradient(rgb(0 0 0 / 0.73), rgb(0 0 0 / 0.65) 18%, rgb(0 0 0 / 0.52) 36%, rgb(0 0 0 / 0.3) 55%, rgb(0 0 0 / 0.15) 73%, rgb(0 0 0 / 0));
  pointer-events: none;
}

/* The white mesh over the photo's right side: case-mesh.png is the PDF's
   own image (white, alpha baked in), placed at x 1110.9 to 1352.3 and
   y 4753.1 (0.8px above the photo), 241.5px wide, and clipped at x 1113,
   237px from the card's right edge. The lower block's pattern tile
   continues it from the block's top. */
.case-card__media::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 37.25cqw;
  background: url(../assets/case-mesh.png) right -0.362cqw top -0.126cqw / 37.96cqw auto no-repeat;
  pointer-events: none;
}

/* "FUNDED": PDF navy band from the left edge (y 4846.6 to 4903.4) to the
   top edge (x 859.2 to 948.0), 47.7px thick at 32.2deg, and Open Sans
   29.17px white on it (the PDF sets the ribbon in Open Sans, not
   Korolev). The band is a long box rotated about the text's center
   (91.2, 63.6px from the photo's corner), clipped by the photo frame.
   The line height puts the baseline 10.1px past the band's centerline,
   which centers the capitals on it. Real text, so it is read before the
   amount. */
.case-card__ribbon {
  position: absolute;
  top: 10cqw;
  left: 14.34cqw;
  z-index: 2;
  width: 56.6cqw;
  height: 7.5cqw;
  margin: 0;
  transform: translate(-50%, -50%) rotate(-32.2deg);
  background: var(--navy);
  color: var(--white);
  font-size: 4.585cqw;
  line-height: 7.12cqw;
  text-align: center;
  text-transform: uppercase;
}

/* PDF: #DFDFE9 from the photo to y 5384.8 (342.5px), with Task 2's
   pattern tile (2x, 237px wide) at its right edge from its top. The
   details and the button share one grid cell: the button sits at the
   bottom right over the free end of the details' column. */
.case-card__body {
  flex: 1 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  padding-bottom: var(--case-pad-bottom);
  background: var(--case-block) url(../assets/case-card-pattern.png) right top / 37.25cqw auto repeat-y;
}

/* PDF: a white block at 50% over #DFDFE9 (renders #EFEFF4), 366.1 x 75
   from the card's left edge; "$15,000,000" Minion Pro Bold 49.65px navy
   at x +44.4, baseline 56px down: the 4px top padding and 71px line put
   it there. */
.case-card__amount {
  justify-self: start;
  width: 57.55cqw;
  height: clamp(48px, 5.56vw, 75px);
  margin: 0;
  padding: clamp(2px, 0.3vw, 4px) 0 0 6.98cqw;
  background: color-mix(in srgb, var(--white) 50%, transparent);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.68vw, 49.65px);
  font-weight: 700;
  line-height: clamp(46px, 5.26vw, 71px);
}

/* PDF: Korolev Condensed, labels Bold, values Light, at x +50.6. The
   industry pair is 30.84px in #2470A2 on 27.8px baselines (first 48.7px
   under the amount block), with a 1.54px #004994 rule 328.7px long,
   20.6px under its value. The other pairs: labels 26.77px, values
   24.99px, black, on 27.7px baselines; 38px from the rule to the next
   label's baseline, 34px between pairs. The PDF's button bottom is level
   with the last baseline, 43px above the card's bottom; the negative
   margin ends the details' cell at that baseline rather than 5.2px below
   it, where its line box ends. */
.case-card__details {
  grid-row: 2;
  grid-column: 1;
  margin: 0 0 clamp(-5.2px, -0.39vw, -3.6px);
  padding: clamp(16px, 1.8vw, 24.3px) 0 0 7.96cqw;
  color: var(--case-ink);
  font-family: var(--font-condensed);
}

.case-card__details dt {
  font-size: clamp(16px, 1.99vw, 26.77px);
  font-weight: 700;
  line-height: clamp(20px, 2.06vw, 27.7px);
  text-transform: uppercase;
}

.case-card__details dd {
  margin: 0;
  font-size: clamp(15px, 1.86vw, 24.99px);
  font-weight: 300;
  line-height: clamp(20px, 2.06vw, 27.7px);
}

.case-card__detail + .case-card__detail {
  margin-top: clamp(4px, 0.47vw, 6.3px);
}

.case-card__detail--industry {
  width: min(51.67cqw, 100%);
  margin-bottom: clamp(10px, 1.07vw, 14.35px);
  padding-bottom: clamp(10px, 1.22vw, 16.45px);
  border-bottom: 1.5px solid var(--case-rule);
  color: var(--case-blue);
}

.case-card__detail--industry dt,
.case-card__detail--industry dd {
  font-size: clamp(18px, 2.29vw, 30.84px);
  line-height: clamp(20px, 2.06vw, 27.8px);
}

/* "Read on": PDF pill 210.9 x 59.1 with its 1.93px white stroke, right
   edge 59.2px in from the card's, bottom 42.8px above the card's; RF Rufo
   33.33px, so the .btn--condensed size. Korolev sets "Read on" 84.7px
   wide against RF Rufo's 80.1px, so the text starts 38.2px inside the
   border (PDF 40.2) and the gap to the dots is 10px (PDF 14.4) to keep
   the pill's width. Everything in the pill is in --u, 1px at the PDF's
   card width (0.1572cqw), so the pill and its arrow shrink with the card
   and never meet the details; it stops at 0.68, a 20px label. */
.case-card__cta {
  --u: clamp(0.68px, 0.1572cqw, 1px);
  --btn-fill: var(--slate-dark);
  grid-row: 2;
  grid-column: 1;
  align-self: end;
  justify-self: end;
  position: relative;
  justify-content: flex-start;
  min-width: calc(210.9 * var(--u));
  margin-right: calc(59.2 * var(--u));
  padding: 10px calc(84 * var(--u)) 10px calc(38.2 * var(--u));
  border: 2px solid var(--white);
  font-size: calc(29.7 * var(--u));
}

/* On the light block a white ring would not show. */
.case-card__cta:focus-visible {
  outline-color: var(--slate-dark);
}

.case-card__cta::before,
.case-card__cta::after {
  content: '';
  position: absolute;
  top: 50%;
}

/* Four dots stop at the arrowhead's back edge. The small gap keeps
   the final dot distinct through the entrance and ripple. */
.case-card__cta::before {
  right: calc(46.5 * var(--u));
  width: calc(31.48 * var(--u));
  height: calc(5 * var(--u));
  margin-top: calc(-2.5 * var(--u));
  --arrow-mask: radial-gradient(circle, #000 calc(1.8 * var(--u)), transparent calc(2.3 * var(--u))) right center / calc(7.87 * var(--u)) 100% repeat-x;
  background: radial-gradient(circle, var(--white) calc(1.8 * var(--u)), transparent calc(2.3 * var(--u))) right center / calc(7.87 * var(--u)) 100% repeat-x;
}

.case-card__cta::after {
  right: calc(24.2 * var(--u));
  width: calc(22.3 * var(--u));
  height: calc(16.3 * var(--u));
  margin-top: calc(-8.15 * var(--u));
  background: var(--white);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 13.3% 50%);
}

/* ==========================================================================
   Case card, wide (Our Approach)
   ========================================================================== */

/* The case card across the full page width: the photo, then the light
   block with the amount, the details and two paragraphs; no button.
   Measured from 36Street_WebDesignsv2-extra-pages-3.pdf at 1350px. The
   ribbon and the shadow keep the home card's pixel sizes rather than its
   proportions (the PDF draws them the same size on a card twice as
   wide), so the geometry is in --wu: 1px at 1350px and less below it,
   through the card's own width (cqw). Type uses vw clamps as elsewhere.
   Above 1350px everything holds its 1350px size. */
.case-card--wide {
  --wu: min(1px, 0.07408cqw);
  /* The ribbon stops shrinking at half size so its label stays legible. */
  --ribbon-u: max(0.5px, var(--wu));
  /* Above 1350px the card stays full-bleed while the page's content keeps
     its centered 1350px; the copy moves in by this much to stay on the
     page's left edge. */
  --bleed: max(0px, (100cqw - 1350px) / 2);
}

/* The inner shadow along the top edge, 11px as on the home card. */
.case-card--wide .case-card__media::before {
  height: calc(11 * var(--wu));
}

/* The mesh band at the right: the PDF's own wide mesh (case-mesh-wide.png,
   white, alpha baked in), 397.95 x 1291.5 from the photo's top edge at the
   page's right edge (PDF clip x 952.05 to 1350, y 1128 to 2421), drawn
   over the photo here and continued on the block below. */
.case-card--wide .case-card__media::after {
  width: calc(397.95 * var(--wu));
  background: url(../assets/case-mesh-wide.png) right top / 100% auto no-repeat;
}

/* PDF: the same ribbon as the home card's, at the same pixel size: the
   band meets the left edge 91.2 to 148.1px down and the top edge 145.5
   to 234.3px in. */
.case-card--wide .case-card__ribbon {
  top: calc(63.6 * var(--ribbon-u));
  left: calc(91.2 * var(--ribbon-u));
  width: calc(360 * var(--ribbon-u));
  height: calc(47.7 * var(--ribbon-u));
  font-size: calc(29.17 * var(--ribbon-u));
  line-height: calc(45.3 * var(--ribbon-u));
}

/* PDF: #DFDFE9 from the photo to y 2421.0, with the rest of the mesh,
   offset by the photo's height so it continues from the photo without a
   seam (the photo is 329.6 --wu tall at every width). Below 1350px the
   text grows taller than the mesh, which then ends above the block's
   bottom. Bottom: 108.4px under the last line box. */
.case-card--wide .case-card__body {
  display: block;
  padding-bottom: clamp(40px, 8.03vw, 108.4px);
  background: url(../assets/case-mesh-wide.png) right top calc(-100cqw * 601 / 2449) / calc(397.95 * var(--wu)) auto no-repeat, var(--case-block);
}

/* PDF: the 50% white block is 525.2 x 75 here, "$20,000,000" at x 203.4
   (baseline 56px down, as on the home card). It grows to fit its figure
   on narrow screens. */
.case-card--wide .case-card__amount {
  width: max-content;
  min-width: calc(525.2 * var(--wu) + var(--bleed));
  padding-right: 20px;
  padding-left: max(20px, calc(203.4 * var(--wu) + var(--bleed)));
}

/* PDF: the details at x 209.6, at 1.31 times the home card's sizes:
   industry Korolev Condensed 40.41px on 36.3px baselines (first 56.5px
   under the amount block), its rule 2px and 430.6px long, 21.7px under
   the value's line box; the other labels 35.07px, values 32.74px, on
   36.4px baselines, the next label's baseline 47.7px under the rule and
   8px between pairs. */
.case-card--wide .case-card__details {
  margin: 0;
  padding: clamp(16px, 1.83vw, 24.6px) 20px 0 max(20px, calc(209.6 * var(--wu) + var(--bleed)));
}

.case-card--wide .case-card__details dt {
  font-size: clamp(18px, 2.6vw, 35.07px);
  line-height: clamp(22px, 2.7vw, 36.4px);
}

.case-card--wide .case-card__details dd {
  font-size: clamp(17px, 2.43vw, 32.74px);
  line-height: clamp(22px, 2.7vw, 36.4px);
}

.case-card--wide .case-card__detail + .case-card__detail {
  margin-top: clamp(4px, 0.6vw, 8px);
}

.case-card--wide .case-card__detail--industry {
  width: max(200px, calc(430.6 * var(--wu)));
  max-width: 100%;
  margin-bottom: clamp(8px, 1.31vw, 17.6px);
  padding-bottom: clamp(10px, 1.61vw, 21.7px);
  border-bottom-width: 2px;
}

.case-card--wide .case-card__detail--industry dt,
.case-card--wide .case-card__detail--industry dd {
  font-size: clamp(20px, 3vw, 40.41px);
  line-height: clamp(22px, 2.69vw, 36.3px);
}

/* PDF: Korolev Condensed Light 29.17px black on 39.6px baselines, x 209.6,
   52.1px under the details; one blank line between the paragraphs. The
   975px measure breaks the first paragraph where the PDF does (the PDF's
   second paragraph has hand-set breaks no single measure reproduces);
   below 1350px the right padding keeps the text clear of most of the
   mesh, as at 1350. */
.case-card__text {
  padding: clamp(28px, 3.86vw, 52.1px) max(20px, calc(164 * var(--wu))) 0 max(20px, calc(209.6 * var(--wu) + var(--bleed)));
  color: var(--case-ink);
  font-family: var(--font-condensed);
  font-size: clamp(18px, 2.17vw, 29.17px);
  font-weight: 300;
  line-height: 1.357;
}

.case-card__text p {
  max-width: 975px;
  margin: 0;
}

.case-card__text p + p {
  margin-top: 1.357em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* On tablets, two cards per row leave room for the copy on each face. */
@media (min-width: 760px) and (max-width: 999.98px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tiles > .tile:last-child {
    grid-column: 2 / span 2;
  }
}

/* Case studies, one column below 900px: the intro's copy wraps into a
   column taller than the card there, so the two buttons would no longer
   be level. Label, copy, button, then the carousel with its controls in
   flow. The button goes right with the dotted line run in from the
   copy's left edge, as in the products intro on phones. */
@media (max-width: 899.98px) {
  .cases__inner {
    --inset-right: var(--inset);
    container-type: inline-size;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .cases__label,
  .cases__content,
  .cases__cta,
  .cases__carousel {
    grid-column: 1;
    grid-row: auto;
  }

  .cases__cta {
    justify-self: end;
    margin: 40px 0 0;
  }

  /* 100cqw is the column; the button sits flush right in it, so the line
     runs from the column's left edge: 100cqw less the button's padding
     box (100%), its 2px left border and the offset. */
  .cases__cta::before {
    width: calc(100cqw - 100% - 2px - var(--dots-offset));
  }

  .cases__carousel {
    margin-top: 40px;
  }

  .cases .carousel__controls {
    position: static;
    margin-top: 16px;
  }
}

/* Mobile: the stats wrap to two rows (the lead figure, then the other
   four), the testimonial photo moves above the quote, and the controls
   grow to 44px tap targets. The products photo moves above its copy, the
   button goes right with the dotted line run in from the copy's left edge
   (as Inspired does here), and the tiles become one column of stacked
   cards. */
@media (max-width: 759.98px) {
  .stats {
    --inset-left: var(--inset);
    --inset-right: var(--inset);
    padding: 36px 0 40px;
  }

  .stats__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .stats__item--lead {
    grid-column: 1 / -1;
  }

  .stats__value {
    font-size: 26px;
  }

  .stats__label {
    margin-top: 6px;
    font-size: 16px;
  }

  .stats__item--lead .stats__value {
    font-size: 32px;
  }

  .stats__item--lead .stats__label {
    font-size: 24px;
  }

  .testimonials {
    --inset-left: var(--inset);
    --inset-right: var(--inset);
    margin-top: 20px;
    padding: 40px 0 32px;
  }

  .testimonials__label,
  .testimonials .carousel__track {
    grid-area: auto;
  }

  .testimonials__label {
    margin-bottom: 16px;
    font-size: 16px;
  }

  .testimonial {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  /* A wider frame than the desktop's 332 x 237 keeps the photo from
     filling the screen above the quote. */
  .testimonial__photo {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .testimonial__figure {
    padding-top: 0;
  }

  .testimonial__quote,
  .testimonial__attribution {
    font-size: 18px;
    line-height: 1.45;
  }

  .testimonial__attribution {
    margin-top: 12px;
    padding-left: 0;
  }

  .testimonials .carousel__controls {
    margin-top: 24px;
  }

  .carousel__prev,
  .carousel__next {
    width: 44px;
    height: 44px;
  }

  .carousel__dot {
    width: 32px;
    height: 32px;
  }

  .carousel__dot::before {
    inset: 11px;
  }

  .products__intro {
    padding: 48px 0 56px;
  }

  .products__inner {
    --inset-right: var(--inset);
    --rule-gap: 24px;
    grid-template-columns: minmax(0, 1fr);
  }

  .products__image {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 4 / 3;
    margin: 0 0 40px;
  }

  .products__label {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .products__content {
    container-type: inline-size;
  }

  .products__title {
    font-size: 28px;
  }

  .products__body {
    font-size: 19px;
  }

  .products__cta {
    align-self: flex-end;
    min-width: 0;
    margin-top: 40px;
    padding-inline: 40px;
    font-size: 20px;
  }

  /* The button sits flush right in .products__content (the container),
     so the line runs from the container's left edge: 100cqw less the
     button's padding box (100%), its 2px left border and the offset. */
  .products__cta::before {
    width: calc(100cqw - 100% - 2px - var(--dots-offset));
  }

  .tiles {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tiles > .tile {
    grid-column: auto;
  }

  .tile {
    --pad-left: var(--inset);
    --pad-right: var(--inset);
  }

  .tile__title {
    padding: 28px 16px 24px;
    font-size: 34px;
  }

  .tile__back {
    padding-bottom: 24px;
  }

  .tile__text {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.45;
  }

  .tile__cta {
    margin-top: 20px;
    padding: 9px 32px;
    font-size: 22px;
    line-height: 26px;
  }

  /* Industry and case studies use smaller type and the page inset. */
  .industry__inner {
    --inset-left: var(--inset);
    --inset-right: var(--inset);
  }

  .industry__title {
    font-size: 24px;
  }

  .industry__text {
    font-size: 17px;
    line-height: 1.45;
  }

  .industry__strip {
    --photos-visible: 1.25;
  }

  .industry__photo {
    height: clamp(165px, 50vw, 245px);
  }

  .cases__inner {
    --rule-gap: 24px;
  }

  .cases__label {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .cases__title {
    font-size: 28px;
  }

  .cases__body {
    font-size: 19px;
  }

  .cases__cta {
    min-width: 0;
    padding-inline: 40px;
    font-size: 20px;
  }

  .cases__carousel {
    margin-top: 48px;
  }

  .case-card__body {
    grid-template-rows: auto auto auto;
  }

  .case-card__details {
    margin-bottom: 0;
  }

  .case-card__details dt {
    font-size: 18px;
    line-height: 22px;
  }

  .case-card__details dd {
    font-size: 17px;
    line-height: 22px;
  }

  .case-card__detail--industry dt,
  .case-card__detail--industry dd {
    font-size: 21px;
    line-height: 24px;
  }

  .case-card__cta {
    grid-row: 3;
    margin-top: 20px;
    margin-right: 7.96cqw;
  }
}

/* Narrow phones: the four figures no longer fit across, so the stats
   become one column. */
@media (max-width: 559.98px) {
  .stats__list {
    grid-template-columns: minmax(0, 1fr);
  }
}
