:root {
  --home-hero-bg: #f4f7ff;
  --home-hero-claim: #071124;
}

:root[data-theme="dark"] {
  --home-hero-bg: #000a1e;
  --home-hero-claim: #fff;
}
.home-hero-carousel {
  padding: 54px 0 20px;
  color: #fff;
  background: var(--home-hero-bg);
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  height: 420px;
  touch-action: pan-y;
}

.hero-slide {
  min-width: 0;
  padding: 3px;
  border-radius: 9px;
  background: #18366d;
  flex: .9 1 0;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  transition:
    flex-grow .8s cubic-bezier(.22, .8, .25, 1),
    box-shadow .45s ease,
    transform .45s ease;
}

.hero-slide.is-active {
  flex-grow: 2.15;
  box-shadow:
    0 0 24px rgba(0, 65, 220, .32),
    0 0 30px rgba(255, 0, 250, .18),
    0 0 34px rgba(180, 255, 0, .12);
}

.hero-slide::before {
  content: '';
  width: 220%;
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    #0041dc 0 24%,
    #ff00fa 34% 57%,
    #b4ff00 67% 90%,
    #0041dc 100%
  );
  filter: blur(2px);
  transform: translate(-50%, -50%);
  transition: opacity .45s ease;
}

.hero-slide.is-active::before {
  opacity: 1;
  animation: hero-border-spin 4.5s linear infinite;
}

.hero-slide-link {
  height: 100%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: #0d2248;
}

.hero-slide-media {
  height: 58%;
  flex: 0 0 58%;
  background-color: #102c61;
  background-position: center;
  background-size: cover;
  position: relative;
}

.hero-slide-category {
  max-width: calc(100% - 24px);
  border-radius: 999px;
  padding: 5px 14px;
  color: #001743;
  background: #b4ff00;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: absolute;
  left: 13px;
  bottom: -10px;
  z-index: 2;
}

.hero-slide-body {
  min-height: 0;
  padding: 22px 14px 14px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  background: #0d2248;
}

.hero-slide-body h2 {
  width: 100%;
  margin: 0;
  color: #fff;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  transition: font-size .18s ease-out;
}

.hero-slide-excerpt {
  width: 100%;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .72);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 14px;
  line-height: 1.35;
}

.hero-slide-footer {
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-slide-author {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-slide-avatar {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.hero-slide-author > span,
.hero-slide-reading-time {
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: color .3s ease;
}

.hero-slide-author > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-slide-reading-time {
  margin-left: auto;
}

.hero-slide.is-active .hero-slide-body h2 {
  font-size: 24px;
}

.hero-slide-arrow {
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
}

.hero-slide-arrow .arrow-icon {
  width: 34px;
  height: 34px;
  border: 0;
  background: #193b70;
}

.hero-slide-link:hover .hero-slide-arrow .arrow-icon,
.hero-slide-link:focus-visible .hero-slide-arrow .arrow-icon {
  color: #001743;
  background: #b4ff00;
  transform: translateX(3px);
}

.hero-slide-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
}

.hero-carousel-dots {
  min-height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.hero-carousel-dot {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}

.hero-carousel-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: #b4ff00;
}

@keyframes hero-border-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 980px) {
  .home-hero-carousel {
    padding-top: 38px;
  }

  .hero-carousel-track {
    height: 380px;
    gap: 10px;
  }

  .hero-slide {
    flex-grow: .72;
  }

  .hero-slide.is-active {
    flex-grow: 1.8;
  }

  .hero-slide-body h2 {
    font-size: 18px;
  }

  .hero-slide.is-active .hero-slide-body h2 {
    font-size: 22px;
  }
}

@media (max-width: 680px) {
  .home-hero-carousel {
    padding: 24px 0 12px;
  }

  .hero-carousel-track {
    height: 390px;
    display: block;
    position: relative;
  }

  .hero-slide,
  .hero-slide.is-active {
    width: 100%;
    height: 100%;
    padding: 2px;
    position: absolute;
    inset: 0;
  }

  .hero-slide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(28px) scale(.98);
    transition:
      opacity .5s ease,
      transform .65s cubic-bezier(.22, .8, .25, 1),
      visibility 0s linear .65s,
      box-shadow .4s ease;
  }

  .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    transition-delay: 0s;
  }

  .hero-slide.is-drag-target {
    visibility: visible;
    pointer-events: none;
  }

  .hero-slide.is-drag-target .hero-slide-body h2 {
    font-size: 20px;
    transition-duration: .12s;
  }

  .hero-carousel.is-dragging .hero-slide {
    transition: none;
  }

  .hero-carousel.is-settling .hero-slide {
    transition:
      opacity .45s ease,
      transform .45s cubic-bezier(.22, .8, .25, 1),
      filter .45s ease;
  }

  .hero-slide-media {
    height: 55%;
    flex-basis: 55%;
  }

  .hero-slide-body {
    padding: 21px 13px 13px;
  }

  .hero-slide.is-active .hero-slide-body h2 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide::before,
  .hero-slide-body h2 {
    transition: none;
  }

  .hero-slide.is-active::before {
    animation: none;
  }
}

/* VISUALSPACE HOMEPAGE REDESIGN */
.home-hero-carousel {
  padding: 30px 0 40px;
  transition: background-color .3s ease;
}

.home-hero-claim {
  width: 80%;
  max-width: none;
  margin: .2em auto 28px;
  padding-top: .16em;
  color: var(--home-hero-claim);
  font-family: Popfine, Raleway, Arial, sans-serif;
  font-size: 14.035vw;
  font-weight: 400;
  line-height: .82;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .3s ease;
}

.hero-carousel {
  width: 80%;
  max-width: none;
}

.hero-carousel-track {
  height: 500px;
}

.hero-slide-media {
  height: 67%;
  flex-basis: 67%;
}

.hero-slide-body {
  padding: 20px 14px 12px;
}

.hero-slide-body h2 {
  font-size: 16px;
}

.hero-slide.is-active .hero-slide-body h2 {
  font-size: 24px;
}


.hero-carousel-dots {
  min-height: 28px;
}

@media (max-width: 980px) {
  .home-hero-claim,
  .hero-carousel {
    width: min(100% - 44px, 1180px);
  }

  .home-hero-claim {
    font-size: calc(17.544vw - 7.719px);
  }

  .hero-carousel-track {
    height: 350px;
  }
}

@media (max-width: 680px) {
  .home-hero-carousel {
    padding: 28px 0 18px;
  }

  .home-hero-claim,
  .hero-carousel {
    width: min(100% - 28px, 1180px);
  }

  .home-hero-claim {
    margin-bottom: 24px;
    font-size: clamp(54px, 17vw, 82px);
    line-height: .88;
    display: block;
    text-align: center;
    white-space: normal;
  }

  .hero-carousel-track {
    height: 390px;
  }

  .hero-slide-media {
    height: 62%;
    flex-basis: 62%;
  }

  .hero-slide-body h2 {
    font-size: 20px;
  }

  .hero-slide.is-active .hero-slide-body h2 {
    font-size: 24px;
  }
}

.hero-slide-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-slide-reading-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: 0 0 auto;
}
/* HOVER CARD EXPANSION */
@media (hover: hover) and (pointer: fine) {
  .hero-carousel-track:hover .hero-slide.is-active:not(:hover) {
    flex-grow: .9;
    box-shadow: none;
  }

  .hero-slide:hover {
    flex-grow: 2.15;
    box-shadow:
      0 0 24px rgba(0, 65, 220, .32),
      0 0 30px rgba(255, 0, 250, .18),
      0 0 34px rgba(180, 255, 0, .12);
  }

  .hero-slide:hover::before {
    opacity: 1;
    animation: hero-border-spin 4.5s linear infinite;
  }

}
.hero-carousel-dot.is-active {
  position: relative;
  overflow: hidden;
  background: rgba(180, 255, 0, .28);
}

.hero-carousel-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #b4ff00;
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-dot-progress var(--hero-interval, 5000ms) linear forwards;
}

.hero-carousel.is-paused .hero-carousel-dot.is-active::after {
  animation-play-state: paused;
}

.hero-carousel.is-resetting-progress .hero-carousel-dot.is-active::after {
  animation: none;
}

@keyframes hero-dot-progress {
  to {
    transform: scaleX(1);
  }
}
/* IPAD THREE CARDS */
@media (min-width: 681px) and (max-width: 1180px) {
  .hero-carousel {
    width: min(100% - 44px, 1180px);
  }

  .hero-slide:nth-child(n + 4),
  .hero-carousel-dot:nth-child(n + 4) {
    display: none;
  }
}
/* MOBILE HERO VIEWPORT */
@media (max-width: 680px) {
  .home-hero-carousel {
    height: calc(90vh - 68px);
    height: calc(90svh - 68px);
    padding: 20px 0 12px;
    display: flex;
    flex-direction: column;
  }

  .home-hero-claim {
    width: min(100% - 28px, 1180px);
    margin: .1em auto 16px;
    padding-top: .16em;
    font-size: calc(17.544vw - 4.912px);
    line-height: .82;
    white-space: nowrap;
  }

  .hero-carousel {
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
  }

  .hero-carousel-track {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
  }

  .hero-carousel-dots {
    flex: 0 0 28px;
  }
}
:root {
  --hero-dot-active: #0647f7;
  --hero-dot-soft: rgba(6, 71, 247, .28);
  --hero-dot-inactive: rgba(6, 71, 247, .35);
}

:root[data-theme="dark"] {
  --hero-dot-active: #b4ff00;
  --hero-dot-soft: rgba(180, 255, 0, .28);
  --hero-dot-inactive: rgba(255, 255, 255, .42);
}

.hero-carousel-dot {
  background: var(--hero-dot-inactive);
}

.hero-carousel-dot.is-active {
  background: var(--hero-dot-soft);
}

.hero-carousel-dot.is-active::after {
  background: var(--hero-dot-active);
}
/* MOBILE CARD 70 HEIGHT */
@media (max-width: 680px) {
  .home-hero-carousel {
    height: auto;
  }

  .hero-carousel {
    flex: none;
  }

  .hero-carousel-track {
    height: 70vh;
    height: 70svh;
    min-height: 70vh;
    min-height: 70svh;
    flex: none;
  }
}