/* Project stories and service examples. Kept separate from shared site fixes. */
.ta-project-detail .info_about_content-left.work > h1 {
  font-size: clamp(2.6rem, 5.4vw, 5.5rem);
  line-height: 1.03;
  max-width: 18ch;
}
.ta-project-detail .detail-content-dark,
.ta-project-detail .works-section {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 3rem;
}
.ta-project-detail .hero-text-box { max-width: 43rem; }
.ta-project-detail .info_about_content { row-gap: 2rem; }
.ta-project-detail #main .w-richtext:not(.info_about-rich-text-embed) {
  max-width: 60rem;
  padding-block: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.ta-project-detail #main .w-richtext h2,
.ta-project-detail .case-subheading {
  margin: 2rem 0 .65rem;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.case-story {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3.5rem;
  width: 100%;
  max-width: 78rem;
  padding: 2.5rem 0;
  margin-block: 1rem 2rem;
  border-top: 1px solid currentColor;
}
.case-story > div { min-width: 0; }
.case-story h2 {
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0 0 .8rem;
  letter-spacing: -.025em;
}
.case-story p, .case-story li { font-size: 1.0625rem; line-height: 1.65; }
.case-story p { margin: 0 0 .75rem; max-width: 60ch; }
.case-story ul { padding-left: 1.2rem; margin: 0; }
.case-figure { margin: 0; width: 100%; min-width: 0; }
.case-figure img { display: block; width: 100%; height: auto; border-radius: var(--_ui-styles---radius--medium, 12px); }
.case-figure figcaption, .case-caption {
  display: block;
  max-width: 70ch;
  padding: .75rem 0 1.5rem;
  font-size: .9375rem;
  line-height: 1.5;
  text-align: left;
}
.case-enquiry {
  background: var(--_primitives---opacity--grey, #dfdedd);
  color: var(--_primitives---opacity--black, #161514);
  padding: clamp(2rem, 5vw, 4rem) 3%;
}
.case-enquiry__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  max-width: 90rem;
  margin: 0 auto;
  border-top: 2px solid currentColor;
  padding-top: 2rem;
}
.case-enquiry h2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.05; margin: 0 0 1rem; letter-spacing: -.04em; }
.case-enquiry p { font-size: 1rem; line-height: 1.6; max-width: 56ch; }
.case-enquiry__links { display: flex; flex-wrap: wrap; align-content: start; gap: .65rem 1.25rem; }
.case-enquiry__links p { flex-basis: 100%; margin: 0; font-weight: 700; }
.case-enquiry__links a:not(.button) { text-decoration: underline; text-underline-offset: .2em; line-height: 1.5; }
/* Shared .button classes own colour, type, corners and hover states. */
.case-enquiry__button.button,
.service-brief-link.button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  max-height: none;
  min-height: 44px;
  white-space: normal;
  margin-top: .5rem;
}
.case-enquiry__button .icon-embed-xxsmall,
.service-brief-link .icon-embed-xxsmall { flex-shrink: 0; }
.case-enquiry a:focus-visible,
.service-brief-link:focus-visible,
.service-project:focus-visible {
  outline: 3px solid var(--_primitives---opacity--orange, #f60);
  outline-offset: 5px;
}
.ta-service-detail .padding-section-large.service { padding-top: 3rem; padding-bottom: 3rem; }
.ta-service-detail .info_faq-1_item { padding-block: 1.75rem; }
.ta-service-detail .services_text-rich-text { font-size: 1.0625rem; line-height: 1.6; }
.service-examples { background: var(--_primitives---opacity--dark-grey, #efefef); color: var(--_primitives---opacity--black, #161514); padding: 3rem 3%; }
.service-examples__inner { max-width: 90rem; margin-inline: auto; }
.service-examples h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -.04em; }
.service-examples__intro { max-width: 60ch; font-size: 1.0625rem; line-height: 1.6; margin-bottom: 2rem; }
.service-examples__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.service-examples__grid--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.service-project { display: block; min-width: 0; border-top: 1px solid currentColor; padding-top: 1rem; }
.service-project img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--_ui-styles---radius--medium, 12px); background: var(--_primitives---opacity--grey, #dfdedd); }
.service-project h3 { font-size: 1.4rem; line-height: 1.15; margin: 1rem 0 .5rem; letter-spacing: -.025em; }
.service-project p { font-size: 1rem; line-height: 1.5; margin-bottom: .75rem; }
.service-project span { display: inline-block; text-decoration: underline; text-underline-offset: .2em; font-size: .9375rem; }
.service-project:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
@media (min-width: 768px) and (max-width: 991px) {
  .ta-service-detail .info_about_content.services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .ta-service-detail .info_about_content.services > * { min-width: 0; }
  .ta-service-detail .hero-text-box { width: auto; max-width: 100%; }
}
@media (max-width: 767px) {
  .case-story, .case-enquiry__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .case-story { padding-block: 1.75rem; margin-block: .5rem 1rem; }
  .ta-project-detail .info_about_content-left.work > h1 { font-size: clamp(2.35rem, 10vw, 4.5rem); }
  .ta-project-detail .works-subheading { padding-top: 1.5rem; }
  .service-examples__grid, .service-examples__grid--two { grid-template-columns: 1fr; gap: 2rem; }
  .service-project img { max-height: 24rem; }
  .case-enquiry, .service-examples { padding: 2rem 5%; }
  .ta-service-detail .padding-section-large.service { padding-top: 2rem; padding-bottom: 2rem; }
  .ta-service-detail .info_about_content-left.services {
    min-height: 0;
    max-height: none;
    justify-content: flex-start;
    gap: 1.25rem;
  }
  .ta-service-detail .info_about_content-left.services > .margin-bottom { margin-bottom: 0; }
  .ta-service-detail .hero-text-box p { margin-bottom: 0; }
}

/* Keep project photography visible while the optional 3D viewer loads. */
.ta-project-detail .case-model-media { min-width: 0; display: block; }
.ta-project-detail .case-model-media .info_about-media-wrapper { height: auto; max-height: none; aspect-ratio: auto; }
.ta-project-detail .case-model-media .info_about-media-wrapper > img { display: block; width: 100%; height: auto; object-fit: contain; }
.case-model { width: 100%; margin-top: 1rem; }
.case-model summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: .85rem 1rem; border-radius: 12px; background: #dfdedd; color: #161514; cursor: pointer; font-size: .75rem; font-weight: 700; text-transform: uppercase; list-style: none; }
.case-model summary::-webkit-details-marker { display: none; }
.case-model summary::after { content: '+'; font-size: 1.25rem; line-height: 1; }
.case-model[open] summary::after { content: '−'; }
.case-model summary:focus-visible { outline: 2px solid #161514; outline-offset: 3px; }
.case-model iframe { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; margin-top: 1rem; border: 0; border-radius: 12px; }
.case-model p { margin: .75rem 0 0; font-size: .875rem; }
.case-model p a { text-decoration: underline; text-underline-offset: .2em; }
