/* Scoped homepage feature bento. */
#features .features-wrap { width: min(calc(100% - 64px), 1240px); }
#features .section-head { margin-bottom: clamp(26px, 3vw, 40px); }
#features .feature-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  background:
    radial-gradient(ellipse at 28% 22%, #8a613419, transparent 55%),
    radial-gradient(ellipse at 77% 78%, #67768317, transparent 54%);
}
#features .feature-bento-card {
  position: relative;
  grid-column: span 5;
  isolation: isolate;
  min-height: 224px;
  padding: clamp(24px, 2.8vw, 38px);
  overflow: hidden;
  border: 1px solid #343437;
  border-radius: 18px;
  background: #101012;
  box-shadow: inset 0 1px #ffffff12, inset 0 0 14px #ffffff0a;
  transition: border-color .24s ease, box-shadow .24s ease;
}
#features .feature-bento-card:is([data-feature="speed"],[data-feature="bandwidth"]) { grid-column: span 7; }
#features .feature-bento-card:is(.is-highlighted,:focus-within) {
  border-color: #bb7b31;
  box-shadow: inset 0 1px #fff1, inset 0 0 36px #e39a3610;
}
@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  #features .feature-bento-card {
    background: rgba(13, 13, 16, .70);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
  }
}
@supports (backdrop-filter: url(#lightsocks-nav-liquid)) {
  :root:has(.top.nav-has-refraction) #features .feature-bento-card {
    background: rgba(13, 13, 16, .53);
    backdrop-filter: blur(8px) url(#lightsocks-nav-liquid) saturate(1.2);
  }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  #features .feature-bento-card,
  :root:has(.top.nav-has-refraction) #features .feature-bento-card {
    background: #101012;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
#features .feature-bento-copy {
  position: relative;
  z-index: 2;
  max-width: 29ch;
  width: 53%;
}
#features .feature-bento-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.38rem, 2.22vw, 2rem);
  color: #f7f7f8;
  line-height: 1.2;
  letter-spacing: -.025em;
}
#features .feature-bento-copy p {
  margin: 0;
  color: #c0bec3;
  font-size: clamp(.91rem, 1.18vw, 1.05rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#features .feature-bento-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  color: #ec9b37;
  background: #09090b;
  box-shadow: inset 0 0 0 1px #ffffff0b;
  border-radius: 12px;
}
#features .feature-bento-icon svg { width: 25px; height: 25px; }
#features .feature-bento-art {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 56%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  --feature-art-matte: contrast(1.24);
  filter: var(--feature-art-matte);
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 29%);
  mask-image: linear-gradient(90deg, transparent, #000 29%);
}
#features [data-feature="speed"] .feature-bento-art {
  width: 70%;
  object-fit: cover;
  object-position: right center;
}
#features [data-feature="bandwidth"] .feature-bento-art { width: 62%; }
#features .feature-bento-play {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
#features .feature-bento-play:focus-visible { outline: 2px solid #ffce85; outline-offset: -5px; }
@media (prefers-reduced-motion: no-preference) {
  #features .feature-bento-card.is-playing .feature-bento-art { animation-duration: .78s; animation-timing-function: ease-out; }
  #features [data-feature="speed"].is-playing .feature-bento-art { animation-name: feature-speed-glide; }
  #features [data-feature="protocol"].is-playing .feature-bento-art { animation-name: feature-protocol-lift; }
  #features [data-feature="shield"].is-playing .feature-bento-art { animation-name: feature-shield-pulse; }
  #features [data-feature="bandwidth"].is-playing .feature-bento-art { animation-name: feature-bandwidth-flow; }
}
@keyframes feature-speed-glide { 0%,100% { transform: none; filter: var(--feature-art-matte); } 42% { transform: translateX(8px) scale(1.025); filter: var(--feature-art-matte) brightness(1.4); } }
@keyframes feature-protocol-lift { 0%,100% { transform: none; filter: var(--feature-art-matte); } 42% { transform: translateY(-7px); filter: var(--feature-art-matte) brightness(1.27); } }
@keyframes feature-shield-pulse { 0%,100% { transform: none; filter: var(--feature-art-matte); } 45% { transform: scale(1.045); filter: var(--feature-art-matte) brightness(1.38); } }
@keyframes feature-bandwidth-flow { 0%,100% { transform: none; filter: var(--feature-art-matte); } 40% { transform: scaleX(1.05); filter: var(--feature-art-matte) brightness(1.32); } }
@media (max-width: 960px) {
  #features .feature-bento { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #features .feature-bento .feature-bento-card { grid-column: auto; padding: 23px; }
}
@media (max-width: 640px) {
  #features .features-wrap { width: calc(100% - 32px); }
  #features .feature-bento { grid-template-columns: minmax(0,1fr); gap: 12px; }
  #features .feature-bento .feature-bento-card { min-height: 168px; padding: 19px; }
  #features .feature-bento-icon { width: 38px; height: 38px; margin-bottom: 9px; }
  #features .feature-bento-icon svg { width: 21px; height: 21px; }
  #features .feature-bento-copy { width: 57%; }
}
@media (prefers-reduced-motion: reduce) {
  #features .feature-bento-card { transition: none; }
}
