.sg {
  --sg-ink: #185b49;
  --sg-text: #223c32;
  --sg-rule: #a4b8a5;
  --sg-soft: #4b6354;
  box-sizing: border-box;
  container-type: inline-size;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 3.1%, 32px) clamp(18px, 3.9%, 36px) clamp(16px, 2.7%, 27px);
  border: 1px solid #cad7c6;
  color: var(--sg-text);
  background: linear-gradient(145deg, #edf2e8 1%, #e1ebdc 62%, #edf1e6);
}
.sg *, .sg *::before, .sg *::after { box-sizing: border-box; }
.sg .sg__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  column-gap: 1em;
  margin: 0;
  color: var(--sg-ink);
  font: 600 clamp(13px, 2.35cqi, 17px)/1.3 var(--sans, sans-serif);
}
.sg .sg__caption > :last-child {
  color: var(--sg-soft);
  font: 400 clamp(10px, 1.6cqi, 12px)/1.3 var(--mono, monospace);
}
.sg__plate {
  display: block;
  width: 100%;
  height: clamp(130px, 34.9cqi, 266px);
  margin: clamp(5px, 1cqi, 8px) 0 0;
  overflow: visible;
}
.sg__surface { fill: #89aa90; fill-opacity: .24; }
.sg__engrave { color: #24614c; stroke-width: .95; }
.sg__shine { color: #0e4132; stroke-width: 1.75; }
.sg__leader, .sg__flow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.sg__leader { stroke: #719782; stroke-width: 1.05; }
.sg__flow { opacity: 0; stroke: #124c39; stroke-width: 3.3; }
.sg__register { fill: #ecf2e7; stroke: #225840; stroke-width: 1.6; }
.sg__notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 4%;
}
.sg__note {
  position: relative;
  min-width: 0;
  padding: 1px clamp(2px, .5cqi, 4px) 0 clamp(10px, 1.9cqi, 15px);
}
.sg__note::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  height: clamp(19px, 4cqi, 30px);
  width: 1px;
  background: #719782;
}
.sg__note--1::before { left: .28cqi; }
.sg__speaker {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px clamp(5px, 1.15cqi, 9px);
  margin: 0 0 clamp(5px, 1.1cqi, 8px);
  color: var(--sg-ink);
  font: 600 clamp(12px, 1.95cqi, 15px)/1.18 var(--sans, sans-serif);
}
.sg__speaker time {
  color: var(--sg-soft);
  font: 400 clamp(10px, 1.6cqi, 12px)/1.12 var(--mono, monospace);
  font-variant-numeric: tabular-nums;
}
.sg .sg__note blockquote {
  border: 0;
  max-width: 18ch;
  margin: 0;
  padding: 0;
  color: var(--sg-ink);
  font: 400 clamp(23px, 4.7cqi, 38px)/1.04 var(--serif, Georgia, serif);
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.sg__note blockquote > span { position: relative; white-space: nowrap; }
.sg__note blockquote > span::after {
  position: absolute;
  content: '';
  left: 0;
  right: 0;
  bottom: -.055em;
  height: max(1px, .055em);
  background: #719982;
  transform-origin: left;
}
.sg__note--1 blockquote > span::after { background: #9db4a0; }
.sg__record {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(17px, 3.4cqi, 26px);
  border-top: 1px solid #b7c9b7;
  padding-top: clamp(10px, 2.1cqi, 16px);
}
.sg__record p {
  margin: 0;
  color: var(--sg-text);
  font: 400 clamp(12px, 1.9cqi, 14px)/1.35 var(--sans, sans-serif);
}
.sg__record strong { color: var(--sg-ink); font-weight: 700; }
.sg__record-mark {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  position: relative;
  border-radius: 50%;
  background: #215d46;
}
.sg__record-mark::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 4px;
  left: 4px;
  top: 4px;
  border-left: 1.5px solid #f6f8ed;
  border-bottom: 1.5px solid #f6f8ed;
  transform: rotate(-45deg);
}
@container (max-width: 410px) {
  .sg__plate { height: clamp(105px, 34.5cqi, 142px); }
  .sg .sg__note blockquote { font-size: clamp(20px, 6.15cqi, 25px); line-height: 1.03; }
}
@media (prefers-reduced-motion: no-preference) {
  .sg[data-loop] .sg__window,
  .sg[data-loop] .sg__flow,
  .sg[data-loop] .sg__note blockquote > span::after,
  .sg[data-loop] .sg__record-mark {
    animation-duration: var(--scene-cycle);
    animation-delay: var(--loop-offset, 0s);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
  }
  .sg[data-loop] .sg__window--1 { animation-name: sg-first; }
  .sg[data-loop] .sg__window--2 { animation-name: sg-second; }
  .sg[data-loop] .sg__flow { stroke-dasharray: 35 140; }
  .sg[data-loop] .sg__flow--1 { animation-name: sg-first-fibre; }
  .sg[data-loop] .sg__flow--2 { animation-name: sg-second-fibre; }
  .sg[data-loop] .sg__note blockquote > span::after { background: var(--sg-ink); }
  .sg[data-loop] .sg__note--1 blockquote > span::after { animation-name: sg-proposal; }
  .sg[data-loop] .sg__note--2 blockquote > span::after { animation-name: sg-agreement; }
  .sg[data-loop] .sg__record-mark { animation-name: sg-seal; }

  @keyframes sg-first {
    0%, 1% { transform: translateX(0); }
    21%, 100% { transform: translateX(393px); }
  }
  @keyframes sg-second {
    0%, 20% { transform: translateX(316px); }
    44%, 100% { transform: translateX(764px); }
  }
  @keyframes sg-first-fibre {
    0%, 11% { opacity: 0; stroke-dashoffset: 36; }
    13%, 21% { opacity: 1; }
    25%, 100% { opacity: 0; stroke-dashoffset: -102; }
  }
  @keyframes sg-second-fibre {
    0%, 36% { opacity: 0; stroke-dashoffset: 36; }
    38%, 46% { opacity: 1; }
    50%, 100% { opacity: 0; stroke-dashoffset: -102; }
  }
  @keyframes sg-proposal {
    0%, 23%, 97%, 100% { transform: scaleX(.04); }
    31%, 81% { transform: scaleX(1); }
  }
  @keyframes sg-agreement {
    0%, 48%, 99%, 100% { transform: scaleX(.04); }
    56%, 84% { transform: scaleX(1); }
  }
  @keyframes sg-seal {
    0%, 52%, 68%, 100% { transform: scale(1); }
    55% { transform: scale(.86); }
    60% { transform: scale(1.20); }
  }
}
@container (min-width: 520px) {
  .sg__plate { height: clamp(258px, 36.5cqi, 277px); }
}
@container (max-width: 410px) {
  .sg__plate { height: clamp(110px, 35.5cqi, 145px); }
}
