:where(.seh-demos) .feature-preview-tile { margin-top: 20px; }
:where(.seh-demos) .overview-tile.opticus-preview-tile { animation: none; }

:where(.seh-demos) .feature-preview {
  --feature-action: #cc071a;
  --feature-accent: #cc071a;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 3.5vw, 44px);
  padding: clamp(20px, 3vw, 36px);
}

.seh-demos[data-theme="dark"] .feature-preview { --feature-accent: #ff828d; }

:where(.seh-demos) .opticus-preview { --opticus-caption: rgb(255 255 255 / .94); }
.seh-demos[data-theme="dark"] .opticus-preview { --opticus-caption: rgb(27 41 56 / .96); }

:where(.seh-demos) .feature-preview-link {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  text-decoration: none;
}

@media (width > 800px) {
  :where(.seh-demos) .feature-preview-reversed { grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); }
  :where(.seh-demos) .feature-preview-reversed .feature-preview-media { order: 1; }
}

:where(.seh-demos) .feature-preview-media {
  aspect-ratio: 3 / 2;
  border: 0;
  border-radius: 15px;
  background: #d7dce1;
}

:where(.seh-demos) .feature-preview-media .preview { object-fit: cover; background: #d7dce1; }
:where(.seh-demos) .feature-preview-media .refraction-preview-image {
  object-fit: contain;
  scale: 1.3992;
  translate: min(15mm, 14%) 0;
}

:where(.seh-demos) .feature-preview-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:where(.seh-demos) .feature-preview :is(h2, h3) {
  font-size: clamp(1.9rem, 4.25vw, 3.35rem);
  font-weight: 650;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

:where(.seh-demos) .opticus-preview-copy { container-type: inline-size; }

:where(.seh-demos) .opticus-preview-copy :is(h2, h3) {
  font-size: clamp(1.9rem, min(4.25vw, 10.3cqi), 3.35rem);
}

:where(.seh-demos) .feature-preview-title-line { display: block; }
:where(.seh-demos) .feature-preview-title-accent { color: var(--feature-accent); }

:where(.seh-demos) .feature-preview-intro {
  max-width: 43ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: var(--intro-text-size);
  line-height: 1.55;
}

:where(.seh-demos) .feature-preview-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 11px 16px;
  border-radius: 9px;
  background: var(--feature-action);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

:where(.seh-demos) .opticus-preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  margin: 24px 0 0;
}

:where(.seh-demos) .opticus-preview-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
  padding-inline: clamp(12px, 2vw, 23px);
  border-inline-start: 1px solid var(--border);
}

:where(.seh-demos) .opticus-preview-stats > div:first-child { padding-inline-start: 0; border: 0; }
:where(.seh-demos) .opticus-preview-stats > div:last-child { padding-inline-end: 0; }
:where(.seh-demos) .opticus-preview-stats dt { color: var(--muted); font-size: .8rem; }
:where(.seh-demos) .opticus-preview-stats dd { margin: 0; font-size: 1.6rem; font-weight: 650; line-height: 1.15; }

:where(.seh-demos) .opticus-slide { position: relative; }

:where(.seh-demos) .opticus-slide-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: clip;
  border-radius: 15px;
  background: #d7dce1;
  color: inherit;
  text-decoration: none;
}

:where(.seh-demos) .opticus-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  object-fit: cover;
}

:where(.seh-demos) .opticus-slide-caption {
  position: absolute;
  inset: auto 13px 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--opticus-caption);
}

:where(.seh-demos) .opticus-slide-caption small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .75rem; }

:where(.seh-demos) .opticus-slide-caption strong {
  display: block;
  font-size: clamp(1.05rem, 2.1vw, 1.6rem);
  font-weight: 650;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

:where(.seh-demos) .opticus-slide-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.2rem;
}

:where(.seh-demos) .opticus-slide-play, :where(.seh-demos) .opticus-slide-buttons button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

:where(.seh-demos) .opticus-slide-play {
  position: absolute;
  inset: 12px 12px auto auto;
  border-radius: 50%;
}

:where(.seh-demos) .opticus-slide-play::before {
  margin-inline-start: 2px;
  border-block: 6px solid transparent;
  border-inline-start: 9px solid currentColor;
  content: "";
}

:where(.seh-demos) .opticus-slide-play[aria-pressed="true"]::before {
  width: 10px;
  height: 12px;
  margin: 0;
  border: 0;
  border-inline: 3px solid currentColor;
}

:where(.seh-demos) .opticus-slide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: var(--muted);
  font-size: .875rem;
}

:where(.seh-demos) .opticus-slide-buttons { display: flex; gap: 6px; color: var(--theme-text, #16293d); }
:where(.seh-demos) .opticus-slide-play[hidden], :where(.seh-demos) .opticus-slide-controls[hidden] { display: none; }

:where(.seh-demos) .opticus-slide-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  :where(.seh-demos) .opticus-preview .feature-preview-cta:hover,
  :where(.seh-demos) .feature-preview-link:hover .feature-preview-cta { background: #ac0617; }

  :where(.seh-demos) :is(.opticus-slide-play, .opticus-slide-buttons button):hover, :where(.seh-demos) .opticus-slide-link:hover .opticus-slide-arrow {
    border-color: var(--accent);
    color: var(--accent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  :where(.seh-demos) .opticus-preview[data-preview-revealed] .opticus-preview-copy > :not(:is(h2, h3)),
  :where(.seh-demos) .opticus-preview[data-preview-revealed] > .opticus-slider {
    animation: page-enter 420ms var(--ease-out) backwards;
  }

  :where(.seh-demos) .opticus-preview[data-preview-revealed] > .opticus-slider { animation-delay: 65ms; }

  :where(.seh-demos) .opticus-preview[data-preview-revealed] .feature-preview-title-line {
    animation: opticus-title-enter 500ms var(--ease-out) 60ms backwards;
  }

  :where(.seh-demos) .opticus-preview[data-preview-revealed] .feature-preview-title-accent { animation-delay: 210ms; }

  :where(.seh-demos) :is(.feature-preview-cta, .opticus-slide-play, .opticus-slide-buttons button, .opticus-slide-arrow) {
    transition: background-color var(--control-speed), border-color var(--control-speed),
      color var(--control-speed), transform var(--control-speed);
  }

  :where(.seh-demos) .feature-preview-cta > span { transition: transform var(--control-speed); }
  :where(.seh-demos) .feature-preview-cta:focus-visible > span,
  :where(.seh-demos) .feature-preview-link:focus-visible .feature-preview-cta > span { transform: translateX(4px); }
  :where(.seh-demos) .opticus-slide-link:focus-visible .opticus-slide-arrow { transform: translate(2px, -2px); }
  :where(.seh-demos) :is(.opticus-slide-play, .opticus-slide-buttons button):active { transform: scale(.96); }
}

@keyframes opticus-title-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :where(.seh-demos) .opticus-preview .feature-preview-cta:hover > span,
  :where(.seh-demos) .feature-preview-link:hover .feature-preview-cta > span { transform: translateX(4px); }
  :where(.seh-demos) .opticus-slide-link:hover .opticus-slide-arrow { transform: translate(2px, -2px); }
}

@media (max-width: 800px) {
  :where(.seh-demos) .feature-preview { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  :where(.seh-demos) .feature-preview-tile { margin-top: 15px; }
  :where(.seh-demos) .opticus-slide-caption { inset: auto 8px 8px; padding: 8px 10px; }
}
