/* Shell and dashboard styles from Qlyphscan feat/zscan-style-explorer, 9cef0a2. */
:root {
  --card: var(--surface);
  --border: var(--line);
  --border-strong: var(--strong-line);
  --link: var(--accent);
  --link-hover: var(--ink);
  --success: var(--positive);
  --muted-bg: var(--inset);
  --faint: var(--muted);
  --field-ink: #fff5ea;
  --field-link: #f1d3b9;
  --shadow-card: var(--shadow);
  --shadow-pop: 0 12px 32px rgb(52 35 23 / 18%);
  --dur-fast: 140ms;
  --ease: ease-out;
  --gutter: clamp(16px, 4vw, 48px);
  --t-40: clamp(29px, 3.2vw, 46px);
  /* Type: seven sizes and their line heights; nothing else. */
  --t-12: 12px;
  --lh-12: 16px;
  --t-13: 13px;
  --lh-13: 20px;
  --t-14: 14px;
  --lh-14: 20px;
  --t-15: 15px;
  --lh-15: 24px;
  --t-18: 18px;
  --lh-18: 26px;
  --t-20: 20px;
  --lh-20: 28px;
  --t-24: 24px;
  --lh-24: 32px;

  /* Space: a 4 px grid, the only values of margin, padding and gap in component styles. */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Radius: one per family. */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
}
.site-header {
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--card);
}

.bar-inner {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
}

.topbar {
  height: 48px;
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  justify-content: space-between;
  gap: var(--sp-6);
}

.vitals {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--t-13);
  line-height: var(--lh-13);
  color: var(--muted);
  white-space: nowrap;
}

.vital {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-1);
}

.vital + .vital {
  padding-left: var(--sp-4);
}

.vital + .vital::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 1px;
  height: 12px;
  background: var(--border);
}

.vital-value {
  font-weight: 500;
  color: var(--ink);
}

a.vital-value {
  color: var(--link);
}

.vital-live {
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: var(--r-sm);
  background: var(--success);
}

a.vital-value:hover {
  color: var(--link-hover);
}

.topbar-tools {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
  min-width: 0;
}

/* The search box is 480 px wide, and gives way before the vitals do when the window is narrow. */
.topbar-tools .search {
  flex: 0 1 480px;
  min-width: 0;
}

.net-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  height: 24px;
  padding: 0 var(--sp-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: var(--t-12);
  line-height: var(--lh-12);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.net-pill-id {
  color: var(--ink);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-lg);
  color: var(--muted);
  transition:
    background-color var(--dur-fast),
    color var(--dur-fast);
}

.icon-button:hover,
.icon-button[aria-expanded="true"] {
  background: var(--muted-bg);
  color: var(--ink);
}

.theme-icon {
  display: none;
}

.navbar {
  position: relative;
  height: 56px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.navbar-inner {
  align-items: flex-start;
  gap: var(--sp-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 56px;
  color: var(--ink);
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

.brand-tile {
  fill: var(--brand);
}

/* The name reads "Qlyphs EVM devnet"; as on ZScan, the second half of the logotype takes the brand colour. */
.brand-name {
  font-size: var(--t-20);
  line-height: var(--lh-20);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--link);
}

.nav {
  display: flex;
  align-items: flex-start;
  margin-left: auto;
  margin-right: calc(-1 * var(--sp-3));
}

.nav-menu {
  position: relative;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  height: 56px;
  padding: 0 var(--sp-3);
  font-size: var(--t-15);
  line-height: var(--lh-15);
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--link);
  text-decoration: none;
}

.nav-item:focus-visible {
  outline-offset: -2px;
}

.nav-item .icon {
  transition: transform var(--dur-fast) var(--ease);
}

.nav-item[aria-expanded="true"] {
  color: var(--link);
}

.nav-item[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.nav-item[aria-current] {
  color: var(--link);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  align-self: center;
  margin-left: auto;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* The phone sheet: the same links as the menus, under the header, scrolling inside the window. */
.nav-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  max-height: calc(100dvh - 104px - max(10px, env(safe-area-inset-top)));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
}

.sheet-inner {
  padding: var(--sp-2) var(--gutter) var(--sp-4);
}

.sheet-group {
  padding-top: var(--sp-3);
}

.sheet-title {
  padding: var(--sp-1) 0;
  font-size: var(--t-13);
  line-height: var(--lh-13);
  font-weight: 500;
  color: var(--muted);
}

.sheet-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-14);
  line-height: var(--lh-14);
  color: var(--ink);
}

.sheet-link:hover {
  color: var(--link);
}

.sheet-link[aria-current] {
  font-weight: 600;
}

.sheet-foot {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--gutter) var(--sp-6);
  border-top: 1px solid var(--border);
}

/* The top bar's vitals are hidden below 1,024 px; the sheet shows its own. */
.sheet-foot .vitals {
  display: flex;
  flex-wrap: wrap;
}

.sheet-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

@media (max-width: 1023px) {
  .vitals,
  .topbar-tools .net-pill,
  .topbar-tools .theme-menu,
  .nav {
    display: none;
  }

  .topbar-tools {
    flex: 1;
  }

  .topbar-tools .search {
    flex: 1 1 auto;
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  body[data-page="home"] .topbar {
    display: none;
  }
}

@media (min-width: 1024px) {
  .nav-sheet {
    display: none;
  }

  /* The home page has its own search: the top bar keeps the vitals, the network and the theme, as on ZScan. */
  body[data-page="home"] .topbar-tools .search {
    display: none;
  }
}

.menu {
  position: relative;
  display: inline-block;
}

.menu-button {
  cursor: pointer;
}

.menu-button.btn {
  display: inline-flex;
}

.menu-panel {
  position: absolute;
  top: calc(100% + var(--sp-1));
  left: 0;
  z-index: 50;
  min-width: 224px;
  padding: var(--sp-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop);
  animation: pop-in var(--dur-fast) var(--ease);
}

.menu-panel.is-above {
  top: auto;
  bottom: calc(100% + var(--sp-1));
}

.menu-panel.menu-end,
.menu-panel.is-flipped {
  left: auto;
  right: 0;
}

.menu-panel.menu-end.is-flipped {
  left: 0;
  right: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  min-height: 36px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-lg);
  font-size: var(--t-14);
  line-height: var(--lh-14);
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}

.menu-item:hover,
.menu-item:focus {
  background: var(--muted-bg);
  color: var(--ink);
  text-decoration: none;
}

.menu-item:focus-visible {
  outline-offset: -2px;
}

.menu-item[aria-current="page"],
.menu-item[aria-checked="true"] {
  color: var(--link);
  background: color-mix(in srgb, var(--link) 10%, var(--card));
  font-weight: 600;
}

.menu-item .icon-external {
  margin-left: auto;
  color: var(--faint);
}

.menu-check {
  display: inline-flex;
  width: 16px;
  visibility: hidden;
}

.menu-item[aria-checked="true"] .menu-check {
  visibility: visible;
}

.nav-menu > .nav-dropdown {
  top: 100%;
  min-width: 248px;
  padding: var(--sp-2) var(--sp-2) var(--sp-3);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.nav-dropdown .menu-item:hover,
.nav-dropdown .menu-item:focus {
  color: var(--link);
}

/* The button of an open menu takes the link colour, as on Etherscan. */
.nav-menu:has(> .nav-dropdown:not([hidden])) > .nav-item {
  color: var(--link);
}

.site-footer {
  margin-top: var(--sp-16);
  padding-top: var(--sp-12);
  background: var(--card);
  border-top: 1px solid var(--border);
}

.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-8);
}

@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-cols {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
}

.footer-brand .brand {
  height: 24px;
}

.footer-note {
  margin-top: var(--sp-3);
  max-width: 360px;
  font-size: var(--t-13);
  line-height: var(--lh-13);
  color: var(--muted);
}

.footer-title {
  margin-bottom: var(--sp-3);
  font-size: var(--t-13);
  line-height: var(--lh-13);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-links a {
  font-size: var(--t-14);
  line-height: var(--lh-14);
  color: var(--ink);
}

.footer-links a:hover {
  color: var(--link-hover);
}

.hero-main {
  width: 100%;
  min-width: 0;
}
.hero-title {
  color: var(--field-ink);
  text-align: left;
  text-wrap: balance;
}
.hero .search-large {
  margin-top: clamp(16px, 2vw, 24px);
  border-color: color-mix(in srgb, var(--brand) 22%, var(--border));
  box-shadow: 0 8px 24px #25130d30;
}
.stat-stack {
  min-width: 0;
}

/* A figure with its icon: ZScan's round tile on the left, the label in small capitals. */
.stat-stack-icon {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: var(--sp-3);
  align-items: start;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: var(--sp-1);
  color: var(--muted);
}

.stat-icon .icon {
  width: 22px;
  height: 22px;
}

.stat-body {
  min-width: 0;
}

.stat-stack-icon .stat-label {
  font-size: var(--t-12);
  line-height: var(--lh-12);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-label,
.kpi-label {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-13);
  line-height: var(--lh-13);
  color: var(--muted);
}

.stat-value {
  margin-top: var(--sp-1);
  font-size: var(--t-15);
  line-height: var(--lh-15);
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.stat-sub,
.kpi-sub {
  font-size: var(--t-13);
  line-height: var(--lh-13);
  color: var(--muted);
}

/* The home page's card of figures and the chart. */
.stats-card {
  padding: var(--sp-5) var(--sp-6);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.stats-col {
  display: contents;
}

.stats-col > .stat-stack + .stat-stack {
  padding-top: 0;
}

.stats-chart {
  display: none;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0;
    row-gap: var(--sp-6);
  }

  .stats-col {
    display: block;
    padding: 0 var(--sp-6);
    border-left: 1px solid var(--border);
  }

  .stats-col:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .stats-col > .stat-stack + .stat-stack {
    margin-top: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
  }

  .stats-chart {
    display: block;
    grid-column: 1 / -1;
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr);
    row-gap: 0;
  }

  .stats-chart {
    grid-column: auto;
    padding: 0 0 0 var(--sp-6);
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

.site-header {
  position: relative;
  z-index: 5;
}
.site-header button,
.sheet-title,
.vitals {
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
}
.site-header button {
  font: inherit;
}
.site-header [hidden] {
  display: none !important;
}
.site-header .bar-inner,
.wrap {
  max-width: 1400px;
}
.wrap {
  width: 100%;
  padding-inline: var(--gutter);
}
.navbar-inner {
  align-items: center;
}
.nav-item {
  font-weight: 400;
}
.site-header .brand,
.site-footer .brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 29px;
}
.site-header .brand {
  height: auto;
}
.site-header .brand i,
.site-footer .brand i {
  margin-right: 4px;
}
.site-header .vitals {
  list-style: none;
}
.site-header .menu-item {
  border: 0;
  text-align: left;
  font-size: 14px;
  padding: 0 12px;
}
.menu-panel {
  overflow: auto;
  overscroll-behavior: contain;
}
.segmented [aria-pressed="true"] {
  color: var(--accent);
  background: var(--tile);
}
:root .theme-icon {
  display: none;
}
:root[data-appearance="light"] .theme-icon-light,
:root[data-appearance="dark"] .theme-icon-dark,
:root[data-appearance="system"] .theme-icon-system {
  display: flex;
}
.sheet-link {
  gap: 8px;
}
.sheet-title {
  padding-block: 4px;
}
.sheet-foot {
  padding-bottom: 24px;
}
.segmented {
  display: inline-flex;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
}
.segmented button {
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
}
.sheet-foot-row {
  flex-wrap: wrap;
}
html.hide-amounts
  :is(
    .amt,
    .amount,
    a[href^="/address/"],
    a[href^="/nfts/Q"],
    .sensitive-address
  ) {
  filter: blur(0.32em);
  user-select: none;
}
.skip:focus {
  z-index: 10;
}
.site-footer {
  padding-bottom: 40px;
}
#content {
  min-width: 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(32px, 5vw, 76px);
  padding: clamp(36px, 4vw, 56px) 0;
}
.hero-field {
  inset: 0 calc((100% - 100vw) / 2) -60px;
}
.hero h1.hero-title {
  font-size: var(--t-40);
  font-weight: 500;
  margin: 0;
}
.hero .search-large {
  width: 100%;
  max-width: none;
}
.stats-card {
  position: relative;
  margin: 0 0 24px;
}
.stats-chart .gas-history {
  margin: 0;
  padding: 0;
  border: 0;
}
.site-footer p {
  margin-bottom: 0;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}
@media (max-width: 639px) {
  .hero {
    padding: 24px 0 40px;
  }
  .stats-card {
    padding: 16px;
  }
  .stat-stack-icon {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
  }
  .stat-stack-icon .stat-icon,
  .stat-stack-icon .icon {
    width: 20px;
  }
  .stat-sub {
    display: none;
  }
  .site-footer .footer-cols {
    gap: 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .feed-row.is-new {
    animation: feed-flash 1.2s ease-out;
  }
  @keyframes feed-flash {
    from {
      background: var(--tile);
    }
    to {
      background: transparent;
    }
  }
}

.search-filter {
  position: relative;
  order: -1;
  flex: none;
  align-self: stretch;
  margin-right: var(--sp-1);
}

.search-filter-button {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 100%;
  padding: 0 var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--muted-bg);
  font-size: var(--t-14);
  line-height: var(--lh-14);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-fast);
}

.search-filter-button:hover,
.search-filter-button[aria-expanded="true"] {
  border-color: var(--border-strong);
}

.search-filter-button .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
  transition: transform var(--dur-fast) var(--ease);
}

.search-filter-button[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.search-filter-button:focus-visible {
  outline: 2px solid var(--flare);
  outline-offset: 2px;
}

.search-filter-list {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 0;
  z-index: 60;
  min-width: 100%;
  padding: var(--sp-1);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-pop);
}

.search-filter-option {
  min-height: 36px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--t-14);
  line-height: var(--lh-14);
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}

.search-filter-option:hover,
.search-filter-option:focus {
  background: var(--muted-bg);
  outline: none;
}

.search-filter-option:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: -2px;
}

.search-filter-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--link) 10%, var(--card));
  color: var(--link);
  font-weight: 500;
}

.site-header .nav-toggle {
  margin-left: auto;
}
.nav-sheet {
  max-height: calc(100dvh - 56px - max(10px, env(safe-area-inset-top)));
}
body[data-page="record"] .nav-sheet {
  max-height: calc(100dvh - 104px - max(10px, env(safe-area-inset-top)));
}
.hero:has(.search-filter-list:not([hidden])) {
  z-index: 2;
}
.hero .search-large {
  overflow: visible;
}
.hero .search-large .search-filter-button {
  background: var(--inset);
  color: var(--ink);
  width: max-content;
  min-height: 36px;
  padding: 0 12px;
  flex-wrap: nowrap;
  justify-content: center;
}
.search-filter-button .icon {
  flex: 0 0 12px;
}
.search-filter-list {
  list-style: none;
  margin: 0;
}
.feed-method {
  display: block;
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
#asset-activity {
  margin-top: 20px;
}

.nav-dropdown.more-panel {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 16px;
  padding: 16px;
}
.more-panel .more-section + .more-section {
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.menu-heading {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 12px 6px;
}
.sheet-group .more-section {
  margin: 12px 0 0 12px;
}
.sheet-group .menu-heading {
  margin-left: 0;
}

.signature-diagram {
  display: grid;
  grid-template-columns: minmax(126px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  position: relative;
  min-width: 0;
  max-width: 485px;
  margin: 0;
  padding: 4px 0 4px clamp(18px, 2.2vw, 34px);
  border-left: 1px solid #d59a6b55;
  color: #ffead5;
}
.hero-field .field-contours {
  opacity: 0.14;
}
.signature-diagram figcaption {
  position: relative;
  z-index: 1;
}
.signature-diagram figcaption strong {
  display: block;
  margin-bottom: 12px;
  color: #eab28c;
  font:
    560 clamp(16px, 1.4vw, 21px) / 1.1 Instrument,
    sans-serif;
  letter-spacing: -0.02em;
}
.signature-steps {
  display: grid;
}
.signature-step {
  grid-area: 1/1;
  opacity: 0;
}
.signature-step span {
  display: block;
  font-size: 13px;
}
.signature-step b {
  display: block;
  margin-top: 4px;
  font:
    italic 31px/1.1 Editorial,
    Georgia,
    serif;
  white-space: nowrap;
}
.signature-step.response {
  opacity: 1;
}
.signature-diagram svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.lattice-wire {
  fill: none;
  stroke: #e6b28a;
  stroke-width: 0.8;
  opacity: 0.64;
}
.vector-plane {
  fill: #f0ad7330;
}
.vector {
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
}
.vector.mask {
  stroke: #ffefd5;
}
.vector.offset {
  stroke: #efa167;
}
.vector.response {
  stroke: #ffdfb6;
}
.vector-node {
  fill: #ffe4c5;
}
.vector-labels {
  fill: #ffe1c1;
  font:
    italic 15px Editorial,
    Georgia,
    serif;
}
@media (prefers-reduced-motion: no-preference) {
  .signature-diagram {
    --cycle: 9s;
  }
  .signature-step {
    animation: signature-caption var(--cycle) linear infinite;
  }
  .signature-step.offset {
    animation-delay: -6s;
  }
  .signature-step.response {
    animation-delay: -3s;
  }
  .vector {
    stroke-dasharray: 1;
    animation: draw-mask var(--cycle) linear infinite;
  }
  .vector.offset {
    animation-name: draw-offset;
  }
  .vector.response {
    animation-name: draw-response;
  }
  .vector-plane {
    animation: fill-response var(--cycle) linear infinite;
  }
  @keyframes signature-caption {
    0%,
    28% {
      opacity: 1;
      transform: translateY(0);
    }
    33%,
    96% {
      opacity: 0;
      transform: translateY(3px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes draw-mask {
    0%,
    100% {
      stroke-dashoffset: 1;
      opacity: 0;
    }
    3% {
      stroke-dashoffset: 1;
      opacity: 1;
    }
    25%,
    90% {
      stroke-dashoffset: 0;
      opacity: 1;
    }
    96% {
      stroke-dashoffset: 0;
      opacity: 0;
    }
  }
  @keyframes draw-offset {
    0%,
    33%,
    100% {
      stroke-dashoffset: 1;
      opacity: 0;
    }
    36% {
      stroke-dashoffset: 1;
      opacity: 1;
    }
    58%,
    90% {
      stroke-dashoffset: 0;
      opacity: 1;
    }
    96% {
      stroke-dashoffset: 0;
      opacity: 0;
    }
  }
  @keyframes draw-response {
    0%,
    65%,
    100% {
      stroke-dashoffset: 1;
      opacity: 0;
    }
    68% {
      stroke-dashoffset: 1;
      opacity: 1;
    }
    84%,
    93% {
      stroke-dashoffset: 0;
      opacity: 1;
    }
    98% {
      stroke-dashoffset: 0;
      opacity: 0;
    }
  }
  @keyframes fill-response {
    0%,
    65%,
    100% {
      opacity: 0;
    }
    82%,
    92% {
      opacity: 1;
    }
  }
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .signature-diagram {
    width: min(100%, 315px);
    grid-template-columns: 130px 1fr;
    border-left: 0;
    padding: 0;
  }
}
@media (max-width: 639px) {
  .hero .search-large .search-filter-button {
    padding: 0 8px;
    gap: 5px;
    font-size: 12px;
  }
  .signature-diagram {
    width: min(100%, 280px);
  }
  .signature-diagram figcaption strong {
    margin-bottom: 6px;
  }
  .signature-step b {
    font-size: 25px;
  }
}
