/* The managed IT story uses the existing brand palette and Inter throughout. */
.it-story {
  --story-gap: clamp(36px, 6vw, 112px);
}

.it-story h1, .it-story h2, .it-story h3 {
  font-weight: 500;
}

.it-story h2 {
  font-size: clamp(32px, 3.3vw, 54px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

.it-story p {
  max-width: 60ch;
}

.it-story .micro {
  margin-bottom: 26px;
}

.story-hero {
  padding-top: 64px;
  padding-bottom: 88px;
}

.story-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--story-gap);
}

.story-opening h1 {
  font-size: clamp(48px, 5.1vw, 88px);
  line-height: 1.06;
  letter-spacing: -.05em;
  text-wrap: initial;
  max-width: 15ch;
}

.story-intro p, .story-scene-body p, .story-prose p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.story-link, .story-details a {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.story-link {
  margin-top: 10px;
  font-size: 14px;
}

.story-scene {
  background: #e4e7df;
  padding: 72px 0;
}

.story-scene-grid, .story-handover-grid, .story-practical, .story-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--story-gap);
}

.story-scene-heading h2 {
  max-width: 14ch;
}

.story-scene-heading > p:last-child {
  margin-top: 24px;
  max-width: 33ch;
  font-size: 18px;
  line-height: 1.6;
}

.story-scene-body {
  padding-top: 42px;
}

.it-story .story-takeaway {
  border-top: 1px solid #9eaca5;
  padding-top: 24px;
  margin-top: 28px;
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -.02em;
}

.story-care {
  padding-top: 88px;
  padding-bottom: 88px;
}

.story-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--story-gap);
  padding-bottom: 48px;
}

.story-section-heading .micro {
  padding-top: 8px;
}

.story-care-rows article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--story-gap);
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.story-care-rows h3 {
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -.025em;
}

.story-care-rows p, .story-practical p {
  font-size: 16px;
  line-height: 1.8;
}

.story-handover {
  background: var(--navy);
  color: var(--paper);
  padding: 88px 0;
}

.story-handover h2 {
  max-width: 17ch;
}

.story-handover .story-takeaway {
  border-color: #6d818b;
}

.story-practical {
  padding-top: 88px;
  padding-bottom: 72px;
}

.story-practical-heading h2 {
  max-width: 15ch;
  margin-bottom: 24px;
}

.story-practical-heading > p:last-child {
  max-width: 38ch;
}

.story-details details {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 30px;
}

.story-details details:last-child {
  border-bottom: 1px solid var(--line);
}

.story-details summary {
  cursor: pointer;
  font-size: 20px;
  line-height: 1.4;
  padding-right: 12px;
}

.story-details p {
  margin-top: 20px;
}

.story-details a {
  font-size: 14px;
}

.story-separator {
  padding: 0 8px;
}

.story-next {
  padding-bottom: 72px;
}

.story-next p {
  max-width: 55ch;
  font-size: 20px;
  line-height: 1.55;
}

.story-contact {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.story-contact-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end;
}

.story-contact h2 {
  max-width: 20ch;
}

.story-contact p:not(.micro) {
  margin-top: 24px;
  margin-bottom: 24px;
  font-size: 16px;
}

.story-contact .action {
  margin-top: 12px;
  display: inline-block;
}

.story-contact aside {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.story-contact aside > a {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
}

@media (min-width: 1800px) {
  .story-hero, .story-care, .story-practical {
    padding-top: 112px;
    padding-bottom: 112px;
  }

  .story-opening h1 {
    font-size: clamp(88px, 4.5vw, 112px);
  }
}

@media (max-width: 1050px) {
  .story-opening {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .story-intro p, .story-scene-body p, .story-prose p {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .story-opening, .story-scene-grid, .story-handover-grid,
  .story-practical, .story-contact-grid, .story-section-heading,
  .story-care-rows article {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .story-hero, .story-care, .story-practical, .story-contact {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .story-opening h1 {
    font-size: clamp(40px, 9.5vw, 65px);
    max-width: 17ch;
  }

  .story-scene, .story-handover {
    padding: 48px 0;
  }

  .story-scene-body {
    padding-top: 0;
  }

  .story-section-heading {
    padding-bottom: 28px;
    gap: 0;
  }

  .story-care-rows article {
    padding: 24px 0;
    gap: 14px;
  }

  .story-care-rows h3 {
    font-size: 22px;
  }

  .story-contact aside {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .story-next {
    padding-bottom: 48px;
  }

  .story-separator {
    display: none;
  }

  .story-details p > a {
    display: block;
    margin-bottom: 12px;
  }
}

/* Keep detailed offers available without interrupting the service narrative. */
.story-related {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding-bottom: 64px;
}

.story-catalogue {
  padding-top: 48px;
  padding-bottom: 64px;
}

.story-catalogue > h2 {
  max-width: 24ch;
  margin-bottom: 40px;
}

.story-catalogue > details {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.story-catalogue > details:last-child {
  border-bottom: 1px solid var(--line);
}

.story-catalogue > details > summary {
  font-size: 22px;
  cursor: pointer;
}

.story-catalogue .inner-section {
  padding: 32px 0 0;
  border: 0;
}

.story-catalogue .inner-section > .container {
  padding: 0;
  max-width: none;
}

.it-story .story-catalogue .inner-section h2 {
  font-size: 30px;
}

.service-story .story-opening {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.service-story .story-opening h1 {
  font-size: clamp(44px, 4.7vw, 80px);
  max-width: 17ch;
}

.service-story .calc-section {
  border-top: 1px solid var(--line);
}

@media (min-width: 1800px) {
  .service-story .story-opening h1 {
    font-size: clamp(80px, 4.3vw, 104px);
  }
}

@media (max-width: 760px) {
  .service-story .story-opening {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-story .story-opening h1 {
    font-size: clamp(38px, 9vw, 60px);
  }

  .story-related {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
  }

  .story-catalogue {
    padding-top: 16px;
    padding-bottom: 40px;
  }
}
