/* Refine the specialty story: align the heading meta and let the active discipline breathe. */
@media (min-width: 721px) {
  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .focus-head {
    grid-template-columns: minmax(0, 1fr) minmax(235px, 310px);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: clamp(18px, 3vw, 42px);
    row-gap: 9px;
    margin-bottom: clamp(16px, 2.3vh, 26px);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .focus-head > div {
    display: contents;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .focus-head .eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .focus-head .expertise-heading-meta {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    max-width: 310px;
    margin: 0;
    padding: 0 0 0 14px;
    border-left: 1px solid rgba(16, 45, 61, .18);
    border: 0;
    color: #607b87;
    font-size: clamp(9px, .72vw, 10px);
    line-height: 1.45;
    letter-spacing: .12em;
    text-align: right;
    white-space: normal;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .focus-head h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 30ch;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail {
    padding: clamp(26px, 3vw, 44px);
    border-left-width: 4px;
    background: rgba(255, 255, 255, .54);
    box-shadow: 0 18px 46px rgba(16, 45, 61, .07);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail-number {
    font-size: clamp(60px, 5vw, 78px);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail h3 {
    font-size: clamp(26px, 2.2vw, 34px);
    line-height: 1.12;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail > p {
    max-width: 46ch;
    margin-top: 12px;
    font-size: clamp(14px, 1.03vw, 16px);
    line-height: 1.55;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail-link {
    min-height: 42px;
    margin-top: 16px;
    padding-inline: 17px;
    font-size: 11px;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-controls {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    transition: grid-template-rows .72s cubic-bezier(.2, .75, .25, 1);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-controls:has(.expertise-choice:nth-of-type(1)[aria-pressed="true"]) {
    grid-template-rows: minmax(0, 1.34fr) minmax(0, .83fr) minmax(0, .83fr);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-controls:has(.expertise-choice:nth-of-type(2)[aria-pressed="true"]) {
    grid-template-rows: minmax(0, .83fr) minmax(0, 1.34fr) minmax(0, .83fr);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-controls:has(.expertise-choice:nth-of-type(3)[aria-pressed="true"]) {
    grid-template-rows: minmax(0, .83fr) minmax(0, .83fr) minmax(0, 1.34fr);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-choice {
    grid-template-rows: auto auto auto;
    gap: 5px 15px;
    padding: 12px 17px 12px 27px;
    transition: color .35s ease, background-color .35s ease, border-color .35s ease,
      box-shadow .45s ease, padding .55s cubic-bezier(.2, .75, .25, 1);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-choice[aria-pressed="true"] {
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 30px rgba(16, 45, 61, .075);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-choice-number {
    grid-row: 1 / span 3;
    font-size: clamp(34px, 3.2vw, 44px);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-choice[aria-pressed="true"] .expertise-choice-number {
    transform: translateX(2px) scale(1.09);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-choice-title {
    grid-row: 1;
    font-size: clamp(16px, 1.35vw, 19px);
    transition: font-size .45s cubic-bezier(.2, .75, .25, 1), color .3s ease;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-choice-note {
    grid-row: 2;
    margin-top: 1px;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-choice-description {
    display: block !important;
    grid-column: 2;
    grid-row: 3;
    max-width: 44ch;
    max-height: 0;
    margin: 0;
    padding-top: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    color: #526e7c;
    font-size: clamp(12px, .92vw, 14px);
    line-height: 1.45;
    opacity: 0;
    transform: translateY(-5px);
    transition: max-height .5s cubic-bezier(.2, .75, .25, 1), margin .42s ease,
      padding .42s ease, border-color .42s ease, opacity .35s ease, transform .45s ease;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-choice[aria-pressed="true"] .expertise-choice-description {
    max-height: 5em;
    margin-top: 6px;
    padding-top: 8px;
    border-top-color: rgba(16, 45, 61, .13);
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .focus-head {
    grid-template-columns: minmax(0, 1fr) minmax(175px, 235px);
    column-gap: 14px;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .focus-head .expertise-heading-meta {
    font-size: 8px;
    letter-spacing: .09em;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .focus-head .expertise-heading-meta {
    padding-left: 10px;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail {
    padding: 18px 17px;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail-number {
    font-size: 48px;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail h3 {
    font-size: clamp(20px, 2.1vw, 23px);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail > p {
    margin-top: 7px;
    font-size: 12px;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail-link {
    min-height: 35px;
    margin-top: 9px;
  }
}

@media (min-width: 721px) and (max-height: 680px) {
  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .focus-head h2 {
    font-size: clamp(32px, 3vw, 42px);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail {
    padding: 18px 22px;
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail-number {
    font-size: clamp(50px, 4vw, 64px);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail h3 {
    font-size: clamp(22px, 1.8vw, 29px);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail > p {
    margin-top: 8px;
    font-size: clamp(12px, .9vw, 14px);
  }

  .studio[data-page="/"] #expertise.has-showcase.expertise-pin-story.expertise-layout-v109 .expertise-detail-link {
    min-height: 36px;
    margin-top: 10px;
  }
}

@media (max-width: 720px) {
  .studio[data-page="/"] #expertise.has-showcase:not(.expertise-pin-story) .focus-head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 8px;
    margin-bottom: 23px;
  }

  .studio[data-page="/"] #expertise.has-showcase:not(.expertise-pin-story) .focus-head > div {
    display: contents;
  }

  .studio[data-page="/"] #expertise.has-showcase:not(.expertise-pin-story) .focus-head .eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .studio[data-page="/"] #expertise.has-showcase:not(.expertise-pin-story) .expertise-heading-meta {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: #607b87;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: .1em;
  }

  .studio[data-page="/"] #expertise.has-showcase:not(.expertise-pin-story) .focus-head h2 {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio[data-page="/"] #expertise.has-showcase .expertise-controls,
  .studio[data-page="/"] #expertise.has-showcase .expertise-choice,
  .studio[data-page="/"] #expertise.has-showcase .expertise-choice-number,
  .studio[data-page="/"] #expertise.has-showcase .expertise-choice-title,
  .studio[data-page="/"] #expertise.has-showcase .expertise-choice-description {
    transition: none !important;
    transform: none !important;
  }
}
