.seh-demos {
  color-scheme: light;
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  color: #16293d;
  background: #edf3f8;
  --surface: #fff;
  --border: #dce5ee;
  --muted: #52677c;
  --accent: #1a6e8a;
  --track: #dbe7ee;
  --track-disabled: #e8edf2;
}

:where(.seh-demos) *, :where(.seh-demos) *::before, :where(.seh-demos) *::after {
  box-sizing: border-box;
}

.seh-demos {
  margin: 0;
}

:where(.seh-demos) .demo-main {
  margin: clamp(32px, 6vh, 76px) auto 48px;
}

:where(.seh-demos) .back-link {
  display: inline-block;
  margin-bottom: 17px;
  color: var(--accent);
  font-size: 1.0625rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: .23em;
}

:where(.seh-demos) .page-header {
  margin-bottom: 28px;
}

:where(.seh-demos) :is(h1, .demo-section-title), :where(.seh-demos) h2, :where(.seh-demos) p {
  margin: 0;
}

:where(.seh-demos) :is(h1, .demo-section-title) {
  font-size: clamp(2.15rem, 5vw, 3.5rem);
}

:where(.seh-demos) .page-header p {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
}

:where(.seh-demos) .demo {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 38px rgb(33 63 91 / .07);
  overflow: clip;
}

:where(.seh-demos) .demo-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px 10px;
}

:where(.seh-demos) h2 {
  font-size: 1.0625rem;
  font-weight: 650;
}

:where(.seh-demos) .light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f6f9fc;
  color: #203a50;
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}

:where(.seh-demos) .light:hover {
  border-color: #9bb5c6;
}

:where(.seh-demos) .light[aria-pressed="true"] {
  background: #fff6dc;
  border-color: #ead8ab;
  color: #583e12;
}

:where(.seh-demos) .switch {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 18px;
  background: #61778a;
}

:where(.seh-demos) .switch::before {
  position: absolute;
  inset: 3px auto 3px 3px;
  width: 12px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 150ms ease;
}

:where(.seh-demos) .light[aria-pressed="true"] .switch {
  background: #986000;
}

:where(.seh-demos) .light[aria-pressed="true"] .switch::before {
  transform: translateX(14px);
}

:where(.seh-demos) .stage {
  padding: 0 12px;
  background: var(--eye-background);
}

:where(.seh-demos) .stage svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
}

:where(.seh-demos) .axis {
  fill: none;
  stroke: #9bb0c1;
  stroke-dasharray: 3 7;
  stroke-width: 1.35;
}

:where(.seh-demos) .lens {
  fill: #bce5f2;
  fill-opacity: .15;
  stroke: #628aa1;
  stroke-opacity: .55;
  stroke-width: 1.2;
}

:where(.seh-demos) .letter {
  fill: #132334;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 83px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
}

:where(.seh-demos) .beam {
  display: none;
  pointer-events: none;
}

:where(.seh-demos) .beam.is-lit {
  display: inline;
}

:where(.seh-demos) .beam-lines {
  fill: none;
  stroke: #a36500;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where(.seh-demos) .reveal {
  transform-origin: 0 0;
  transform: scaleX(0);
}

:where(.seh-demos) .stage:has(.beam.is-lit) .reveal {
  transform: scaleX(1);
  transition: transform 2.6s cubic-bezier(.25, .75, .38, 1);
}

:where(.seh-demos) .controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  padding: 23px 28px 14px;
  border-top: 1px solid var(--border);
  background: #f9fbfd;
}

:where(.seh-demos) .control-heading, :where(.seh-demos) .range-ends {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

:where(.seh-demos) .control-heading {
  font-weight: 650;
}

:where(.seh-demos) .control-heading output {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

:where(.seh-demos) .range-ends, :where(.seh-demos) .limit {
  color: var(--muted);
  font-size: .8125rem;
}

:where(.seh-demos) input[type="range"] {
  display: block;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 4px 0 1px;
  padding: 0;
  background: transparent;
  accent-color: var(--accent);
  cursor: pointer;
  --position: 0%;
  --bound: 100%;
  --range-fill: linear-gradient(to right,
    var(--accent) var(--position),
    var(--track) var(--position) var(--bound),
    var(--track-disabled) var(--bound));
}

:where(.seh-demos) input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: var(--range-fill);
}

:where(.seh-demos) input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: var(--range-fill);
}

:where(.seh-demos) input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

:where(.seh-demos) input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

:where(.seh-demos) a:focus-visible, :where(.seh-demos) button:focus-visible, :where(.seh-demos) input:focus-visible {
  outline: 3px solid #257ba1;
  outline-offset: 3px;
}

:where(.seh-demos) .limit {
  padding: 0 28px 18px;
  background: #f9fbfd;
  line-height: 1.45;
}

:where(.seh-demos) .limit strong {
  margin-inline-start: .28em;
  color: #274559;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  :where(.seh-demos) .demo-main {
    margin-top: 28px;
  }

  :where(.seh-demos) .page-header {
    margin-bottom: 20px;
  }

  :where(.seh-demos) .demo {
    border-radius: 18px;
  }

  :where(.seh-demos) .demo-header {
    padding: 12px 16px 10px;
  }

  :where(.seh-demos) .stage {
    padding: 0;
  }

  :where(.seh-demos) .controls {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 15px 16px 14px;
  }

  :where(.seh-demos) .limit {
    padding: 0 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.seh-demos) .switch::before {
    transition: none;
  }

  :where(.seh-demos) .stage:has(.beam.is-lit) .reveal {
    transition: none;
  }
}
