:root {
  --ruler-color:        rgba(0, 0, 0, 0.13);
  --ruler-color-strong: rgba(0, 0, 0, 0.22);
  --ruler-tick-color:   rgba(0, 0, 0, 0.18);
  --ruler-text-color:   rgba(0, 0, 0, 0.28);
  --ruler-dot-bg:       #ffffff;
  --ruler-dot-border:   rgba(0, 0, 0, 0.38);
  --ruler-dot-size:     6px;
  --ruler-accent:       rgba(0, 240, 152, 0.55); 
}

.ruler-section {
  position: relative;
}

.ruler-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ruler-color-strong);
  z-index: 20;
  pointer-events: none;
}

.ruler-edge {
  position: relative;
  width: 100%;
  height: 20px;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
  flex-shrink: 0;
}

.ruler-edge--top    { border-bottom: 1px solid var(--ruler-color-strong); }
.ruler-edge--bottom { border-top:    1px solid var(--ruler-color-strong); }

.ruler-edge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ruler-divider {
  position: relative;
  width: 100%;
  height: 28px;
  background: var(--black);
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.ruler-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ruler-color-strong);
  transform: translateY(-50%);
  z-index: 1;
}

.ruler-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to right,
      transparent,
      transparent 79px,
      var(--ruler-tick-color) 79px,
      var(--ruler-tick-color) 80px
    );
  background-size: 80px 100%;
  z-index: 0;
}

.ruler-divider__label {
  position: relative;
  z-index: 2;
  background: var(--black);
  padding: 0 14px;
  font-family: 'Space Mono', monospace;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ruler-text-color);
  white-space: nowrap;
  user-select: none;
  margin-left: 40px;
}

.ruler-divider__ticks {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  background: linear-gradient(to right, var(--black) 60%, transparent);
}

.corner-node {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 30;
  pointer-events: none;
}

.corner-node::before,
.corner-node::after {
  content: '';
  position: absolute;
  background: var(--ruler-dot-border);
}

.corner-node::before {
  height: 1px;
  width: 14px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.corner-node::after {
  width: 1px;
  height: 14px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.corner-node .node-dot {
  position: absolute;
  width: var(--ruler-dot-size);
  height: var(--ruler-dot-size);
  background: var(--ruler-dot-bg);
  border: 1.5px solid var(--ruler-dot-border);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.corner-node.top-left     { top: -7px;  left: -7px;  }
.corner-node.top-right    { top: -7px;  right: -7px; }
.corner-node.bottom-left  { bottom: -7px; left: -7px;  }
.corner-node.bottom-right { bottom: -7px; right: -7px; }

.hero .corner-node.top-left::before    { width: 32px; }
.hero .corner-node.top-right::before   { width: 32px; right: 0; left: auto; }
.hero .corner-node.bottom-left::before { width: 32px; }
.hero .corner-node.bottom-right::before{ width: 32px; right: 0; left: auto; }

.hero .corner-node.top-left::after    { height: 32px; }
.hero .corner-node.top-right::after   { height: 32px; }
.hero .corner-node.bottom-left::after { height: 32px; bottom: 0; top: auto; }
.hero .corner-node.bottom-right::after{ height: 32px; bottom: 0; top: auto; }

.side-ruler {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}

.side-ruler--left  { left: -20px; border-right: 1px solid var(--ruler-color-strong); }
.side-ruler--right { right: -20px; border-left:  1px solid var(--ruler-color-strong); }

.side-ruler::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 39px,
      var(--ruler-tick-color) 39px,
      var(--ruler-tick-color) 40px
    );
  background-size: 100% 40px;
}

.section-ruler {
  width: 100%;
  height: 22px;
  position: relative;
  overflow: hidden;
  pointer-events: none;
  flex-shrink: 0;
}

.section-ruler--light { background: var(--black); }
.section-ruler--mid   { background: #dedfde; }


.section-ruler::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ruler-color-strong);
}

.section-ruler::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22px;
  background-image:
    
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 19px,
      var(--ruler-color) 19px,
      var(--ruler-color) 20px
    ),
    
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 79px,
      var(--ruler-tick-color) 79px,
      var(--ruler-tick-color) 80px
    );
  background-position: bottom, bottom;
  mask-image:
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 19px,
      black 19px,
      black 20px
    ),
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 79px,
      black 79px,
      black 80px
    );
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

.hero-wrapper {
  position: relative;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 30px;   
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ruler-color-strong);
  z-index: 5;
  pointer-events: none;
}

.hero-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ruler-color-strong);
  z-index: 5;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40px;
  right: -40px;
  border-top: none;
  border-bottom: none;
  pointer-events: none;
  z-index: 4;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  bottom: -10px;
  border-left: 1px solid var(--ruler-color-strong);
  border-right: 1px solid var(--ruler-color-strong);
  pointer-events: none;
  z-index: 4;
}

.install-frame::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40px;
  right: -40px;
  border-top: none;
  border-bottom: none;
  pointer-events: none;
  z-index: 4;
}

.install-frame::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  bottom: -10px;
  border-left: 1px solid var(--ruler-color-strong);
  border-right: 1px solid var(--ruler-color-strong);
  pointer-events: none;
  z-index: 4;
}

.ruler-canvas {
  display: block;
  width: 100%;
  height: 24px;
  pointer-events: none;
}

.ruler-frame {
  position: relative;
}

.ruler-frame::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 1px;
  background: var(--ruler-color);
  pointer-events: none;
  z-index: 3;
}

.ruler-frame::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 40px;
  width: 1px;
  background: var(--ruler-color);
  pointer-events: none;
  z-index: 3;
}

.providers {
  position: relative;
}

.articles {
  position: relative;
}

.cta-banner {
  position: relative;
}

.tick-label {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: 7px;
  color: var(--ruler-text-color);
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.04em;
}

.section-transition {
  width: 100%;
  height: 28px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-transition--dark { background: var(--black); }
.section-transition--mid  { background: #dedfde; }

.section-transition canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-wrapper,
.providers,
.articles,
.cta-banner {
  border-bottom: 1px solid var(--ruler-color-strong);
}

.section-transition__label--highlight {
  background: rgba(0, 240, 152, 0.18) !important;
  color: rgba(0, 0, 0, 0.55) !important;
  padding: 1px 5px !important;
  border-radius: 2px;
}

.section-transition__label {
  position: relative;
  z-index: 2;
  margin-left: 60px;
  font-family: 'Space Mono', monospace;
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ruler-text-color);
  user-select: none;
  background: inherit;
  padding: 0 10px;
}

.section-transition__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ruler-dot-bg);
  border: 1.5px solid var(--ruler-dot-border);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .side-ruler { display: none; }
  .ruler-frame::before,
  .ruler-frame::after { display: none; }
  .section-transition__label { margin-left: 16px; }

  .hero::after,
  .hero-wrapper::before,
  .hero-wrapper::after { display: none; }
  .hero .corner-node { display: none; }
}
@media (min-width: 991px) {
  .section-transition__label {
    font-size: 11px;
    letter-spacing: 0.2em;
    padding: 0 14px;
  }
  .section-transition__label--highlight {
    padding: 2px 8px !important;
    border-radius: 3px;
  }
}

.section-transition__label--highlight {
  white-space: nowrap;
}
.ruler-canvas {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

@media (max-width: 700px) {
  .image-showcase-ruler,
  .hiw-ruler-bottom,
  .articles-ruler-bottom {
    display: none;
  }

  .section-transition canvas {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .image-showcase {
    border-bottom: 1px solid var(--line);
  }

  .hiw-section {
    border-top: 1px solid var(--line);
  }

  .articles {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 700px) {
  .open-source-vruler {
    height: 40px;
  }
}

@media (max-width: 700px) {
 
  .ruler-canvas,
  canvas[data-dir] { display: none !important; }

  .ruler-edge { display: none !important; }

  .ruler-section::before { display: none !important; }

  .ruler-frame::before,
  .ruler-frame::after { display: none !important; }

  .side-ruler { display: none !important; }

  .corner-node { display: none !important; }

  .hero::after,
  .hero-wrapper::before,
  .hero-wrapper::after { display: none !important; }

}

@media (max-width: 700px) {
  .ruler-canvas,
  canvas[data-dir] {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}