.expert-page {
  --expert-color: #a4d5fb;
  --expert-light: #d9ecfc;
  --expert-ribbon: #72b74a;
}

.expert-page--web {
  --expert-color: #e6c8f9;
  --expert-light: #f2e1fb;
  --expert-ribbon: #d65e4a;
}

.expert-page--ia {
  --expert-color: #ffac94;
  --expert-light: #fbe5dc;
  --expert-ribbon: #9a6a18;
}

.expert-hero {
  overflow: clip;
  padding-block: clamp(7rem, 11.2vw, 10.5rem) clamp(3.5rem, 7vw, 6.5rem);
  background: var(--expert-color);
}

.expert-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.expert-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.15rem, 6.45vw, 6.5rem);
  text-wrap: balance;
}

.expert-hero .eyebrow span, .expert-example .eyebrow span { background: var(--expert-ribbon); }
.expert-lead {
  max-width: 35ch;
  margin-top: 1.45rem;
  font-size: clamp(1.05rem, 1.65vw, 1.36rem);
  line-height: 1.5;
}

.expert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1.2rem;
  margin-top: 1.75rem;
}

.expert-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .48rem;
  font-weight: 570;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.expert-link:hover { text-decoration-thickness: 2px; }
.expert-illustration { display: block; width: 100%; height: auto; overflow: visible; }

.expert-uses {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.8rem, 7vw, 7.5rem);
  padding-block: clamp(4rem, 8vw, 8rem);
}

.expert-uses h2, .expert-example h2 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 5.75vw, 5.45rem);
  text-wrap: balance;
}

.expert-uses ul, .expert-example ol { padding: 0; margin: 0; list-style: none; }
.expert-uses li {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  align-items: start;
  gap: .9rem;
  padding-block: clamp(1rem, 2.2vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}

.expert-uses li:first-child { border-top: 1px solid var(--line); }
.expert-uses li > span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--expert-light);
  font-size: .85rem;
  font-weight: 650;
}

.expert-uses h3, .expert-example h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.expert-uses li p, .expert-example li p {
  margin-top: .6rem;
  font-size: clamp(.98rem, 1.25vw, 1.1rem);
  line-height: 1.55;
}

.expert-example {
  padding-block: clamp(3.5rem, 7vw, 6.6rem);
  background: var(--expert-light);
}

.expert-example .expert-lead { max-width: 48ch; }
.expert-example ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.45rem);
  margin-top: clamp(1.85rem, 5vw, 4.2rem);
}

.expert-example ol::before {
  position: absolute;
  top: 2.8rem;
  right: 4%;
  left: 4%;
  height: .7rem;
  border-radius: 1rem;
  background: var(--expert-ribbon);
  content: '';
}

.expert-example li {
  position: relative;
  padding: clamp(1.25rem, 2.3vw, 2rem);
  border-radius: clamp(1.25rem, 2.8vw, 2.5rem);
  background: var(--white);
}

.expert-example li > span {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: var(--expert-color);
  font-weight: 650;
}

.expert-contact { background: var(--green); }
.expert-contact h2 { max-width: 15ch; margin-inline: auto; font-size: clamp(2.8rem, 6.8vw, 6.2rem); text-wrap: balance; }
.expert-contact .expert-actions { justify-content: center; }
.expert-footer-links { display: flex; flex-wrap: wrap; column-gap: 1.1rem; }
.expert-footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .92rem; }
.expert-footer-links a:hover { text-decoration: underline; text-underline-offset: .25em; }

@media (prefers-reduced-motion: no-preference) {
  .expert-illustration { animation: expert-entrance .75s cubic-bezier(.22, 1, .36, 1) both; }
  .expert-ribbon {
    stroke-dasharray: 1;
    animation: expert-draw 1.2s .1s cubic-bezier(.33, 0, .26, 1) both;
  }
  @keyframes expert-entrance {
    from { opacity: .25; transform: translateY(.8rem) rotate(-2deg); }
    to { opacity: 1; transform: none; }
  }
  @keyframes expert-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
  }
}

@media (max-width: 45rem) {
  .expert-hero-layout, .expert-uses, .expert-example ol { grid-template-columns: minmax(0, 1fr); }
  .expert-hero-layout { gap: 1.7rem; }
  .expert-hero h1 { max-width: 13ch; font-size: clamp(2.8rem, 10.8vw, 4.7rem); }
  .expert-illustration { width: min(100%, 29rem); margin-inline: auto; }
  .expert-example ol::before { inset: 1.5rem auto 1.5rem 2.45rem; width: .6rem; height: auto; }
}
