/* Engagements (engagements.html, engagements.js), made of pieces the site already has. Layout lives here; the look comes
   from the originals:
   - the hero: service pages (.ip-rooted--center, v2/v2.css)
   - three goals as columns: the home page's Services (.srv-cols, services-columns.css)
   - the rows, with the line on the left when picked, and the card: industry pages (.ip-pick-list, .ip-pick-card, industry.css)
   - the plus sign: the home page FAQ. The boxes: the home page's Security. The timelines: the home page's How we work
   Text keeps to four sizes: title (--title-size), 1.2rem, 1rem and .875rem (the customer stories keep their own). */
.ec-panel[hidden] { display: none; }
.v2 #main > section.ec-hero { position: relative; border-bottom: 1px solid var(--line); }
.ec-peek { position: absolute; right: calc(max(0px, (100% - var(--wrap)) / 2) + var(--gutter) + clamp(1rem, 4vw, 4rem)); bottom: 0; width: clamp(130px, 19vw, 260px); overflow: hidden; pointer-events: none; }
.ec-peek g { transition: transform 140ms ease-out; }

/* Columns */
#engagements .srv-cols { align-items: start; }
#engagements .srv-col { padding-top: 1.25rem; }
.v2 #main > [data-tone] .ec-gh.is-in { max-width: none; margin: 0 0 1.1rem; font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; animation: none; opacity: 1; }
#engagements .ip-pick-list { border-right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#engagements .ip-pick-list button { --pick-pad: 1.1rem; --pick-inset: 1rem; padding-right: 1rem; font-size: 1rem; color: var(--ink); }
/* The plus from the home page FAQ, turning to a cross while the card is open */
#engagements .ip-pick-list button::after { content: "+"; content: "+" / ""; flex: none; align-self: flex-start; margin-left: auto; font-size: 1.2rem; font-weight: 400; line-height: 1.1; color: var(--graphite); transition: transform 300ms cubic-bezier(.32, .72, 0, 1); }
#engagements .ip-pick-list button[aria-expanded="true"]::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { #engagements .ip-pick-list button::after { transition: none; } }
.ec-l { display: block; margin-top: .25rem; font-size: .875rem; font-weight: 400; letter-spacing: 0; line-height: 1.45; color: var(--text-muted); }

/* The card: what it is, how it works, what you get */
.ec-panel { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, .8fr); gap: clamp(1.75rem, 3.5vw, 3rem); align-items: start; margin-top: 1.75rem; scroll-margin: 90px 0 24px; }
.ec-panel :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
.ip-pick-card.ec-panel h3 { font-size: 1.2rem; }
.ip-pick-card.ec-panel p { font-size: 1rem; line-height: 1.5; }
.ip-pick-card.ec-panel .ip-pick-k { margin: .2rem 0 .9rem; font-size: .875rem; color: var(--forest); }
.ec-what p { margin: .75rem 0 1.25rem !important; }
.ec-do b { font-size: 1rem; font-weight: 500; line-height: 1.35; }
.ip-pick-card.ec-panel .ec-do li p { font-size: .875rem; }
.ec-do .is-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.25rem; }
.ec-get li { padding: 0 0 .55rem; font-size: 1rem; line-height: 1.35; }

.v2 .ec-hero .lede { font-size: 1.2rem; }
.v2 .kicker { font-size: .875rem; }
.v2 #main > #spotlight h2 { font-size: var(--title-size); }

/* Colors: the home page's white Services section with its dark partner card (partner-news.css) */
.v2 #main > section#engagements { background: var(--white); }
#engagements .ip-pick-card { background: var(--ink); border-color: transparent; color: var(--paper); }
#engagements .ip-pick-card.ec-panel p { color: rgba(247, 243, 234, .75); }
#engagements .ip-pick-card.ec-panel .ip-pick-k { color: var(--mint); }
#engagements .ip-pick-card :focus-visible { outline-color: var(--mint); }

/* How it works: the home page's How we work line, a dot per step */
.is-steps .ec-do li { position: relative; display: block; margin: 0; padding: 0 0 1rem 1.75rem; }
.is-steps .ec-do li:last-child { padding-bottom: 0; }
.is-steps .ec-do li::before { content: ""; position: absolute; left: 0; top: .4rem; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); }
.is-steps .ec-do li:not(:last-child)::after { content: ""; position: absolute; left: 4.5px; top: calc(.4rem + 11px); bottom: -.4rem; width: 2px; background: rgba(247, 243, 234, .18); }
.ec-do li + li { margin-top: 0; }
/* A set, in no order (the workshop's questions, the six scores): the home page's security boxes along the card's foot */
.is-set .ec-do { --rule: rgba(247, 243, 234, .18); }
.is-set .ec-do li { display: block; }
@media (min-width: 861px) {
  .ec-panel.is-set { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); row-gap: 1.75rem; }
  .ec-panel.is-set .ec-what { grid-column: auto; }
  .is-set .ec-do { grid-column: 1 / -1; order: 3; }
  .is-set .ec-do ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: solid var(--rule); border-width: 1px 0; }
  .is-set .ec-do li { padding: 1rem 1.25rem; border-right: 1px solid var(--rule); }
  .is-set .ec-do li:nth-child(3n) { border-right: 0; }
  .is-set .ec-do li:nth-child(3n + 1) { padding-left: 0; }
  .is-set .ec-do .is-two li:nth-child(-n + 3) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 860px) { .is-set .ec-do ol:not(.is-two) li + li { margin-top: .8rem; } }

/* How it works: the home page's How we work timeline (how-we-work.css), in this page's text sizes */
#how .how-num { font-size: var(--title-size); }
#how .how-tag { font-size: .875rem; }
#how .how-text h3 { font-size: 1.2rem; }
#how .how-text p:last-child { font-size: 1rem; }
#how .how-step:not(:last-child) { padding-bottom: clamp(3rem, 8vh, 5rem); }

@media (max-width: 1000px) and (min-width: 861px) { .ec-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ec-what { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .ec-panel { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1rem; }
}
@media (max-width: 900px) {
  .ec-peek { right: 50%; width: 180px; transform: translateX(50%); }
  .v2 #main > section.ec-hero { padding-bottom: 9rem; }
}
@media (prefers-reduced-motion: reduce) { .ec-peek g { transition: none; } }
