@layer ds-sections {
  /* #region MARK:features */
  .ds-features {
    --ds-face-1: #a4c572;
    --ds-face-2: #ebb84a;
    --ds-face-3: #687db1;
    --ds-face-4: #e46b46;
    position: relative;
    padding-block: var(--ds-section-y);
    background: var(--ds-white);
  }

  .ds-contact__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .ds-hexnet {
    position: absolute;
    max-width: none;
    height: auto;
  }

  .ds-features__inner {
    position: relative;
    display: grid;
    gap: clamp(40px, 6vw, 56px);
    width: min(100% - 2 * var(--ds-gutter), 1240px);
    margin-inline: auto;
  }

  .ds-features__sub {
    margin-top: 1em;
  }

  .ds-features__hexes {
    --ds-prism-w: clamp(150px, 40vw, 210px);
    --ds-prism-h: calc(var(--ds-prism-w) * 0.866);
    --ds-prism-gap: calc(var(--ds-prism-w) * 0.11);
    --ds-prism-label: 0.13;
    position: relative;
    justify-self: center;
    width: calc(var(--ds-prism-w) * 1.75 + var(--ds-prism-gap) * 0.866);
    height: calc(var(--ds-prism-h) * 2 + var(--ds-prism-gap));
  }

  .ds-features__hexes .ds-hex {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--ds-prism-w);
    font-size: calc(var(--ds-prism-w) * var(--ds-prism-label));
  }

  .ds-features__hexes .ds-hex:nth-child(2) {
    top: calc((var(--ds-prism-h) + var(--ds-prism-gap)) / 2);
    left: calc(var(--ds-prism-w) * 0.75 + var(--ds-prism-gap) * 0.866);
  }

  .ds-features__hexes .ds-hex:nth-child(3) {
    top: calc(var(--ds-prism-h) + var(--ds-prism-gap));
  }

  .ds-features__lines {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }

  .ds-features__lines path {
    fill: none;
    stroke: var(--ds-orange);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .ds-features__list {
    display: grid;
    gap: clamp(48px, 6vw, 72px);
  }

  .ds-feature {
    --ds-tag-w: calc(clamp(19px, 1.6vw, 23px) * 2.6);
    --ds-tag-gap: clamp(14px, 1.2vw, 18px);
    display: grid;
    gap: 20px;
  }

  .ds-feature__text {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 12px var(--ds-tag-gap);
  }

  .ds-feature__title {
    position: relative;
    z-index: 0;
    width: var(--ds-tag-w);
    aspect-ratio: 1 / 0.866;
  }

  .ds-feature__title::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    rotate: var(--ds-tag-rotate, 0deg);
    scale: var(--ds-tag-scale, 1);
    background: var(--ds-orange-tint);
    -webkit-mask: var(--ds-hex-mask) center / 100% 100% no-repeat;
    mask: var(--ds-hex-mask) center / 100% 100% no-repeat;
  }

  .ds-feature__desc {
    margin: 0;
  }

  .ds-feature__media {
    position: relative;
  }

  .ds-feature__frame {
    position: relative;
    min-width: 0;
    overflow: hidden;
  }

  .ds-feature__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s var(--ds-ease);
  }

  .ds-feature--visibility .ds-feature__media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .ds-feature--visibility .ds-feature__img {
    aspect-ratio: 3 / 2;
  }

  .ds-feature--update .ds-feature__frame {
    mix-blend-mode: multiply;
  }

  @media (min-width: 360px) {
    .ds-feature__text {
      grid-template-columns: var(--ds-tag-w) minmax(0, 1fr);
    }
  }

  @media (min-width: 1024px) {
    .ds-features__inner {
      grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
      grid-template-areas:
        "intro intro"
        "hexes list";
      column-gap: clamp(56px, 6vw, 112px);
      row-gap: clamp(64px, 6vw, 96px);
    }

    .ds-features__intro {
      grid-area: intro;
    }

    .ds-features__hexes {
      --ds-prism-w: clamp(128px, 11.8vw, 170px);
      --ds-prism-label: 0.152;
      grid-area: hexes;
      align-self: center;
      justify-self: start;
    }

    .ds-features__list {
      grid-area: list;
    }

    .ds-features__lines {
      display: block;
    }

    .ds-feature {
      grid-template-columns: calc(var(--ds-tag-w) + var(--ds-tag-gap) + 17.6em) minmax(0, 1fr);
      align-items: start;
      column-gap: clamp(24px, 2.4vw, 40px);
    }
  }

  @media (hover: hover) and (pointer: fine) {
    .ds-feature__media:hover .ds-feature__img {
      filter: saturate(1.08) brightness(1.04);
    }
  }
  /* #endregion */

  /* #region MARK:volume */
  .ds-volume {
    container-type: inline-size;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--ds-band);
  }

  .ds-volume__inner {
    position: absolute;
    inset: 0;
  }

  .ds-volume__img,
  .ds-volume__screen {
    position: absolute;
    top: -15.8%;
    left: -23.66%;
    width: 143.4%;
    max-width: none;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .ds-volume__screen {
    clip-path: polygon(42.85% 15.72%, 60.47% 10.9%, 60.14% 66.83%, 43.24% 62.38%);
  }

  .ds-volume__screen.is-fitted {
    transform-origin: 0 0;
    clip-path: none;
  }

  .ds-volume__video {
    position: absolute;
    top: 13.73%;
    left: 42.42%;
    width: 17.62%;
    max-width: none;
    height: 54.19%;
    background: var(--ds-face-1);
    object-fit: fill;
    pointer-events: none;
  }

  .ds-volume__screen.is-fitted .ds-volume__video {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .ds-volume__tab:nth-child(1) {
    --ds-face-bg: var(--ds-face-1);
    --ds-face-ink: var(--ds-night);
    --ds-face-shadow: none;
  }

  .ds-volume__tab:nth-child(2) {
    --ds-face-bg: var(--ds-face-2);
    --ds-face-ink: var(--ds-night);
    --ds-face-shadow: none;
  }

  .ds-volume__tab:nth-child(3) {
    --ds-face-bg: var(--ds-face-3);
  }

  .ds-volume__tab:nth-child(4) {
    --ds-face-bg: var(--ds-face-4);
  }

  .ds-volume__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
  }

  .ds-volume__tab {
    --ds-face-ink: var(--ds-white);
    --ds-face-shadow: 0 1px 2px rgba(10, 14, 23, 0.7);
    position: relative;
    display: grid;
    place-items: center;
    min-height: 32px;
    padding: 4px 2px 4px 0.1em;
    border-radius: 3px;
    background: var(--ds-face-bg);
    color: var(--ds-face-ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-align: center;
    text-shadow: var(--ds-face-shadow);
  }

  .ds-volume__tab + .ds-volume__tab::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -15px;
    z-index: 1;
    width: 18px;
    height: 18px;
    translate: 0 -50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='white'/%3E%3Cpath d='M6.2 6l3.6 4-3.6 4M10.4 6l3.6 4-3.6 4' fill='none' stroke='%23004ea2' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 1px 2px rgba(10, 14, 23, 0.2));
  }

  .ds-volume__tab::after {
    content: "";
    position: absolute;
    right: 18%;
    bottom: -7px;
    left: 18%;
    height: 2px;
    border-radius: 1px;
    background: var(--ds-navy);
    opacity: 0;
    transition: opacity 0.288s linear;
  }

  .ds-volume__tab.is-active::after,
  .ds-volume__tabs:not(:has(.is-active)) .ds-volume__tab:first-child::after {
    opacity: 1;
  }
  /* #endregion */
}

/* #region MARK:features */
.ds-features.is-staged {
  overflow-x: clip;
}

.is-staged .ds-features__lines {
  z-index: 2;
}

.is-staged .ds-features__hexes {
  z-index: 3;
}

.is-staged .ds-feature__title {
  z-index: 3;
}

.is-staged .ds-features__hexes .ds-hex {
  background: none;
  -webkit-mask: none;
  mask: none;
  pointer-events: none;
}

.is-staged .ds-feature__title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  scale: var(--ds-tag-halo-scale, 1);
  background: var(--ds-orange-tint);
  opacity: var(--ds-tag-halo, 0);
  -webkit-mask: var(--ds-hex-mask) center / 100% 100% no-repeat;
  mask: var(--ds-hex-mask) center / 100% 100% no-repeat;
  pointer-events: none;
}

.ds-features__body,
.ds-features__face,
.ds-features__mg,
.ds-features__svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ds-features__body {
  background: var(--ds-navy);
  -webkit-mask: var(--ds-hex-mask) center / 100% 100% no-repeat;
  mask: var(--ds-hex-mask) center / 100% 100% no-repeat;
}

.ds-features__face {
  display: grid;
  place-items: center;
  padding-inline-start: 0.12em;
  backface-visibility: hidden;
}

.ds-features__label {
  position: relative;
  z-index: 1;
  display: block;
}

.ds-features__hit {
  position: absolute;
  inset: 0;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  pointer-events: auto;
}

.ds-features__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ds-features__rim,
.ds-features__ring,
.ds-features__burst {
  fill: none;
  stroke-linejoin: round;
  opacity: 0;
}

.ds-features__burst {
  stroke: var(--ds-orange);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.ds-features__rim {
  stroke: var(--ds-white);
  stroke-width: 1.9;
  stroke-linecap: round;
}

.ds-features__ring {
  stroke: var(--ds-orange);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.ds-features__arrow,
.ds-features__head {
  opacity: 0;
}

.ds-features__arc,
.ds-features__head {
  fill: none;
  stroke: var(--ds-orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-features__arc {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.ds-features__prisms {
  position: absolute;
  z-index: 1;
  visibility: hidden;
  pointer-events: none;
}

.ds-features__prisms.is-live {
  visibility: visible;
}

.is-prisms .ds-features__body {
  display: none;
}

.ds-features__lines .ds-features__tail {
  stroke: var(--ds-orange-tint);
  stroke-width: 3;
  opacity: 0;
}

.ds-features__dot {
  opacity: 0;
}

.ds-features__halo {
  fill: var(--ds-orange);
  opacity: 0.28;
}

.ds-features__core {
  fill: var(--ds-orange);
}

.ds-features__spot {
  fill: var(--ds-white);
}
/* #endregion */
