/* Expertise page: only what sits inside this page's own visuals. */

/* a tablet and a phone: the kit sets the words in the page's own colours under the photograph, but its
   data-box="none" data-tone="dark" rule is more specific and keeps them white; restate the kit's own values */
@media (max-width: 1023px) {
  .hero--photo[data-box="none"][data-tone="dark"] { --ink: var(--p-ink); --muted: var(--p-muted); --line: color-mix(in oklab, var(--p-ink) 11%, transparent); --line-strong: color-mix(in oklab, var(--p-ink) 20%, transparent); color: var(--p-ink); }
}

/* the headline a step smaller, so it stays on the dark side of the photograph in both languages */
.hero--photo { --ly-h1-xl: calc(var(--ly-scale) * clamp(44px, 1.905vw + 36.6px, 64px)); }

/* two ways: a product shot (the board, white ground) and a desk, one height */
#ways .panel { --p-h: 420px; background: var(--surface); }
#ways .panel .frame__img { width: 100%; height: 100%; object-fit: cover; }
#ways .panel .frame__img[src*="sensor-board"] { object-fit: contain; mix-blend-mode: multiply; }

/* the two headings that run past the kit's 760px head */
#disciplines .section-head, #process .section-head { max-width: none; }
#disciplines .section-head > p, #process .section-head > p { max-width: 62ch; }

/* disciplines: the six as rows, the diagram beside them */
#disciplines .rows { align-self: start; }
#disciplines .rows > li { padding-block: var(--s-3); }
#disciplines .rows > li:first-child { padding-top: 0; }
#disciplines .rows > li > p { grid-row: 2; }
#disciplines .rows h3 { font: 500 var(--t-body)/1.4 var(--font-text); letter-spacing: 0; }
.disc__panel { --p-h: 500px; padding: 0; overflow: hidden; border-radius: var(--r-lg); }
.disc__panel .dg { width: 100%; height: 100%; min-height: var(--p-h); }

/* what the team delivered: the six organisations as a register on a panel */
.clients__panel { --p-h: 460px; display: grid; place-items: center; padding: var(--s-6); border-radius: var(--r-lg); }
.clients { width: min(100%, 500px); padding: var(--s-5); display: grid; gap: 0; font-size: var(--t-body); color: var(--u-ink); }
.clients__title { margin: 0; font-weight: 500; }
.clients__note { margin: var(--s-1) 0 var(--s-3); }
.clients__rows { list-style: none; margin: 0; padding: 0; display: grid; }
.clients__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: baseline; padding: var(--s-3) 0; border-top: 1px solid var(--u-line); }
.clients__name { font-weight: 500; }
.clients__sector { text-align: right; }

/* the engagement: four stages as a small project tracker on a panel */
.proc__panel { --p-h: 380px; display: grid; place-items: center; padding: var(--s-6); border-radius: var(--r-lg); }
.proc { width: 100%; padding: var(--s-5) var(--s-6) var(--s-6); display: grid; gap: var(--s-5); font-size: var(--t-body); color: var(--u-ink); }
.proc__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.proc__title { font-weight: 500; }
.proc__note { color: var(--u-text-2); }
.proc__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--s-5); }
.proc__list li { position: relative; display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-6); }
.proc__list li::before { content: ""; position: absolute; left: 0; right: calc(-1 * var(--s-5)); top: 11px; height: 2px; background: var(--u-line-2); }
.proc__list li:last-child::before { right: 0; }
.proc__list li.is-done::before { background: var(--u-ink); }
.proc__list li:last-child::before { display: none; }
.proc__dot { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--u-bg); box-shadow: inset 0 0 0 2px var(--u-line-2); color: var(--u-bg); z-index: 1; }
.proc__dot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.proc__list li.is-done .proc__dot { background: var(--u-ink); box-shadow: none; }
.proc__list li.is-now .proc__dot { box-shadow: inset 0 0 0 2px var(--u-ink); }
.proc__list li.is-now .proc__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--u-accent); }
.proc__k { margin: 0; font-weight: 500; }
.proc__v { margin: 0; }

/* the questions as a definition list: the kit styles an h3 and a p, here dt and dd */
.faq { margin: 0; }
.faq__photo { width: 100%; aspect-ratio: 4 / 3; }
.faq > .faq__item > dt { font: 500 var(--t-lead)/1.4 var(--font-text); letter-spacing: 0; }
.faq > .faq__item > dd { margin: 0; max-width: 64ch; color: var(--ink); }

/* the terms of an engagement, drawn as a small card on a panel */
.terms__panel { --p-h: 560px; display: grid; place-items: center; padding: var(--s-6); border-radius: var(--r-lg); }
.terms { width: min(100%, 460px); padding: var(--s-5); display: grid; gap: var(--s-4); font-size: var(--t-body); color: var(--u-ink); }
.terms__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.terms__title { font-weight: 500; }
.terms__chip { padding: 2px var(--s-3); border: 1px solid var(--u-line-2); border-radius: 999px; font-size: var(--t-small); }
.terms__list { list-style: none; margin: 0; padding: 0; display: grid; }
.terms__list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--u-line); }
.terms__box { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--u-ink); color: var(--u-bg); }
.terms__box svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 640px) and (max-width: 1023px) {
  .disc__panel { --p-h: 200px; }
  /* the proof keeps its two columns on a tablet, so it stays one screen */
  #proof .span-5 { grid-column: 1 / span 6; }
  #proof .clients__panel { grid-column: 7 / span 6; }
  #faq .span-5 { grid-column: 1 / span 6; }
  #faq .faq { grid-column: 7 / span 6; }
  #faq .faq__item:nth-child(n+5) { display: none; }
  .faq__photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 639px) {
  .hero--photo { --photo: 36svh; }
  .disc__panel { --p-h: 170px; }
  #disciplines .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
  #disciplines .rows > li:nth-child(2) { padding-top: 0; }
  #disciplines .rows > li:nth-last-child(-n+2) { border-bottom: 0; }
  .proc__panel { --p-h: 0px; padding: var(--s-3); }
  .proc { padding: var(--s-4); }
  .proc__list { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .proc__list li { padding-top: 0; padding-left: 40px; align-content: center; min-height: 24px; }
  .proc__list li::before { left: 11px; right: auto; top: 12px; bottom: calc(-1 * var(--s-4) - 12px); width: 2px; height: auto; }
  .proc__list li:last-child::before { display: none; }
  .faq__photo { aspect-ratio: 16 / 7; }
  #ways .panel { --p-h: 88px; }
  #ways .panel .frame__img[src*="sensor-board"] { object-fit: cover; }
  .terms__panel { margin-top: var(--s-6); }
  .terms__panel { --p-h: 240px; padding: var(--s-4); }
  .clients__panel { --p-h: 0px; padding: var(--s-3); }
  .clients { padding: var(--s-4); }
  .clients__sector { max-width: 16ch; }
}
