body {
  font-family: 'Noto Sans', sans-serif;
}


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.teaser-figure {
  margin: 0 0 1.25rem;
}

.teaser-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dbe4e8;
  border-radius: 6px;
  background: #fff;
}

.teaser-figure figcaption {
  margin-top: 0.65rem;
  color: #5a6d76;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 140px;
  background: repeating-linear-gradient(
    -45deg,
    #e8e8e8,
    #e8e8e8 12px,
    #f3f3f3 12px,
    #f3f3f3 24px
  );
  border: 2px dashed #999;
  border-radius: 6px;
  color: #555;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #fff;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.video-placeholder::before {
  content: "▶";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-right: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
}

figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #4a4a4a;
}

/* ---- Pre-Processing: end-to-end overview flow ---- */
.preprocess-stage {
  --pp-ink: #1a2a32;
  --pp-muted: #5a6d76;
  --pp-teal: #1f7a72;
  --pp-teal-bright: #3db8ad;
  margin: 1.25rem 0 0.5rem;
  padding: 0;
}

.pp-overview-title {
  margin: 0 0 0.9rem;
  text-align: center;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pp-ink);
}

.pp-overview-caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--pp-muted);
  line-height: 1.45;
}

.pp-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  width: 100%;
}

.pp-flow-step {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}

.pp-flow-label {
  text-align: center;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pp-ink);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.pp-flow-panel {
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
  background: #fff;
  border-radius: 4px;
}

.pp-flow-panel > img[data-pp-channel] {
  display: block;
  width: calc(100% - 28px);
  height: auto;
  border-radius: 4px 0 0 4px;
  background: #0e171c;
  aspect-ratio: 1;
  object-fit: cover;
}

.pp-flow-cbar {
  display: block;
  width: 26px;
  height: auto;
  object-fit: contain;
  align-self: stretch;
  background: #fff;
}

.pp-flow-controls {
  margin: 1rem auto 0;
  max-width: 520px;
}

.pp-flow-step img {
  display: block;
  max-width: 100%;
}

.pp-flow-arrow {
  position: relative;
  flex: 0 0 28px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-arrow-shaft {
  position: absolute;
  left: 0;
  right: 7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(31, 122, 114, 0.15),
    var(--pp-teal) 40%,
    var(--pp-teal-bright)
  );
  overflow: hidden;
}

.pp-arrow-shaft::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: pp-arrow-sheen 1.8s ease-in-out infinite;
}

.pp-arrow-head {
  position: absolute;
  right: 0;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--pp-teal-bright);
  filter: drop-shadow(0 0 4px rgba(61, 184, 173, 0.55));
  animation: pp-arrow-nudge 1.8s ease-in-out infinite;
}

.pp-arrow-pulse {
  position: absolute;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pp-teal-bright);
  box-shadow: 0 0 8px rgba(61, 184, 173, 0.85);
  animation: pp-arrow-travel 1.8s ease-in-out infinite;
}

@keyframes pp-arrow-sheen {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(120%); }
}

@keyframes pp-arrow-travel {
  0% { left: 0; opacity: 0; transform: scale(0.7); }
  15% { opacity: 1; }
  70% { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; transform: scale(1.15); }
}

@keyframes pp-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

@media (max-width: 900px) {
  .pp-flow {
    flex-direction: column;
    gap: 0.35rem;
  }
  .pp-flow-step {
    width: min(280px, 100%);
    flex: none;
  }
  .pp-flow-arrow {
    flex: 0 0 28px;
    width: 18px;
    height: 28px;
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-arrow-shaft::after,
  .pp-arrow-pulse,
  .pp-arrow-head {
    animation: none !important;
  }
}

.pp-subhead {
  margin-top: 2rem !important;
  margin-bottom: 0.65rem !important;
}

.pp-cleanup-figure {
  margin: 0.75rem 0 0;
  text-align: center;
}

.pp-cleanup-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #fff;
}

.pp-cleanup-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--pp-muted);
  line-height: 1.45;
}

.pp-slice-viewer {
  margin-top: 0.75rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.pp-slice-frame {
  background: #0e171c;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-slice-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.pp-slice-controls {
  margin-top: 0.75rem;
}

.pp-slice-label {
  display: block;
  text-align: center;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pp-ink);
  margin-bottom: 0.4rem;
}

.pp-slice-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7e6e4, #1f7a72);
  outline: none;
  cursor: pointer;
}

.pp-slice-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #1f7a72;
  box-shadow: 0 1px 4px rgba(26, 42, 50, 0.25);
  cursor: pointer;
}

.pp-slice-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #1f7a72;
  box-shadow: 0 1px 4px rgba(26, 42, 50, 0.25);
  cursor: pointer;
}

/* ---- Focus Observatory (CT-166 results) ---- */
.focus-observatory {
  --fo-ink: #1a2a32;
  --fo-muted: #5a6d76;
  --fo-teal: #1f7a72;
  --fo-teal-bright: #3db8ad;
  margin-top: 0.75rem;
}

.fo-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.fo-metric {
  text-align: center;
  padding: 0.75rem 0.4rem;
  border-top: 2px solid var(--fo-teal);
  background: linear-gradient(180deg, rgba(31, 122, 114, 0.06), transparent);
}

.fo-metric-value {
  display: block;
  font-family: 'Castoro', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fo-ink);
  line-height: 1.2;
}

.fo-metric-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fo-muted);
}

.fo-beam-stage {
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.fo-beam-frame {
  position: relative;
  background: #0e171c;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
}

.fo-beam-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.fo-beam-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  background: rgba(14, 23, 28, 0.72);
  color: #e8f0f4;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.fo-beam-controls {
  margin-top: 0.85rem;
}

.fo-beam-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--fo-muted);
}

.fo-caption,
.fo-figure figcaption {
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--fo-muted);
  line-height: 1.45;
}

.fo-figure {
  margin: 1.5rem 0 0;
  text-align: center;
}

.fo-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #fff;
}

.fo-beam-slider {
  background: linear-gradient(90deg, #1a2a32 0%, #1f7a72 68%, #e8b86d 100%);
}

@media (max-width: 768px) {
  .fo-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Focus Constellation ---- */
.focus-constellation {
  --fc-ink: #1a2a32;
  --fc-muted: #5a6d76;
  --fc-teal: #1f7a72;
  margin-top: 0.5rem;
}

.fc-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.fc-map-title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fc-ink);
}

.fc-map {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #0e171c;
}

.fc-map > img {
  display: block;
  width: 100%;
  height: auto;
}

.fc-hotspot {
  position: absolute;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(61, 184, 173, 0.35);
  cursor: pointer;
  padding: 0;
  transform: scale(1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 0 0 0 rgba(61, 184, 173, 0.4);
  z-index: 2;
}

.fc-hotspot:hover,
.fc-hotspot.is-active {
  transform: scale(1.25);
  background: rgba(61, 184, 173, 0.75);
  box-shadow: 0 0 0 6px rgba(61, 184, 173, 0.22);
}

.fc-hotspot.is-active {
  animation: fc-pulse 1.8s ease-in-out infinite;
}

@keyframes fc-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 184, 173, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(61, 184, 173, 0.08); }
}

.fc-detail {
  min-width: 0;
}

.fc-panel-frame {
  background: #0e171c;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
}

.fc-panel-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-label {
  margin: 0.75rem 0 0.25rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fc-ink);
}

.fc-blurb {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--fc-muted);
  line-height: 1.4;
}

.fc-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.fc-metric {
  text-align: center;
  padding: 0.55rem 0.25rem;
  border-top: 2px solid var(--fc-teal);
  background: linear-gradient(180deg, rgba(31, 122, 114, 0.06), transparent);
}

.fc-metric-value {
  display: block;
  font-family: 'Castoro', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fc-ink);
}

.fc-metric-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fc-muted);
}

.fc-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  margin: 1.15rem 0 0.5rem;
}

.fc-thumb {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0.35rem;
  background: #f4f7f8;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.fc-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  background: #0e171c;
}

.fc-thumb span {
  display: block;
  margin-top: 0.3rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fc-ink);
}

.fc-thumb:hover {
  transform: translateY(-2px);
}

.fc-thumb.is-active {
  border-color: var(--fc-teal);
  background: rgba(31, 122, 114, 0.08);
}

@media (max-width: 900px) {
  .fc-layout {
    grid-template-columns: 1fr;
  }
  .fc-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  .fc-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-hotspot.is-active {
    animation: none;
  }
}

/* ---- Lens Size Study ---- */
.lens-size-study {
  --ls-ink: #1a2a32;
  --ls-muted: #5a6d76;
  --ls-teal: #1f7a72;
  margin-top: 0.5rem;
}

.ls-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.ls-panel-frame {
  background: #0e171c;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
}

.ls-panel-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ls-label {
  margin: 0.75rem 0 0.25rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ls-ink);
}

.ls-blurb {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ls-muted);
  line-height: 1.4;
}

.ls-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.ls-metric {
  text-align: center;
  padding: 0.55rem 0.25rem;
  border-top: 2px solid var(--ls-teal);
  background: linear-gradient(180deg, rgba(31, 122, 114, 0.06), transparent);
}

.ls-metric-value {
  display: block;
  font-family: 'Castoro', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ls-ink);
}

.ls-metric-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ls-muted);
}

.ls-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin: 1.15rem 0 0.5rem;
}

.ls-thumb {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0.35rem;
  background: #f4f7f8;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ls-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  background: #0e171c;
}

.ls-thumb span {
  display: block;
  margin-top: 0.3rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ls-ink);
}

.ls-thumb:hover {
  transform: translateY(-2px);
}

.ls-thumb.is-active {
  border-color: var(--ls-teal);
  background: rgba(31, 122, 114, 0.08);
}

@media (max-width: 900px) {
  .ls-layout {
    grid-template-columns: 1fr;
  }
  .ls-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .ls-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Transducer Grid · Aperture Lattice ---- */
.transducer-lattice {
  --tl-ink: #1a2a32;
  --tl-muted: #5a6d76;
  --tl-teal: #1f7a72;
  --tl-glow: #3db8ad;
  margin-top: 0.5rem;
}

.tl-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.25rem;
  align-items: start;
}

.tl-aperture-wrap {
  position: relative;
  background: radial-gradient(ellipse 90% 70% at 50% 35%, #1a2f38 0%, #0a1218 72%);
  border-radius: 10px;
  padding: 0.75rem 0.5rem 0.35rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(61, 184, 173, 0.12);
}

.tl-aperture-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 88%, rgba(61, 184, 173, 0.14), transparent 55%);
  pointer-events: none;
}

.tl-aperture-title {
  margin: 0 0 0.35rem;
  text-align: center;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.tl-aperture-svg {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.tl-aperture-arc {
  fill: none;
  stroke: rgba(61, 184, 173, 0.35);
  stroke-width: 2;
}

.tl-aperture-rim {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.tl-focus-ring {
  fill: none;
  stroke: var(--tl-glow);
  stroke-width: 1.5;
  opacity: 0.85;
}

.tl-focus-core {
  fill: var(--tl-glow);
  filter: drop-shadow(0 0 6px rgba(61, 184, 173, 0.9));
}

.tl-ghost-node {
  fill: rgba(255, 255, 255, 0.07);
}

.tl-node.is-active {
  filter: drop-shadow(0 0 5px currentColor);
  animation: tl-node-pulse 1.6s ease-in-out infinite;
}

.tl-beam {
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: tl-beam-flow 2.4s linear infinite;
}

@keyframes tl-beam-flow {
  to { stroke-dashoffset: -32; }
}

@keyframes tl-node-pulse {
  0%, 100% { opacity: 0.88; transform-origin: center; }
  50% { opacity: 1; }
}

.tl-dial-wrap {
  position: relative;
  margin-top: 0.65rem;
  padding-top: 0.35rem;
}

.tl-dial {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
  aspect-ratio: 2.2 / 1;
}

.tl-dial::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18%;
  height: 72%;
  border: 1px dashed rgba(61, 184, 173, 0.25);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}

.tl-dial-label {
  margin: 0 0 0.25rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tl-muted);
}

.tl-dial-node {
  position: absolute;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  margin-top: -18px;
  border-radius: 50%;
  border: 2px solid rgba(31, 122, 114, 0.35);
  background: #f4f7f8;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.tl-dial-glow {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  opacity: 0.35;
}

.tl-dial-n {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tl-ink);
}

.tl-dial-tag {
  position: absolute;
  left: 50%;
  bottom: -1.1rem;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--tl-muted);
  white-space: nowrap;
}

.tl-dial-node:hover {
  transform: scale(1.12);
}

.tl-dial-node.is-active {
  border-color: var(--tl-teal);
  box-shadow: 0 0 0 5px rgba(61, 184, 173, 0.2);
  transform: scale(1.15);
}

.tl-detail {
  min-width: 0;
}

.tl-panel-frame {
  background: #0e171c;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
}

.tl-panel-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-label {
  margin: 0.75rem 0 0.25rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tl-ink);
}

.tl-blurb {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--tl-muted);
  line-height: 1.4;
}

.tl-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.tl-metric {
  text-align: center;
  padding: 0.55rem 0.25rem;
  border-top: 2px solid var(--tl-teal);
  background: linear-gradient(180deg, rgba(31, 122, 114, 0.06), transparent);
}

.tl-metric-value {
  display: block;
  font-family: 'Castoro', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tl-ink);
}

.tl-metric-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tl-muted);
}

.tl-source-badge {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--tl-teal);
  background: rgba(31, 122, 114, 0.1);
  border: 1px solid rgba(31, 122, 114, 0.2);
}

@media (max-width: 900px) {
  .tl-stage {
    grid-template-columns: 1fr;
  }
  .tl-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-beam,
  .tl-node.is-active {
    animation: none;
  }
}

/* ==========================================================
   Method · two-pass pipeline explorer
   ========================================================== */
.mx-subhead {
  margin-top: 2.25rem !important;
  margin-bottom: 0.75rem !important;
}

/* ---- pipeline ---- */
.method-pipeline {
  --mx-ink: #1a2a32;
  --mx-muted: #5a6d76;
  --mx-teal: #1f7a72;
  --mx-glow: #3db8ad;
  --mx-amber: #c98a2e;
  --mx-amber-soft: #e8b86d;
  margin: 1.25rem 0 0.5rem;
  padding: 1.15rem 1rem 1rem;
  border-radius: 10px;
  background: #fbfdfd;
  border: 1px solid #e0e8eb;
}

.mx-rail-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mx-rail-label.is-forward {
  color: var(--mx-teal);
  margin-bottom: 0.2rem;
}

.mx-rail-label.is-backward {
  color: var(--mx-amber);
  margin-top: 0.2rem;
  justify-content: flex-end;
}

.mx-rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.mx-rail {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.mx-rail-line {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
}

.mx-rail-line.is-fwd {
  stroke: var(--mx-teal);
  animation: mx-flow-fwd 1.6s linear infinite;
}

.mx-rail-line.is-bwd {
  stroke: var(--mx-amber);
  animation: mx-flow-bwd 1.6s linear infinite;
}

.mx-rail-head.is-fwd { fill: var(--mx-teal); }
.mx-rail-head.is-bwd { fill: var(--mx-amber); }

.mx-rail-blocked {
  stroke: #c2ced3;
  stroke-width: 2.4;
  stroke-dasharray: 3 5;
}

.mx-rail-x line {
  stroke: #b4444a;
  stroke-width: 3;
  stroke-linecap: round;
}

.mx-surrogate-node {
  fill: rgba(232, 184, 109, 0.25);
  stroke: var(--mx-amber);
  stroke-width: 2.6;
}

.mx-surrogate-text {
  fill: var(--mx-amber);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
}

@keyframes mx-flow-fwd {
  to { stroke-dashoffset: -32; }
}

@keyframes mx-flow-bwd {
  to { stroke-dashoffset: 32; }
}

.mx-stages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin: 0.15rem 0;
}

.mx-stage {
  position: relative;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.15rem;
  padding: 0.7rem 0.4rem 0.6rem;
  border: 2px solid #dbe4e8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.mx-stage:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 114, 0.45);
}

.mx-stage.is-active {
  border-color: var(--mx-teal);
  box-shadow: 0 0 0 4px rgba(61, 184, 173, 0.16);
}

.mx-stage.is-hard {
  border-style: dashed;
  border-color: #d9b8bb;
  background: #fdf8f8;
}

.mx-stage.is-hard.is-active {
  border-color: #b4444a;
  box-shadow: 0 0 0 4px rgba(180, 68, 74, 0.14);
}

.mx-stage-idx {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(31, 122, 114, 0.12);
  color: var(--mx-teal);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
}

.mx-stage.is-hard .mx-stage-idx {
  background: rgba(180, 68, 74, 0.12);
  color: #b4444a;
}

/* ---- stage glyphs ---- */
.mx-stage-viz {
  display: block;
  width: 100%;
  max-width: 66px;
  height: auto;
  margin-bottom: 0.3rem;
  overflow: visible;
}

.mx-viz-line,
.mx-viz-soft,
.mx-viz-arrow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mx-viz-line {
  stroke: var(--mx-teal);
  stroke-width: 2.4;
}

.mx-viz-soft {
  stroke: rgba(31, 122, 114, 0.4);
  stroke-width: 1.8;
  stroke-dasharray: 3 3;
}

.mx-viz-fill {
  fill: rgba(31, 122, 114, 0.4);
}

.mx-viz-dot {
  fill: var(--mx-teal);
}

.mx-viz-halo {
  fill: rgba(61, 184, 173, 0.22);
}

.mx-viz-plate {
  fill: none;
  stroke: #96a7ae;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.mx-viz-arrow {
  stroke: rgba(31, 122, 114, 0.45);
  stroke-width: 1.8;
}

.mx-viz-arrowhead {
  fill: rgba(31, 122, 114, 0.45);
}

.mx-viz-island {
  fill: rgba(180, 68, 74, 0.16);
  stroke: #b4444a;
  stroke-width: 1.4;
  stroke-dasharray: 3 2.5;
}

.mx-viz-x path {
  fill: none;
  stroke: #b4444a;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* selected stages saturate their glyph */
.mx-stage.is-active .mx-viz-fill { fill: rgba(31, 122, 114, 0.72); }
.mx-stage.is-active .mx-viz-soft { stroke: rgba(31, 122, 114, 0.65); }
.mx-stage.is-active .mx-viz-plate { stroke: #4a5f68; }
.mx-stage.is-active .mx-viz-halo { fill: rgba(61, 184, 173, 0.4); }
.mx-stage.is-active .mx-viz-arrow { stroke: rgba(31, 122, 114, 0.7); }
.mx-stage.is-active .mx-viz-arrowhead { fill: rgba(31, 122, 114, 0.7); }

.mx-stage-name {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mx-ink);
  line-height: 1.2;
}

.mx-stage-sub {
  font-size: 0.67rem;
  color: var(--mx-muted);
  line-height: 1.25;
}

.mx-stage-flag {
  margin-top: auto;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b4444a;
  background: rgba(180, 68, 74, 0.1);
}

/* ---- stage detail ---- */
.mx-detail-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e4ebee;
}

.mx-detail {
  display: none;
}

.mx-detail.is-shown {
  display: block;
  animation: mx-fade 0.25s ease;
}

@keyframes mx-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.mx-detail-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mx-detail-title {
  margin: 0;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mx-ink);
}

.mx-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mx-badge.is-diff {
  color: var(--mx-teal);
  background: rgba(31, 122, 114, 0.11);
}

.mx-badge.is-hard {
  color: #b4444a;
  background: rgba(180, 68, 74, 0.11);
}

.mx-badge.is-key {
  color: #7d6231;
  background: rgba(232, 184, 109, 0.28);
}

.mx-detail-body {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.62;
  color: #35474f;
  text-align: justify;
}

.mx-detail-foot {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--mx-muted);
}

.mx-eq {
  margin: 0.5rem 0;
  padding: 0.35rem 0.6rem;
  border-left: 3px solid rgba(31, 122, 114, 0.35);
  background: #f4f8f9;
  border-radius: 0 5px 5px 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.mx-eq.is-compact {
  font-size: 0.92rem;
}

.mx-callout {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 7px;
  background: rgba(232, 184, 109, 0.11);
  border: 1px solid rgba(232, 184, 109, 0.4);
}

.mx-callout-tag {
  display: block;
  margin-bottom: 0.3rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7d6231;
}

.mx-callout p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: #4a5c64;
}

@media (max-width: 900px) {
  .mx-stages {
    grid-template-columns: repeat(3, 1fr);
  }
  .mx-rail-fwd,
  .mx-rail-bwd {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mx-rail-line,
  .mx-detail.is-shown {
    animation: none;
  }
}

/* ==========================================================
   Method · stage-by-stage animated strips
   ========================================================== */
html {
  scroll-behavior: smooth;
}

.mx-jump {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1f7a72;
  border-bottom: 1px solid rgba(31, 122, 114, 0.35);
}

.mx-jump:hover {
  color: #16605a;
  border-bottom-color: #16605a;
}

.mstrips {
  --mf-teal: #1f7a72;
  --mf-glow: #3db8ad;
  --mf-amber: #c98a2e;
  --mf-bad: #b4444a;
  --mf-ink: #1a2a32;
  margin: 1.25rem 0 0.5rem;
}

.mstrip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.9rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid #e9eff1;
  scroll-margin-top: 1.5rem;
}

.mstrip:first-child {
  border-top: none;
  padding-top: 0.5rem;
}

.mstrip.is-flipped .mstrip-figure {
  order: 2;
}

.mstrip-figure {
  padding: 0.65rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdfd 0%, #f2f7f8 100%);
  border: 1px solid #e0e8eb;
}

.mfig {
  display: block;
  width: 100%;
  height: auto;
}

.mstrip-num {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mf-teal);
}

.mstrip-title {
  margin: 0 0 0.45rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--mf-ink);
}

.mstrip-body {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.62;
  color: #35474f;
  text-align: justify;
}

.mstrip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

/* ---- shared figure primitives ---- */
.mf-frame {
  fill: rgba(31, 122, 114, 0.035);
  stroke: rgba(31, 122, 114, 0.18);
  stroke-width: 1.5;
}

.mf-plate {
  fill: none;
  stroke: #8fa2aa;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.mf-axis {
  fill: none;
  stroke: #c2ced3;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.mf-guide {
  fill: none;
  stroke: rgba(201, 138, 46, 0.75);
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
}

.mf-arrow {
  fill: none;
  stroke: rgba(31, 122, 114, 0.55);
  stroke-width: 2;
  stroke-linecap: round;
}

.mf-arrowhead {
  fill: rgba(31, 122, 114, 0.55);
}

.mf-cap {
  fill: #5a6d76;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.mf-cap.is-bad {
  fill: var(--mf-bad);
}

.mf-tick {
  fill: #8397a0;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
}

/* ---- 1 · implicit field ---- */
.mf-edges line {
  stroke: rgba(31, 122, 114, 0.18);
  stroke-width: 1;
}

.mf-node {
  fill: #fff;
  stroke: var(--mf-teal);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}

.mf-node.is-out {
  fill: rgba(61, 184, 173, 0.25);
}

.mf-dot {
  fill: var(--mf-teal);
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes mf-fire {
  0%, 100% { fill: #fff; }
  18%      { fill: var(--mf-glow); }
}

/* keep the output node's tint instead of flashing back to white */
@keyframes mf-fire-out {
  0%, 100% { fill: rgba(61, 184, 173, 0.25); }
  18%      { fill: var(--mf-glow); }
}

.mf-node.is-out.anim-fire {
  animation-name: mf-fire-out;
}

@keyframes mf-ripple {
  0%, 100% { opacity: 0.18; transform: scale(0.45); }
  45%      { opacity: 0.95; transform: scale(1); }
}

.anim-fire   { animation: mf-fire 2.2s ease-in-out infinite; }
.anim-ripple { animation: mf-ripple 2.6s ease-in-out infinite; }

/* ---- 2 · discretization ---- */
.mf-curve {
  fill: none;
  stroke: var(--mf-teal);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mf-curve.is-hard {
  stroke: var(--mf-glow);
}

.mf-vox {
  fill: var(--mf-teal);
}

.mf-tau-track {
  fill: rgba(31, 122, 114, 0.14);
}

.mf-tau-fill {
  fill: var(--mf-amber);
  transform-box: fill-box;
  transform-origin: left center;
}

@keyframes mf-xfade-out {
  0%, 32%   { opacity: 1; }
  52%, 100% { opacity: 0; }
}

@keyframes mf-xfade-in {
  0%, 32%   { opacity: 0; }
  52%, 100% { opacity: 1; }
}

@keyframes mf-anneal {
  0%, 12%   { transform: scaleX(1); }
  55%, 100% { transform: scaleX(0.12); }
}

.anim-xfade-out { animation: mf-xfade-out 4.2s ease-in-out infinite; }
.anim-xfade-in  { animation: mf-xfade-in 4.2s ease-in-out infinite; }
.anim-anneal    { animation: mf-anneal 4.2s ease-in-out infinite; }

/* ---- 3 · slicing ---- */
.mf-layer {
  fill: rgba(31, 122, 114, 0.3);
}

@keyframes mf-scan {
  0%, 100% { fill: rgba(31, 122, 114, 0.28); }
  12%      { fill: rgba(61, 184, 173, 0.95); }
}

.anim-scan { animation: mf-scan 3.2s ease-in-out infinite; }

@keyframes mf-rise {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.9; }
}

.anim-rise { animation: mf-rise 3.2s ease-in-out infinite; }

/* ---- 4 · self-support ---- */
.mf-layer.is-support {
  fill: rgba(31, 122, 114, 0.62);
}

.mf-reach {
  fill: rgba(201, 138, 46, 0.16);
  stroke: rgba(201, 138, 46, 0.7);
  stroke-width: 1.4;
  stroke-dasharray: 4 3;
}

@keyframes mf-stack {
  0%, 6%    { opacity: 0; }
  14%, 88%  { opacity: 1; }
  100%      { opacity: 0; }
}

@keyframes mf-reach-flash {
  0%       { opacity: 0; }
  5%       { opacity: 1; }
  16%, 100% { opacity: 0; }
}

.anim-stack { animation: mf-stack 5.4s ease-in-out infinite; }
.anim-reach { animation: mf-reach-flash 5.4s ease-in-out infinite; }

/* ---- 5 · exact projection ---- */
.mf-block {
  fill: rgba(31, 122, 114, 0.22);
}

.mf-island {
  fill: rgba(31, 122, 114, 0.22);
  transform-box: fill-box;
  transform-origin: center;
}

.mf-x {
  fill: none;
  stroke: var(--mf-bad);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0;
}

/* figure 5 shares one 5.6s clock: binarize -> flood from the plate -> drop island */
.anim-xfade-out.is-slow,
.anim-xfade-in.is-slow {
  animation-duration: 5.6s;
}

@keyframes mf-flood {
  0%, 40%  { fill: rgba(31, 122, 114, 0.22); }
  54%, 92% { fill: rgba(31, 122, 114, 0.85); }
  100%     { fill: rgba(31, 122, 114, 0.22); }
}

@keyframes mf-island {
  0%, 66%  { opacity: 1; transform: translateY(0); }
  86%      { opacity: 0; transform: translateY(26px); }
  100%     { opacity: 0; transform: translateY(26px); }
}

.anim-flood  { animation: mf-flood 5.6s ease-in-out infinite; }
.anim-island { animation: mf-island 5.6s ease-in-out infinite; }
.anim-island .mf-island { animation: mf-island-mark 5.6s ease-in-out infinite; }
.anim-island .mf-x      { animation: mf-x-in 5.6s ease-in-out infinite; }

@keyframes mf-island-mark {
  0%, 55%   { fill: rgba(31, 122, 114, 0.22); }
  66%, 100% { fill: rgba(180, 68, 74, 0.2); }
}

@keyframes mf-x-in {
  0%, 58%   { opacity: 0; }
  68%, 100% { opacity: 1; }
}

/* ---- 6 · Helmholtz solve ---- */
.mf-element {
  fill: rgba(31, 122, 114, 0.55);
}

.mf-skull {
  fill: rgba(143, 162, 170, 0.35);
  stroke: #8fa2aa;
  stroke-width: 1.4;
}

.mf-wave {
  fill: none;
  stroke: var(--mf-glow);
  stroke-width: 2.4;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 300px 110px;
}

.mf-focus-halo {
  fill: rgba(61, 184, 173, 0.3);
  transform-box: fill-box;
  transform-origin: center;
}

.mf-focus-core {
  fill: var(--mf-teal);
}

@keyframes mf-drive {
  0%, 100% { fill: rgba(31, 122, 114, 0.35); }
  30%      { fill: rgba(61, 184, 173, 1); }
}

@keyframes mf-converge {
  0%   { transform: scale(1); opacity: 0; }
  12%  { opacity: 0.9; }
  78%  { opacity: 0.85; }
  100% { transform: scale(0.07); opacity: 0; }
}

@keyframes mf-focus {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50%      { opacity: 1; transform: scale(1.15); }
}

.anim-drive    { animation: mf-drive 3.6s ease-in-out infinite; }
.anim-converge { animation: mf-converge 3.6s linear infinite; }
.anim-focus    { animation: mf-focus 3.6s ease-in-out infinite; }

/* only animate strips that are actually on screen */
.mstrip .mfig [class*="anim-"] {
  animation-play-state: paused;
}

.mstrip.is-live .mfig [class*="anim-"] {
  animation-play-state: running;
}

@media (max-width: 900px) {
  .mstrip {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .mstrip.is-flipped .mstrip-figure {
    order: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mstrip .mfig [class*="anim-"],
  .mstrip.is-live .mfig [class*="anim-"] {
    animation: none;
  }
  /* settle on the informative end state */
  .mf-dot { opacity: 0.75; }
  .anim-xfade-out { opacity: 0; }
  .anim-xfade-in { opacity: 1; }
  .mf-tau-fill { transform: scaleX(0.12); }
  .mf-x { opacity: 1; }
  .mf-island { fill: rgba(180, 68, 74, 0.2); }
}

/* ========================================================================== */
/* Comparison with baselines — Moray-style split + image grid                   */
/* ========================================================================== */
.cmp-split {
  --cmp-ink: #1a2a32;
  --cmp-muted: #5a6d76;
  --cmp-teal: #1f7a72;
  --cmp-line: #dbe4e8;
  --text-flex: 0.85;
  --media-flex: 1.35;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.cmp-split-text {
  flex: var(--text-flex) 1 0;
  min-width: 0;
}

.cmp-split-media {
  flex: var(--media-flex) 1 0;
  min-width: 0;
}

.cmp-split-text .title {
  margin-bottom: 1rem;
}

.cmp-split-text p {
  color: var(--cmp-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.cmp-split-text p:last-child {
  margin-bottom: 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: auto repeat(5, 1fr);
  gap: 8px 10px;
  align-items: center;
}

.comparison-grid .cg-col-header {
  text-align: center;
  color: var(--cmp-ink);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  padding-bottom: 4px;
}

.comparison-grid .cg-col-header.is-ours {
  color: var(--cmp-teal);
}

.comparison-grid .cg-row-label {
  text-align: right;
  color: var(--cmp-muted);
  font-style: italic;
  font-size: 0.82rem;
  padding-right: 6px;
  white-space: nowrap;
  line-height: 1.2;
}

.comparison-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--cmp-line);
  border-radius: 4px;
  background: #10161a;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.comparison-grid img.is-ours {
  border-color: rgba(31, 122, 114, 0.55);
  box-shadow: 0 0 0 1px rgba(61, 184, 173, 0.25);
}

@media (max-width: 960px) {
  .cmp-split {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .comparison-grid {
    gap: 5px 6px;
  }
  .comparison-grid .cg-col-header {
    font-size: 0.62rem;
  }
  .comparison-grid .cg-row-label {
    font-size: 0.7rem;
  }
}

/* ========================================================================== */
/* Printable by construction                                                  */
/* ========================================================================== */
#printability {
  --pf-ink: #1a2a32;
  --pf-muted: #5a6d76;
  --pf-teal: #1f7a72;
  --pf-teal-soft: rgba(61, 184, 173, 0.28);
  --pf-red: #c2453f;
  --pf-line: #dbe4e8;
  --pf-panel: #080d10;
}

#printability .pf-lede {
  color: var(--pf-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 62ch;
  margin-bottom: 2.75rem;
}

#printability .pf-lede code {
  font-size: 0.82em;
  color: var(--pf-teal);
  background: rgba(31, 122, 114, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.pf-beat {
  padding-top: 2rem;
  margin-bottom: 2.75rem;
  border-top: 1px solid var(--pf-line);
}

.pf-beat:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.pf-beat-title {
  color: var(--pf-ink);
  margin-bottom: 0.6rem !important;
  letter-spacing: -0.015em;
}

.pf-beat-note {
  color: var(--pf-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 74ch;
  margin-bottom: 1.4rem;
}

.pf-beat-foot {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 0.86rem;
}

/* --- shared figure card ---------------------------------------------------- */
/* One shared measure so every beat lines up down the left and right edges. */
.pf-duo,
.pf-trio,
.pf-ladder,
.pf-tradeoff,
.pf-specs {
  max-width: 940px;
}

.pf-duo,
.pf-trio {
  display: grid;
  gap: 1.5rem;
}

.pf-duo {
  grid-template-columns: repeat(2, 1fr);
}

.pf-trio {
  grid-template-columns: repeat(3, 1fr);
}

.pf-card {
  margin: 0;
  border: 1px solid var(--pf-line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.pf-card.is-ours {
  border-color: var(--pf-teal-soft);
  box-shadow: 0 0 0 1px rgba(61, 184, 173, 0.18);
}

.pf-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--pf-panel);
}

.pf-card figcaption {
  display: block;
  padding: 0.7rem 0.85rem 0.85rem;
  border-top: 1px solid var(--pf-line);
}

.pf-card-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--pf-ink);
  letter-spacing: -0.01em;
}

.pf-stat {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 0.15rem;
}

.pf-stat.is-good {
  color: var(--pf-teal);
}

.pf-stat.is-bad {
  color: var(--pf-red);
}

.pf-stat-unit {
  font-size: 0.78rem;
  color: var(--pf-muted);
  margin-left: 0.3rem;
}

.pf-card-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--pf-muted);
  margin-top: 0.2rem;
}

/* --- fabrication ladder ---------------------------------------------------- */
.pf-ladder {
  display: grid;
  grid-template-columns: 5.5rem repeat(4, 1fr);
  gap: 8px 10px;
  align-items: center;
}

.pf-rung-head {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--pf-ink);
  letter-spacing: -0.01em;
}

.pf-row-label {
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pf-muted);
  line-height: 1.3;
  padding-right: 8px;
}

.pf-row-label.is-ours {
  color: var(--pf-teal);
}

.pf-rung {
  margin: 0;
}

.pf-rung img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--pf-line);
  border-radius: 4px;
  background: var(--pf-panel);
  image-rendering: pixelated;
}

.pf-rung.is-ours img {
  border-color: var(--pf-teal-soft);
}

.pf-rung figcaption {
  text-align: center;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: var(--pf-muted);
  padding-top: 4px;
}

.pf-rung figcaption.is-good {
  color: var(--pf-teal);
  font-weight: 600;
}

.pf-rung figcaption.is-bad {
  color: var(--pf-red);
  font-weight: 600;
}

.pf-rung figcaption.is-warn {
  color: #a8761c;
  font-weight: 600;
}

/* --- pressure preservation ------------------------------------------------ */
.pf-pressure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  max-width: 940px;
}

.pf-pressure-card {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pf-line);
  border-radius: 6px;
  background: #fff;
}

.pf-pressure-card.is-final {
  border-color: var(--pf-teal-soft);
  box-shadow: 0 0 0 1px rgba(61, 184, 173, 0.16);
}

.pf-pressure-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.65rem;
  color: var(--pf-ink);
  font-size: 0.76rem;
  font-weight: 650;
  border-bottom: 1px solid var(--pf-line);
}

.pf-pressure-step span {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  color: var(--pf-teal);
  background: rgba(31, 122, 114, 0.1);
  border-radius: 50%;
  font-size: 0.65rem;
}

.pf-pressure-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
}

.pf-pressure-card figcaption {
  padding: 0.65rem;
  border-top: 1px solid var(--pf-line);
}

.pf-metric-list {
  margin: 0;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.pf-metric-list > div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.18rem 0;
}

.pf-metric-list dt {
  color: var(--pf-muted);
  font-weight: 400;
}

.pf-metric-list dd {
  margin: 0;
  color: var(--pf-ink);
  font-weight: 600;
  white-space: nowrap;
}

.pf-profile {
  display: grid;
  grid-template-columns: minmax(13rem, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 1.5rem;
  max-width: 940px;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--pf-line);
  border-radius: 6px;
  background: #fff;
}

.pf-profile-copy {
  padding-left: 0.25rem;
}

.pf-profile-kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--pf-teal);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pf-profile-copy strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--pf-ink);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.pf-profile-copy p {
  margin: 0;
  color: var(--pf-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.pf-profile img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- printer specs --------------------------------------------------------- */
.pf-specs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--pf-line);
  border-radius: 6px;
  overflow: hidden;
}

.pf-specs li {
  padding: 0.65rem 0.8rem;
  border-left: 1px solid var(--pf-line);
}

.pf-specs li:first-child {
  border-left: 0;
}

.pf-specs span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pf-muted);
  margin-bottom: 0.15rem;
}

.pf-specs strong {
  font-size: 0.88rem;
  color: var(--pf-ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.pf-specs li:nth-child(2) strong::after {
  content: " mm";
  font-weight: 400;
  color: var(--pf-muted);
}

.pf-specs li:nth-child(4) strong::after {
  content: " mm";
  font-weight: 400;
  color: var(--pf-muted);
}

.pf-specs li:nth-child(5) strong::after {
  content: " tris";
  font-weight: 400;
  color: var(--pf-muted);
}

.pf-specs li:nth-child(6) strong::after {
  content: " g";
  font-weight: 400;
  color: var(--pf-muted);
}

/* --- trade-off bars -------------------------------------------------------- */
.pf-tradeoff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pf-to-block {
  border: 1px solid var(--pf-line);
  border-radius: 6px;
  padding: 0.9rem 1rem 1rem;
}

.pf-to-head {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--pf-ink);
  padding-bottom: 0.6rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--pf-line);
}

.pf-to-row + .pf-to-row {
  margin-top: 0.7rem;
}

.pf-to-name {
  display: block;
  font-size: 0.72rem;
  color: var(--pf-muted);
  margin-bottom: 0.3rem;
}

.pf-to-track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 15px;
}

.pf-to-track + .pf-to-track {
  margin-top: 3px;
}

.pf-to-bar {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  height: 7px;
  border-radius: 3px;
  background: rgba(26, 42, 50, 0.06);
}

.pf-to-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  min-width: 2px;
}

.pf-to-fill.is-unc {
  background: #b8c6cd;
}

.pf-to-fill.is-pri {
  background: var(--pf-teal);
}

.pf-to-fill.is-better {
  box-shadow: 0 0 0 1px rgba(31, 122, 114, 0.3);
}

.pf-to-value {
  flex: 0 0 3.6rem;
  text-align: right;
  font-size: 0.7rem;
  color: var(--pf-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pf-to-legend {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  color: var(--pf-muted);
}

.pf-to-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pf-to-legend i {
  width: 16px;
  height: 7px;
  border-radius: 3px;
  display: inline-block;
}

.pf-to-legend i.is-unc {
  background: #b8c6cd;
}

.pf-to-legend i.is-pri {
  background: var(--pf-teal);
}

@media (max-width: 900px) {
  .pf-tradeoff,
  .pf-trio {
    grid-template-columns: 1fr;
  }
  .pf-pressure-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pf-specs {
    grid-template-columns: repeat(3, 1fr);
  }
  .pf-specs li:nth-child(4) {
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .pf-duo {
    grid-template-columns: 1fr;
  }
  .pf-pressure-grid,
  .pf-profile {
    grid-template-columns: 1fr;
  }
  .pf-ladder {
    gap: 5px 6px;
  }
  .pf-rung-head {
    font-size: 0.6rem;
  }
  .pf-row-label {
    font-size: 0.66rem;
  }
  .pf-rung figcaption {
    font-size: 0.62rem;
  }
}

/* ========================================================================== */
/* Physical experiments                                                       */
/* ========================================================================== */
#physical {
  --px-ink: #1a2a32;
  --px-muted: #5a6d76;
  --px-teal: #1f7a72;
  --px-line: #dbe4e8;
}

.px-lede {
  color: var(--px-muted);
  line-height: 1.7;
  max-width: 74ch;
  margin-bottom: 1.5rem;
}

.px-beat {
  padding-top: 2rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--px-line);
}

.px-beat-title {
  color: var(--px-ink);
  margin-bottom: 0.6rem !important;
  letter-spacing: -0.015em;
}

.px-beat-note {
  color: var(--px-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 74ch;
  margin-bottom: 1.4rem;
}

.px-specs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 940px;
  margin: 0;
  border: 1px solid var(--px-line);
  border-radius: 6px;
  overflow: hidden;
}

.px-specs > div {
  padding: 0.65rem 0.8rem;
  border-left: 1px solid var(--px-line);
  border-top: 1px solid var(--px-line);
}

.px-specs > div:nth-child(-n + 5) { border-top: 0; }
.px-specs > div:nth-child(5n + 1) { border-left: 0; }

.px-specs dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--px-muted);
  margin-bottom: 0.15rem;
}

.px-specs dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--px-ink);
}

.px-figure {
  margin: 0;
  border: 1px solid var(--px-line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.px-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.px-figure figcaption {
  padding: 0.65rem 0.85rem 0.8rem;
  border-top: 1px solid var(--px-line);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--px-muted);
}

.px-schematic,
.px-result,
.px-sim {
  max-width: 940px;
}

.px-result {
  max-width: 620px;
}

.px-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 940px;
  margin-top: 1.5rem;
}

.px-gallery .px-figure img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.px-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.px-stats li { display: flex; flex-direction: column; }

.px-stats strong {
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--px-teal);
}

.px-stats span {
  font-size: 0.78rem;
  color: var(--px-muted);
}

@media (max-width: 800px) {
  .px-specs { grid-template-columns: repeat(2, 1fr); }
  .px-specs > div { border-left: 0; border-top: 1px solid var(--px-line); }
  .px-specs > div:nth-child(-n + 2) { border-top: 0; }
  .px-specs > div:nth-child(even) { border-left: 1px solid var(--px-line); }
  .px-gallery { grid-template-columns: repeat(2, 1fr); }
}
