#material {
  overflow-x: hidden;
  overflow-y: auto;
}

#material .material-explainer {
  height: auto;
  min-height: 100%;
  padding-block: clamp(20px, 4dvh, 52px);
}

.material-explainer .eyebrow {
  margin-bottom: clamp(8px, 1.3dvh, 15px);
}

.material-explainer h2 {
  max-width: none;
  font-size: clamp(2rem, 3.9vw, 4.2rem);
  text-wrap: balance;
}

.rheology-lead {
  margin: .55em 0 .9em;
  color: #d2e4e8;
  font-size: clamp(.92rem, 1.35vw, 1.17rem);
  line-height: 1.36;
}

.rheology-steps {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(10px, 1.55vw, 24px);
}

.rheology-step {
  --stage-accent: var(--teal);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(11px, 1.4vw, 20px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0c2532;
}

.rheology-step + .rheology-step {
  --stage-accent: #f0c98c;
}

.rheology-step-heading {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.rheology-stage {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.1em;
  height: 2.1em;
  border: 1px solid color-mix(in srgb, var(--stage-accent) 50%, #0c2532);
  border-radius: 50%;
  color: var(--stage-accent);
  font-size: clamp(.69rem, .94vw, .82rem);
  font-weight: 850;
  letter-spacing: .045em;
}

.rheology-step-heading h3 {
  margin: 0;
  color: #f2fafb;
  font-size: clamp(1.12rem, 1.85vw, 1.58rem);
  line-height: 1.12;
}

.rheology-step-copy {
  margin: .52em 0 .75em;
  color: #c4d8dd;
  font-size: clamp(.86rem, 1.23vw, 1.1rem);
  line-height: 1.36;
}

.rheology-step-copy strong {
  color: #f3fbfc;
}

.rheology-figure {
  display: grid;
  justify-items: stretch;
  align-items: start;
  gap: 7px;
  min-width: 0;
  margin: auto 0 0;
}

.rheology-figure svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 210;
  max-height: clamp(160px, 33dvh, 325px);
  border: 1px solid #2b4b58;
  border-radius: 10px;
  background: radial-gradient(ellipse at 48% 36%, #102e3a 0%, #081b26 80%);
}

.rheology-caption {
  color: #afc6cd;
  font-size: clamp(.71rem, .95vw, .88rem);
  line-height: 1.28;
}

.rheology-airframe-photo {
  filter: drop-shadow(0 6px 6px #030e16b0) brightness(1.1);
}

.rheology-figure .curve {
  stroke-width: 5.5;
}

.rheology-chart .rheology-grid {
  fill: none;
  stroke: #345461;
  stroke-dasharray: 2.5 5;
  stroke-width: 1;
}

.rheology-chart .axis {
  stroke: #6b8f9c;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rheology-chart .axis-label {
  fill: #c7dce1;
  font-size: 17px;
  font-weight: 650;
}

.rheology-chart .plot-label {
  fill: #a0f4eb;
  font-size: 17px;
}

#material.active:not(.motion-paused) .rheology-area {
  animation: rheology-reveal .5s ease-out .68s both;
}

#material.active:not(.motion-paused) .rheology-chart-focus {
  animation: rheology-reveal .32s ease-out .96s both;
}

@keyframes rheology-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rheology-references {
  display: grid;
  grid-template-columns: minmax(145px, .74fr) minmax(0, 2.26fr);
  align-items: center;
  gap: 10px clamp(14px, 1.65vw, 25px);
  margin-top: clamp(12px, 2dvh, 20px);
  padding-top: clamp(9px, 1.5dvh, 14px);
  border-top: 1px solid var(--line);
}

.rheology-reference-heading,
.rheology-values > * {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rheology-reference-heading > :first-child {
  margin: 0;
  color: #e8f5f6;
  font-size: clamp(.8rem, 1.2vw, 1.05rem);
}

.rheology-reference-heading > :last-child,
.rheology-values span {
  margin: 0;
  color: #afc6cd;
  font-size: clamp(.7rem, .94vw, .87rem);
  line-height: 1.3;
}

.rheology-values {
  display: flex;
  gap: clamp(9px, 1.25vw, 17px);
}

.rheology-values > * {
  flex: 1;
  align-content: start;
  padding-inline-start: clamp(8px, 1vw, 14px);
  border-inline-start: 1px solid #315763;
}

.rheology-values b {
  color: #effafb;
  font-size: clamp(1.03rem, 1.7vw, 1.4rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.14;
}

#material.active:not(.motion-paused) .bridge-spray {
  animation: rheology-spray-show 1.28s ease-out 1.44s both;
}

#material.active:not(.motion-paused) .bridge-coat {
  transform-box: fill-box;
  transform-origin: center;
  animation: rheology-coat-show .65s ease-out 1.72s both;
}

@keyframes rheology-spray-show {
  0% { opacity: 0; }
  24%, 72% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes rheology-coat-show {
  from { opacity: 0; scale: .08 1; }
  to { opacity: 1; scale: 1 1; }
}

@media (min-width: 701px) and (max-height: 800px) {
  #material .material-explainer {
    padding-block: clamp(13px, 2.45dvh, 20px);
  }

  .rheology-step {
    padding-block: clamp(10px, 1.8dvh, 14px);
  }

  .rheology-figure svg {
    max-height: clamp(140px, 29dvh, 232px);
  }

  .rheology-references {
    margin-top: 10px;
    padding-top: 8px;
  }
}

@media (max-width: 700px) {
  #material .material-explainer {
    padding-block: 25px;
  }

  .rheology-steps {
    grid-template-columns: 1fr;
  }

  .rheology-figure svg {
    max-height: none;
  }

  .rheology-references {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  .rheology-values {
    display: grid;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #material.active .rheology-area,
  #material.active .rheology-chart-focus,
  #material.active .bridge-spray,
  #material.active .bridge-coat {
    animation: none !important;
  }
}
