#home .product-hero-photo {
  position: relative;
  isolation: isolate;
}

.demonstrations {
  margin-top: clamp(1.4rem, 3vw, 2.5rem);
}

.demonstrations h2 {
  margin: 0 0 .7rem;
  font: 600 clamp(1.2rem, 2vw, 1.55rem)/1.2 Barlow, Arial, sans-serif;
}

.demonstration-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  max-width: 48.75rem;
}

.demonstration-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}

.demonstration-card:hover {
  border-color: #aeb6b2;
}

.demonstration-card:focus-visible,
.demonstration-close:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.demonstration-poster {
  position: relative;
  display: block;
  background: #e8e9e7;
}

.demonstration-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.demonstration-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px #0003;
}

.demonstration-play::after {
  content: "";
  margin-left: 3px;
  border: 8px solid transparent;
  border-right: 0;
  border-left: 12px solid var(--red);
}

.demonstration-duration {
  position: absolute;
  right: .45rem;
  bottom: .45rem;
  padding: .14rem .38rem;
  border-radius: 3px;
  background: #182122e0;
  color: #fff;
  font-size: .72rem;
  line-height: 1.3;
}

.demonstration-copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  flex: 1;
  gap: .3rem;
  padding: .8rem 1rem;
  color: var(--muted);
  font-size: .9rem;
}

.demonstration-copy strong {
  color: var(--ink);
  font: 600 1.13rem/1.2 Barlow, Arial, sans-serif;
}

.demonstration-action {
  color: var(--red);
  font-weight: 700;
}

html:has(.demonstration-dialog[open]) {
  overflow: hidden;
}

.demonstration-dialog {
  width: min(60rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.demonstration-dialog::backdrop {
  background: #131919ac;
}

.demonstration-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .45rem .9rem;
}

.demonstration-dialog-header h2 {
  margin: 0;
  font: 600 clamp(1rem, 2vw, 1.4rem)/1.2 Barlow, Arial, sans-serif;
}

.demonstration-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: 400 1.5rem/1 Roboto, Arial, sans-serif;
  cursor: pointer;
}

.demonstration-close:hover {
  color: var(--red);
}

.demonstration-dialog video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 10rem);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #131313;
}

.demonstration-dialog p {
  margin: 0;
  padding: .7rem .9rem;
  font-size: .875rem;
}

.demonstration-status {
  color: var(--red);
}

@media (max-width: 560px) {
  .demonstration-list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 24rem;
  }

  .demonstration-dialog {
    width: calc(100% - 1rem);
  }
}

@media (max-width: 560px), (max-width: 900px) and (max-height: 500px) {
  .demonstrations-in-view .floating-contact:not(:focus-visible) {
    visibility: hidden;
  }
}

#technology,
#contact {
  background: #fff;
}

#technology .technology-video,
#technology .technology-continuity {
  max-width: 56rem;
  margin-inline: auto;
}

#technology .technology-video {
  margin-block: 0 clamp(1.25rem, 3vw, 2rem);
}

#technology .technology-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #25272a;
}

@media (max-width: 700px) {
  #home .product-hero-photo {
    grid-row: 1;
  }
}

#home :is(.vf-product-hero-light, .vf-product-hero-rim) {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#home .vf-product-hero-light {
  /* Trace the transparent area inside the printed glass border. */
  clip-path: polygon(
    22.1% 24%, 22.5% 20%, 23.5% 18%, 26% 17.3%, 31% 16.8%,
    36% 16.8%, 40% 17.4%, 44% 18.7%, 48% 21%, 53% 25.7%,
    59% 32.1%, 65% 39%, 70.5% 45.7%, 71.8% 49.9%, 73% 56%,
    74.4% 63%, 76% 71%, 77.6% 80.2%, 68% 76.3%, 59% 72.7%,
    50% 69.1%, 41% 65.5%, 32% 61.8%, 26.2% 59.4%, 25% 54%,
    23.9% 47%, 22.8% 38%, 22.2% 30%
  );
}

#home .vf-product-hero-rim {
  /* Follow the existing polished edge along the upper arc. */
  clip-path: polygon(
    38.67% 12.25%, 41.09% 13.17%, 43.51% 13.90%, 45.93% 15.01%,
    48.34% 16.39%, 50.76% 18.05%, 53.18% 19.98%, 55.59% 22.10%,
    58.01% 24.31%, 60.43% 26.98%, 62.85% 29.10%, 65.26% 31.58%,
    67.68% 34.25%, 70.10% 37.20%, 72.51% 39.96%, 74.93% 42.63%,
    74.93% 43.19%, 72.51% 40.52%, 70.10% 37.75%, 67.68% 34.81%,
    65.26% 32.14%, 62.85% 29.65%, 60.43% 27.53%, 58.01% 24.86%,
    55.59% 22.65%, 53.18% 20.53%, 50.76% 18.60%, 48.34% 16.94%,
    45.93% 15.56%, 43.51% 14.46%, 41.09% 13.72%, 38.67% 12.80%
  );
  mask-image: linear-gradient(90deg, transparent 38.65%, #000 42%, #000 71%, transparent 74.95%);
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: no-preference) {
  #home :is(.vf-product-hero-light, .vf-comparison-light)::before,
  #home :is(.vf-product-hero-light, .vf-comparison-light)::after,
  #home :is(.vf-product-hero-rim, .vf-comparison-rim)::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: vf-product-hero-sweep 10s calc(var(--light-delay) + var(--reflection-offset, 0s)) cubic-bezier(.42, 0, .58, 1) infinite;
  }
  #home :is(.vf-product-hero-light, .vf-comparison-light)::before,
  #home :is(.vf-product-hero-rim, .vf-comparison-rim)::before {
    --light-delay: .25s;
    --light-from: translateX(-59%);
    --light-to: translateX(62%);
  }
  #home :is(.vf-product-hero-light, .vf-comparison-light)::before {
    mask-image: radial-gradient(ellipse 43% 63% at 50% 38%, #000 32%, #000b 58%, transparent 100%);
    background: linear-gradient(105deg, transparent 23%, #f6fbff36 36%,
      #ffffffac 46%, #ffffffc2 50%, #f4faff56 57%, transparent 72%);
  }
  #home :is(.vf-product-hero-rim, .vf-comparison-rim)::before {
    background: linear-gradient(105deg, transparent 40%, #e4f1ff33 45%,
      #f8fcffad 49%, #eef8ff80 53%, #edf7ff25 57%, transparent 64%);
  }
  #home :is(.vf-product-hero-light, .vf-comparison-light)::after {
    --light-delay: 1.35s;
    --light-from: translate(20%, -70%);
    --light-to: translate(-17%, 65%);
    mask-image: radial-gradient(ellipse 50% 44% at 54% 59%, #000 35%, #000a 60%, transparent 100%);
    background: linear-gradient(28deg, transparent 32%, #e9f7ff30 43%,
      #f5fcff99 51%, #e8f7ff38 57%, transparent 68%);
  }
}
@keyframes vf-product-hero-sweep {
  0% { transform: var(--light-from); opacity: 0; }
  11%, 42% { opacity: 1; }
  54%, 100% { transform: var(--light-to); opacity: 0; }
}
