.sa-section {
  --sa-line: #e0d8ec;
  --sa-accent: #6939b9;
  padding-block: clamp(32px, 4vw, 64px);
  color: #241a35;
  scroll-margin-top: 85px;
}
.sa-section + .sa-section { border-top: 1px solid var(--sa-line); }
.sa-section > h2 {
  margin: 0 0 clamp(22px, 3vw, 38px);
  max-width: 28ch;
  font-size: clamp(29px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.sa-section :is(p, li, td, th) { overflow-wrap: break-word; }
.sa-roles, .sa-portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sa-roles article { padding: clamp(20px, 2vw, 28px); border: 1px solid var(--sa-line); border-radius: 16px; }
.sa-roles h3, .sa-portfolio-grid h3 { margin: 0; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.24; font-weight: 600; }
.sa-roles p, .sa-portfolio-grid p { margin: 10px 0 0; color: #594f67; max-width: 69ch; font-size: 17px; line-height: 1.5; }
.sa-portfolio-grid { row-gap: 32px; }
.sa-portfolio-grid img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 452; object-fit: contain; border-radius: 16px; border: 1px solid var(--sa-line); background: #f6f3fa; }
.sa-portfolio-grid h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.sa-portfolio-grid svg { color: var(--sa-accent); flex: 0 0 20px; }
.sa-portfolio-grid a:hover h3 { color: var(--sa-accent); }
.sa-accordion { max-width: 1040px; }
.sa-accordion details { border-top: 1px solid var(--sa-line); }
.sa-accordion details:last-child { border-bottom: 1px solid var(--sa-line); }
.sa-accordion summary { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; list-style: none; cursor: pointer; font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; line-height: 1.35; }
.sa-accordion summary::-webkit-details-marker { display: none; }
.sa-step { color: var(--sa-accent); font-size: 14px; font-variant-numeric: tabular-nums; align-self: center; }
.sa-toggle { position: relative; align-self: center; margin-left: auto; min-width: 18px; height: 18px; }
.sa-toggle::before, .sa-toggle::after { content: ''; position: absolute; background: var(--sa-accent); inset: 8px 2px; }
.sa-toggle::after { transform: rotate(90deg); }
.sa-accordion details[open] .sa-toggle::after { display: none; }
.sa-accordion :is(p, ul) { max-width: 78ch; margin: 0 0 18px; font-size: 17px; line-height: 1.62; color: #50465d; }
.sa-accordion ul { padding-left: 26px; }
.sa-accordion li + li { margin-top: 6px; }
.sa-section :is(a,summary):focus-visible { outline: 2px solid var(--sa-accent); outline-offset: 3px; border-radius: 4px; }
.sa-matrix { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; font-size: 16px; line-height: 1.5; }
.sa-matrix :is(th,td) { text-align: left; vertical-align: top; padding: 16px clamp(12px,1.4vw,22px); border-bottom: 1px solid var(--sa-line); }
.sa-matrix thead th { background: #f0e9fa; color: #4a2d70; }
.sa-matrix tr > :first-child { width: 23%; font-weight: 600; }
.sa-matrix thead th:first-child { border-top-left-radius: 14px; }
.sa-matrix thead th:last-child { border-top-right-radius: 14px; }
.sa-column-label { display: none; }
@media (max-width: 700px) {
  .sa-roles,.sa-portfolio-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .sa-portfolio-grid { row-gap: 26px; }
  .sa-matrix,.sa-matrix tbody { display: block; }
  .sa-matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sa-matrix tr { display: block; border: 1px solid var(--sa-line); border-radius: 14px; overflow: hidden; }
  .sa-matrix tr + tr { margin-top: 12px; }
  .sa-matrix tbody :is(th,td) { display: block; width: auto; padding: 10px 14px; border-bottom: 0; }
  .sa-matrix tbody th:first-child { width: auto; background: #f3eef9; }
  .sa-column-label { display: block; color: var(--sa-accent); font-size: 14px; font-weight: 600; }
}
